Files
blitzkit/prisma/schema.prisma
T
2024-09-01 15:46:39 -05:00

37 lines
938 B
Plaintext

generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "debian-openssl-1.1.x", "debian-openssl-3.0.x"]
}
datasource db {
provider = "cockroachdb"
url = env("DATABASE_URL")
}
model User {
blitz_id Int @id @map("blitz") // map: "blitz" was too vague
last_used DateTime? @default(now())
tank_votes TankVote[]
@@map("Users") // map: "Users" was mistakenly plural
}
model TankVote {
id Int @id
last_updated DateTime @default(now())
easiness Int?
firepower Int?
maneuverability Int?
survivability Int?
user User @relation(fields: [user_blitz_id], references: [blitz_id])
user_blitz_id Int
}
model DiscordUser {
discord_id BigInt @id @map("discord") // map: "discord" was too vague
blitz_id Int @map("blitz") // map: "blitz" was too vague
@@map("DiscordUsers") // map: "DiscordUsers" was mistakenly plural
}