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

-- name: GetUserByName :one
SELECT * 
  FROM users
  WHERE name = $1;

-- name: GetUserByID :one
SELECT *
  FROM users
  WHERE id = $1;

-- name: GetAllUsers :many
SELECT *
  FROM users;

-- name: DeleteAllUsers :exec
DELETE FROM users;
