-- name: InsertResult :one
INSERT INTO results (event_id, full_time_score, half_time_score, ss, scores)
VALUES ($1, $2, $3, $4, $5)
RETURNING id, event_id, full_time_score, half_time_score, ss, scores, fetched_at;


-- name: GetResultByEventID :one
SELECT * FROM results WHERE event_id = $1;