43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
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 User {
|
|
id Int @id @default(autoincrement())
|
|
phone String @unique
|
|
username String?
|
|
password String
|
|
applications Application[]
|
|
}
|
|
|
|
model Adminer {
|
|
id Int @id @default(autoincrement())
|
|
adminId Int
|
|
}
|
|
|
|
model Application {
|
|
id Int @id @default(autoincrement())
|
|
name String
|
|
area String
|
|
cpu Int
|
|
ram Int
|
|
disk Int
|
|
desc String
|
|
deploy Boolean @default(false)
|
|
applicant User @relation(fields: [applicantId], references: [id])
|
|
applicantId Int
|
|
}
|
|
model Register {
|
|
id Int @id @default(autoincrement())
|
|
phone String
|
|
deadline DateTime
|
|
code String
|
|
} |