Yimaru-BackEnd/db/query/odds.sql
OneTap Technologies 92250d61a8 event and odd data
2025-04-10 16:42:26 +03:00

15 lines
361 B
SQL

-- name: InsertNonLiveOdd :exec
INSERT INTO odds (
event_id, market_type, header, name, odds_value, handicap,
section, category, market_id, is_active, source, fetched_at, raw_event_id
) VALUES (
$1, $2, $3, $4, $5, $6,
$7, $8, $9, true, 'b365api', now(), $10
);
-- name: GetUpcomingEventIDs :many
SELECT id FROM events
WHERE is_live = false;