feat: workflow permission
This commit is contained in:
parent
447a99e4f7
commit
85b99bf0a1
3 changed files with 108 additions and 6 deletions
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `registeredBranchId` to the `WorkflowTemplate` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "WorkflowTemplate" ADD COLUMN "registeredBranchId" TEXT NOT NULL;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "WorkflowTemplate" ADD CONSTRAINT "WorkflowTemplate_registeredBranchId_fkey" FOREIGN KEY ("registeredBranchId") REFERENCES "Branch"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue