2023-01-18 15:22:09 +01:00
|
|
|
// 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())
|
2023-01-18 16:17:42 +01:00
|
|
|
name String @unique
|
2023-01-18 15:22:09 +01:00
|
|
|
players Player[]
|
|
|
|
}
|
|
|
|
|
|
|
|
model Player {
|
2023-01-20 18:07:20 +01:00
|
|
|
id String @id @default(uuid())
|
|
|
|
playerId Int @unique
|
2023-01-20 14:37:16 +01:00
|
|
|
playerName String
|
2023-01-20 18:07:20 +01:00
|
|
|
score String?
|
2023-01-19 00:44:15 +01:00
|
|
|
rank Int?
|
|
|
|
SSranks Int?
|
|
|
|
Sranks Int?
|
|
|
|
Aranks Int?
|
2023-01-20 18:07:20 +01:00
|
|
|
County County @relation(fields: [countyId], references: [id])
|
2023-01-18 15:22:09 +01:00
|
|
|
countyId Int
|
|
|
|
}
|