26 lines
533 B
Plaintext
26 lines
533 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
|
|
players Player[]
|
|
}
|
|
|
|
model Player {
|
|
id Int @id @default(autoincrement())
|
|
playerName String @unique
|
|
rank Int
|
|
County County @relation(fields: [countyId], references: [id])
|
|
countyId Int
|
|
}
|