feat: workflow permission

This commit is contained in:
Methapon Metanipat 2024-10-24 15:56:03 +07:00
parent 447a99e4f7
commit 85b99bf0a1
3 changed files with 108 additions and 6 deletions

View file

@ -259,6 +259,7 @@ model Branch {
customerRegistration Customer[]
productGroup ProductGroup[]
quotation Quotation[]
workflowTemplate WorkflowTemplate[]
}
model BranchBank {
@ -894,6 +895,9 @@ model WorkflowTemplate {
step WorkflowTemplateStep[]
registeredBranch Branch @relation(fields: [registeredBranchId], references: [id])
registeredBranchId String
status Status @default(CREATED)
statusOrder Int @default(0)