-- name: WriteAuditLog :exec
INSERT INTO audit_log (actor_id, target_id, action, metadata)
VALUES ($1, $2, $3, $4);

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