-- name: CreateUser :one
INSERT INTO users (id, created_at, updated_at, name)
VALUES (
  $1,
  $2,
  $3,
  $4
)
RETURNING *;

-- name: GetUserByName :one
SELECT id, created_at, updated_at, name FROM users
WHERE name = $1;

-- name: GetUserById :one
SELECT id, created_at, updated_at, name FROM users
WHERE id = $1;

-- name: GetAllUsers :many
SELECT id, created_at, updated_at, name FROM users;

-- name: DeleteAllUsers :exec
DELETE FROM users;
