main
Some checks failed
CI / build (push) Failing after 1m13s

This commit is contained in:
Harun CAN
2026-01-30 04:48:56 +03:00
parent 8995e79e78
commit f313ba944a
32 changed files with 1960 additions and 34 deletions

View File

@@ -179,9 +179,17 @@ model Game {
// External Data
igdbId Int? @unique
rawgId Int? @unique
sourceUrl String? // URL where this game was scraped from
// Details
rating Float?
developer String?
publisher String?
// Relations
platforms GamePlatform[]
genres GameGenre[]
screenshots GameScreenshot[]
subscriptions Subscription[]
// Timestamps
@@ -193,6 +201,35 @@ model Game {
@@index([slug])
}
model Genre {
id String @id @default(uuid())
name String @unique
slug String @unique
games GameGenre[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model GameGenre {
gameId String
genreId String
game Game @relation(fields: [gameId], references: [id], onDelete: Cascade)
genre Genre @relation(fields: [genreId], references: [id], onDelete: Cascade)
@@id([gameId, genreId])
}
model GameScreenshot {
id String @id @default(uuid())
url String
gameId String
game Game @relation(fields: [gameId], references: [id], onDelete: Cascade)
createdAt DateTime @default(now())
}
model Platform {
id String @id @default(uuid())
name String @unique // "PlayStation 5", "PC", "Xbox Series X"