-- AlterTable: Add odds columns to live_matches
-- Run this migration when DB is accessible

ALTER TABLE "live_matches" 
ADD COLUMN IF NOT EXISTS "odds" JSONB,
ADD COLUMN IF NOT EXISTS "odds_updated_at" TIMESTAMP(3);

-- Create index for faster queries on odds_updated_at
CREATE INDEX IF NOT EXISTS "live_matches_odds_updated_at_idx" ON "live_matches"("odds_updated_at");

-- Comment for documentation
COMMENT ON COLUMN "live_matches"."odds" IS 'Bahis oranları JSON: {"MS": {"1": 2.10, "X": 3.40, "2": 3.20}, "AU25": {"Alt": 2.05, "Üst": 1.75}}';
COMMENT ON COLUMN "live_matches"."odds_updated_at" IS 'Oranların son güncellenme zamanı';
