mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-08 12:40:59 -06:00
14 lines
257 B
SQL
14 lines
257 B
SQL
-- name: CreateUser :one
|
|
INSERT INTO users(
|
|
display_name, username, password_hash
|
|
) VALUES (
|
|
$1, $2, $3
|
|
)
|
|
RETURNING *;
|
|
|
|
|
|
-- name: UserByUsername :one
|
|
SELECT * from users WHERE username = $1;
|
|
|
|
-- name: UserById :one
|
|
SELECT * from users WHERE id = $1; |