-- name: CreateProject :one
INSERT INTO projects (id, slug, name, description)
VALUES ($1, $2, $3, $4)
RETURNING *;

-- name: GetProject :one
SELECT * FROM projects
WHERE id = $1;

-- name: GetProjectBySlug :one
SELECT * FROM projects
WHERE slug = $1;

-- name: ListProjects :many
SELECT * FROM projects
ORDER BY created_at DESC
LIMIT $1 OFFSET $2;
