feat: add field for storing institution

This commit is contained in:
Methapon Metanipat 2024-11-07 13:49:26 +07:00
parent 8e9ef01ae3
commit 4bf24dd602

View file

@ -977,15 +977,25 @@ model WorkflowTemplate {
service Service[]
}
model WorkflowTemplateStepInstitution {
id String @id @default(cuid())
group String
workflowTemplateStep WorkflowTemplateStep @relation(fields: [workflowTemplateStepId], references: [id])
workflowTemplateStepId String
}
model WorkflowTemplateStep {
id String @id @default(cuid())
order Int
name String
detail String?
type String?
value WorkflowTemplateStepValue[] // NOTE: For enum or options type
responsiblePerson WorkflowTemplateStepUser[]
order Int
name String
detail String?
type String?
value WorkflowTemplateStepValue[] // NOTE: For enum or options type
responsiblePerson WorkflowTemplateStepUser[]
responsibleInstitution WorkflowTemplateStepInstitution[]
workflowTemplate WorkflowTemplate? @relation(fields: [workflowTemplateId], references: [id])
workflowTemplateId String?