-- name: InsertCustomOdd :one
INSERT INTO custom_odd (
        odd_id,
        raw_odd_id,
        event_id,
        odd_value
    )
VALUES ($1, $2, $3, $4)
RETURNING *;
-- name: GetAllCustomOdds :many
SELECT *
FROM custom_odd;
-- name: GetCustomOddByRawOddID :one
SELECT *
FROM custom_odd
WHERE raw_odd_id = $1;
-- name: GetCustomOddByID :one
SELECT *
FROM custom_odd
WHERE id = $1;
-- name: DeleteCustomOddsByID :exec
DELETE FROM disabled_odd
WHERE raw_odd_id = $1;
-- name: DeleteCustomOddsByRawOddID :exec
DELETE FROM disabled_odd
WHERE raw_odd_id = $1;