-- AlterTable
ALTER TABLE "teams" ADD COLUMN IF NOT EXISTS "external_id" INTEGER,
ADD COLUMN IF NOT EXISTS "logo_url" VARCHAR(500);

-- AlterTable
ALTER TABLE "matches" ADD COLUMN IF NOT EXISTS "official_match_no" INTEGER,
ADD COLUMN IF NOT EXISTS "stage" VARCHAR(32),
ADD COLUMN IF NOT EXISTS "group_name" VARCHAR(8),
ADD COLUMN IF NOT EXISTS "live_match_id" BIGINT,
ADD COLUMN IF NOT EXISTS "addition_match_id" BIGINT,
ADD COLUMN IF NOT EXISTS "channel_id" VARCHAR(64),
ADD COLUMN IF NOT EXISTS "match_name" VARCHAR(200),
ADD COLUMN IF NOT EXISTS "venue_json" JSONB,
ADD COLUMN IF NOT EXISTS "kickoff_json" JSONB,
ADD COLUMN IF NOT EXISTS "external_status" VARCHAR(32);

-- CreateIndex
CREATE UNIQUE INDEX IF NOT EXISTS "teams_external_id_key" ON "teams"("external_id");

-- CreateIndex
CREATE UNIQUE INDEX IF NOT EXISTS "matches_live_match_id_key" ON "matches"("live_match_id");
