add responsibleGroup in step
This commit is contained in:
parent
1d6224da73
commit
109494c6d7
3 changed files with 33 additions and 0 deletions
11
prisma/migrations/20250424042834_add/migration.sql
Normal file
11
prisma/migrations/20250424042834_add/migration.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- CreateTable
|
||||
CREATE TABLE "WorkflowTemplateStepGroup" (
|
||||
"id" TEXT NOT NULL,
|
||||
"group" TEXT NOT NULL,
|
||||
"workflowTemplateStepId" TEXT NOT NULL,
|
||||
|
||||
CONSTRAINT "WorkflowTemplateStepGroup_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "WorkflowTemplateStepGroup" ADD CONSTRAINT "WorkflowTemplateStepGroup_workflowTemplateStepId_fkey" FOREIGN KEY ("workflowTemplateStepId") REFERENCES "WorkflowTemplateStep"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
|
@ -1089,6 +1089,15 @@ model WorkflowTemplateStepInstitution {
|
|||
workflowTemplateStepId String
|
||||
}
|
||||
|
||||
model WorkflowTemplateStepGroup {
|
||||
id String @id @default(cuid())
|
||||
|
||||
group String
|
||||
|
||||
workflowTemplateStep WorkflowTemplateStep @relation(fields: [workflowTemplateStepId], references: [id], onDelete: Cascade)
|
||||
workflowTemplateStepId String
|
||||
}
|
||||
|
||||
model WorkflowTemplateStep {
|
||||
id String @id @default(cuid())
|
||||
|
||||
|
|
@ -1099,6 +1108,7 @@ model WorkflowTemplateStep {
|
|||
value WorkflowTemplateStepValue[] // NOTE: For enum or options type
|
||||
responsiblePerson WorkflowTemplateStepUser[]
|
||||
responsibleInstitution WorkflowTemplateStepInstitution[]
|
||||
responsibleGroup WorkflowTemplateStepGroup[]
|
||||
messengerByArea Boolean @default(false)
|
||||
|
||||
attributes Json?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue