31 lines
841 B
Plaintext
31 lines
841 B
Plaintext
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model Data {
|
|
id Int @id @default(autoincrement())
|
|
desc String @default("") @db.VarChar
|
|
img String @default("/Pjob.jpb") @db.VarChar
|
|
time String @default("") @db.VarChar
|
|
pay Int @default(1)
|
|
job Job?
|
|
}
|
|
|
|
model Job {
|
|
id Int @id @default(autoincrement())
|
|
name String @db.VarChar
|
|
worktime String @db.VarChar
|
|
createTime DateTime @default(now())
|
|
updateTime DateTime @default(now())
|
|
pin Boolean @default(true)
|
|
dataId Int? @unique()
|
|
place String @default("in") @db.VarChar
|
|
area String @default("in") @db.VarChar
|
|
data Data? @relation(fields: [dataId], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
|
}
|