This commit is contained in:
2026-02-04 20:29:42 -06:00
parent e37c64fb1d
commit 515ddb24d6
18 changed files with 921 additions and 19 deletions

View File

@@ -0,0 +1,13 @@
CREATE TYPE "public"."match_status" AS ENUM('scheduled', 'live', 'finished');--> statement-breakpoint
CREATE TABLE "matches" (
"id" serial PRIMARY KEY NOT NULL,
"sport" text NOT NULL,
"home_team" text NOT NULL,
"away_team" text NOT NULL,
"status" "match_status" DEFAULT 'scheduled' NOT NULL,
"start_time" timestamp,
"end_time" timestamp,
"home_score" integer DEFAULT 0 NOT NULL,
"away_score" integer DEFAULT 0 NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL
);