feat: add attributes to workflow template

This commit is contained in:
Methapon Metanipat 2024-11-11 14:50:51 +07:00
parent aebbed0145
commit 672647b61b
2 changed files with 3 additions and 0 deletions

View file

@ -999,6 +999,8 @@ model WorkflowTemplateStep {
responsiblePerson WorkflowTemplateStepUser[]
responsibleInstitution WorkflowTemplateStepInstitution[]
attributes Json?
workflowTemplate WorkflowTemplate? @relation(fields: [workflowTemplateId], references: [id], onDelete: Cascade)
workflowTemplateId String?
}

View file

@ -34,6 +34,7 @@ type WorkflowPayload = {
detail?: string | null;
type?: string | null;
value?: string[] | null;
attributes?: { [key: string]: any };
responsiblePersonId?: string[];
responsibleInstitution?: string[];
}[];