feat: branch permission for task order
This commit is contained in:
parent
c09a15b858
commit
0bf7e9f740
2 changed files with 67 additions and 16 deletions
|
|
@ -312,6 +312,7 @@ model Branch {
|
|||
productGroup ProductGroup[]
|
||||
quotation Quotation[]
|
||||
workflowTemplate WorkflowTemplate[]
|
||||
taskOrder TaskOrder[]
|
||||
}
|
||||
|
||||
model BranchBank {
|
||||
|
|
@ -481,7 +482,6 @@ model User {
|
|||
notificationReceive Notification[] @relation("NotificationReceiver")
|
||||
notificationRead Notification[]
|
||||
taskOrderCreated TaskOrder[] @relation("TaskOrderCreatedByUser")
|
||||
taskOrderAccepted TaskOrder[]
|
||||
|
||||
requestWorkStepStatus RequestWorkStepStatus[]
|
||||
}
|
||||
|
|
@ -1494,8 +1494,8 @@ model TaskOrder {
|
|||
institution Institution @relation(fields: [institutionId], references: [id])
|
||||
institutionId String
|
||||
|
||||
acceptedBy User? @relation(fields: [acceptedByUserId], references: [id])
|
||||
acceptedByUserId String?
|
||||
registeredBranch Branch @relation(fields: [registeredBranchId], references: [id])
|
||||
registeredBranchId String
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
createdBy User @relation(name: "TaskOrderCreatedByUser", fields: [createdByUserId], references: [id])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue