Files
2023-05-30 21:42:09 -06:00

13 lines
249 B
SQL

-- name: CreateNote :exec
INSERT INTO notes (id, created_at, updated_at, note, user_id)
VALUES (?, ?, ?, ?, ?);
--
-- name: GetNote :one
SELECT * FROM notes WHERE id = ?;
--
-- name: GetNotesForUser :many
SELECT * FROM notes WHERE user_id = ?;
--