Make room for client code

This commit is contained in:
Abhishek Shroff
2024-05-10 03:39:24 +05:30
parent 09a7ba4fef
commit ca56e77f0c
62 changed files with 0 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
-- name: CreateUser :one
INSERT INTO users(
username, display_name, password_hash
) VALUES (
$1, $2, $3
)
RETURNING *;
-- name: UserByUsername :one
SELECT * from users WHERE username = $1;
-- name: ListUsers :many
SELECT * from users WHERE deleted IS NULL;