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