mirror of
https://github.com/1f349/lavender.git
synced 2024-12-22 07:34:06 +00:00
19 lines
371 B
SQL
19 lines
371 B
SQL
-- name: GetUserList :many
|
|
SELECT subject,
|
|
email,
|
|
email_verified,
|
|
roles,
|
|
updated_at,
|
|
active
|
|
FROM users
|
|
LIMIT 25 OFFSET ?;
|
|
|
|
-- name: UpdateUser :exec
|
|
UPDATE users
|
|
SET active = ?,
|
|
roles=?
|
|
WHERE subject = ?;
|
|
|
|
-- name: UserEmailExists :one
|
|
SELECT EXISTS(SELECT 1 FROM users WHERE email = ? AND email_verified = 1) == 1 AS email_exists;
|