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

-- name: GetProjectOwned :one
SELECT * FROM projects WHERE id = $1 AND user_id = $2;

-- name: GetUserProject :one
SELECT * FROM projects WHERE user_id = $1 ORDER BY created_at LIMIT 1;
