6 lines
259 B
SQL
6 lines
259 B
SQL
-- name: CreateNote :exec
|
|
INSERT INTO notes (id, tenant_id, entity_type, entity_id, body, created_by_user_id, created_at, updated_at)
|
|
VALUES ($1,$2,$3,$4,$5,$6,$7,$8);
|
|
|
|
-- name: ListNotes :many
|
|
SELECT * FROM notes WHERE tenant_id=$1 ORDER BY created_at DESC;
|