31 lines
633 B
Plaintext
31 lines
633 B
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model County {
|
|
id Int @id @default(autoincrement())
|
|
name String @unique
|
|
players Player[]
|
|
}
|
|
|
|
model Player {
|
|
id String @id @default(uuid())
|
|
playerId Int @unique
|
|
playerName String
|
|
score String?
|
|
rank Int?
|
|
SSranks Int?
|
|
Sranks Int?
|
|
Aranks Int?
|
|
County County @relation(fields: [countyId], references: [id])
|
|
countyId Int
|
|
}
|