refactor: add work status and process user
This commit is contained in:
parent
a06be541a8
commit
7413b2a8f8
2 changed files with 21 additions and 0 deletions
|
|
@ -386,6 +386,7 @@ model User {
|
|||
userMenuPermission UserMenuPermission[]
|
||||
userMenuComponentPermission UserMenuComponentPermission[]
|
||||
workflowTemplateStepUser WorkflowTemplateStepUser[]
|
||||
requestWork RequestWork[]
|
||||
|
||||
userCreated User[] @relation("UserCreatedByUser")
|
||||
userUpdated User[] @relation("UserUpdatedByUser")
|
||||
|
|
@ -1204,6 +1205,12 @@ model RequestData {
|
|||
requestWork RequestWork[]
|
||||
}
|
||||
|
||||
enum RequestWorkStatus {
|
||||
Pending
|
||||
InProgress
|
||||
Completed
|
||||
}
|
||||
|
||||
model RequestWork {
|
||||
id String @id @default(cuid())
|
||||
|
||||
|
|
@ -1212,4 +1219,9 @@ model RequestWork {
|
|||
|
||||
productService QuotationProductServiceList @relation(fields: [productServiceId], references: [id])
|
||||
productServiceId String
|
||||
|
||||
workStatus RequestWorkStatus @default(Pending)
|
||||
|
||||
processByUser User? @relation(fields: [processByUserId], references: [id])
|
||||
processByUserId String?
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue