v2
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
binaryTargets = ["native", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "postgresql"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model Settings {
|
||||
id String @id @default("main")
|
||||
apiKey String?
|
||||
selectedLeague String @default("primeira_liga") // primeira_liga or euro_2026
|
||||
leagueId Int @default(94)
|
||||
season Int @default(2024)
|
||||
siteName String @default("Primeira Liga Stats")
|
||||
primaryColor String @default("#E42518")
|
||||
secondaryColor String @default("#006600")
|
||||
showLiveMatches Boolean @default(true)
|
||||
showStandings Boolean @default(true)
|
||||
showTopScorers Boolean @default(true)
|
||||
showRecentResults Boolean @default(true)
|
||||
showUpcoming Boolean @default(true)
|
||||
refreshInterval Int @default(300) // seconds
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model ApiRequestLog {
|
||||
id String @id @default(cuid())
|
||||
endpoint String
|
||||
status Int
|
||||
duration Int // milliseconds
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
@@index([createdAt])
|
||||
}
|
||||
Reference in New Issue
Block a user