bw-hspc-contest-env/web/prisma/schema.prisma

27 lines
420 B
Plaintext
Raw Normal View History

2023-04-27 22:26:54 -04:00
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
username String @unique
password String
}
2023-04-28 10:30:46 -04:00
enum SubmissionState {
InReview
Correct
Incorrect
}
model Submission {
id Int @id @default(autoincrement())
state SubmissionState
message String?
}