feat: add institution

This commit is contained in:
Methapon Metanipat 2024-11-07 14:00:05 +07:00
parent 4bf24dd602
commit 1290fb748e
2 changed files with 36 additions and 4 deletions

View file

@ -982,7 +982,7 @@ model WorkflowTemplateStepInstitution {
group String
workflowTemplateStep WorkflowTemplateStep @relation(fields: [workflowTemplateStepId], references: [id])
workflowTemplateStep WorkflowTemplateStep @relation(fields: [workflowTemplateStepId], references: [id], onDelete: Cascade)
workflowTemplateStepId String
}
@ -997,7 +997,7 @@ model WorkflowTemplateStep {
responsiblePerson WorkflowTemplateStepUser[]
responsibleInstitution WorkflowTemplateStepInstitution[]
workflowTemplate WorkflowTemplate? @relation(fields: [workflowTemplateId], references: [id])
workflowTemplate WorkflowTemplate? @relation(fields: [workflowTemplateId], references: [id], onDelete: Cascade)
workflowTemplateId String?
}