first commit
Made-with: Cursor
This commit is contained in:
10
sqlc/queries/event_exceptions.sql
Normal file
10
sqlc/queries/event_exceptions.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- name: ListExceptionsByEvent :many
|
||||
SELECT id, event_id, exception_date, action
|
||||
FROM event_exceptions
|
||||
WHERE event_id = $1
|
||||
ORDER BY exception_date ASC;
|
||||
|
||||
-- name: CreateEventException :one
|
||||
INSERT INTO event_exceptions (id, event_id, exception_date, action)
|
||||
VALUES ($1, $2, $3, $4)
|
||||
RETURNING id, event_id, exception_date, action;
|
||||
Reference in New Issue
Block a user