mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-06 19:49:56 -06:00
15 lines
314 B
SQL
15 lines
314 B
SQL
-- name: CreateUser :exec
|
|
INSERT INTO users(
|
|
username, display_name, password_hash
|
|
) VALUES (
|
|
$1, $2, $3
|
|
);
|
|
|
|
-- name: UserByUsername :one
|
|
SELECT * from users WHERE username = $1;
|
|
|
|
-- name: UserByID :one
|
|
SELECT * from users WHERE id = $1;
|
|
|
|
-- name: ListUsers :many
|
|
SELECT * from users WHERE deleted IS NULL; |