setup project

This commit is contained in:
2026-04-04 13:35:33 -06:00
parent 3f75aead20
commit 27088c2cd8
48 changed files with 7831 additions and 2 deletions

0
db/queries/brackets.sql Normal file
View File

0
db/queries/players.sql Normal file
View File

13
db/queries/users.sql Normal file
View File

@@ -0,0 +1,13 @@
-- name: GetUserFromId :one
SELECT *
FROM users u
WHERE u.id = $1;
-- name: GetUserAuthValue :one
SELECT u.ID as user_id, a.value as auth_value
FROM users u
JOIN auth_method a
ON a.user_id = u.id
WHERE
(u.name = $1 OR u.email = $1)
AND a.type = $2;