42 lines
992 B
Plaintext
42 lines
992 B
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
|
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
|
|
|
generator client {
|
|
provider = "prisma-client"
|
|
output = "../app/generated/prisma"
|
|
}
|
|
|
|
datasource db {
|
|
// provider = "postgres"
|
|
provider = "mysql"
|
|
}
|
|
|
|
model TournamentConfig {
|
|
id Int @id @default(autoincrement())
|
|
tournament_name String @default("AstarCup")
|
|
max_pp_for_registration Float @default(0)
|
|
min_pp_for_registration Float @default(0)
|
|
current_seasonal Season @default(S1)
|
|
current_category Category @default(QUA)
|
|
canRegister Boolean @default(false)
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
}
|
|
|
|
enum Season {
|
|
S1
|
|
S2
|
|
}
|
|
|
|
enum Category {
|
|
QUA
|
|
RO16
|
|
QF
|
|
SF
|
|
F
|
|
GF
|
|
}
|