From 672647b61b9f25ea34a399c6dae552f2cae9e629 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Mon, 11 Nov 2024 14:50:51 +0700 Subject: [PATCH] feat: add attributes to workflow template --- prisma/schema.prisma | 2 ++ src/controllers/04-flow-template-controller.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index d9975e3..fd697b2 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -999,6 +999,8 @@ model WorkflowTemplateStep { responsiblePerson WorkflowTemplateStepUser[] responsibleInstitution WorkflowTemplateStepInstitution[] + attributes Json? + workflowTemplate WorkflowTemplate? @relation(fields: [workflowTemplateId], references: [id], onDelete: Cascade) workflowTemplateId String? } diff --git a/src/controllers/04-flow-template-controller.ts b/src/controllers/04-flow-template-controller.ts index ff81158..f8980f5 100644 --- a/src/controllers/04-flow-template-controller.ts +++ b/src/controllers/04-flow-template-controller.ts @@ -34,6 +34,7 @@ type WorkflowPayload = { detail?: string | null; type?: string | null; value?: string[] | null; + attributes?: { [key: string]: any }; responsiblePersonId?: string[]; responsibleInstitution?: string[]; }[];