mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-01 09:09:34 -06:00
13 lines
266 B
SQL
13 lines
266 B
SQL
-- 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; |