main
Deploy Iddaai Backend / build-and-deploy (push) Successful in 37s

This commit is contained in:
2026-05-17 02:17:22 +03:00
parent 17ace9bd12
commit 94c7a4481a
53 changed files with 29602 additions and 7832 deletions
@@ -0,0 +1,10 @@
-- Add opening_value to odd_selections for tracking first-seen odds
ALTER TABLE "odd_selections" ADD COLUMN "opening_value" TEXT;
-- Add odds movement features to football_ai_features
ALTER TABLE "football_ai_features" ADD COLUMN "odds_movement_home" DOUBLE PRECISION;
ALTER TABLE "football_ai_features" ADD COLUMN "odds_movement_draw" DOUBLE PRECISION;
ALTER TABLE "football_ai_features" ADD COLUMN "odds_movement_away" DOUBLE PRECISION;
ALTER TABLE "football_ai_features" ADD COLUMN "odds_movement_o25" DOUBLE PRECISION;
ALTER TABLE "football_ai_features" ADD COLUMN "odds_movement_btts" DOUBLE PRECISION;
ALTER TABLE "football_ai_features" ADD COLUMN "odds_sharpness" DOUBLE PRECISION;
+19 -12
View File
@@ -207,6 +207,12 @@ model FootballAiFeature {
leagueHomeWinPct Float @default(0.0) @map("league_home_win_pct")
leagueOver25Pct Float @default(0.0) @map("league_over25_pct")
missingPlayersImpact Float @default(0.0) @map("missing_players_impact")
oddsMovementHome Float? @map("odds_movement_home")
oddsMovementDraw Float? @map("odds_movement_draw")
oddsMovementAway Float? @map("odds_movement_away")
oddsMovementO25 Float? @map("odds_movement_o25")
oddsMovementBtts Float? @map("odds_movement_btts")
oddsSharpness Float? @map("odds_sharpness")
calculatorVer String @default("v2.0") @map("calculator_ver")
updatedAt DateTime @updatedAt @map("updated_at")
match Match @relation(fields: [matchId], references: [id], onDelete: Cascade)
@@ -448,18 +454,19 @@ model OddCategory {
}
model OddSelection {
dbId Int @id @default(autoincrement()) @map("db_id")
categoryId Int @map("odd_category_db_id")
name String?
oddValue String? @map("odd_value")
position String?
sov Float?
state String?
sport Sport?
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @default(now()) @map("updated_at")
category OddCategory @relation(fields: [categoryId], references: [dbId], onDelete: Cascade)
history OddsHistory[]
dbId Int @id @default(autoincrement()) @map("db_id")
categoryId Int @map("odd_category_db_id")
name String?
oddValue String? @map("odd_value")
openingValue String? @map("opening_value")
position String?
sov Float?
state String?
sport Sport?
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @default(now()) @map("updated_at")
category OddCategory @relation(fields: [categoryId], references: [dbId], onDelete: Cascade)
history OddsHistory[]
@@unique([categoryId, name])
@@index([categoryId])