aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/query.sql
blob: 165c2c9258606ce833330ccbf7685ecad5a0b960 (plain)
1
2
3
4
5
6
7
8
9
10
-- name: GetUserById :one
SELECT * FROM users
WHERE users.user_id = $1
LIMIT 1;

-- name: GetUserAuthByUsername :one
SELECT * FROM users
JOIN user_auths ON users.user_id = user_auths.user_id
WHERE users.username = $1
LIMIT 1;