chore: update constraits

This commit is contained in:
Methapon Metanipat 2024-10-28 10:34:00 +07:00
parent 333a8aedee
commit a412aef7ac
2 changed files with 6 additions and 1 deletions

View file

@ -939,7 +939,7 @@ model WorkflowTemplateStepUser {
userId String
user User @relation(fields: [userId], references: [id])
workflowTemplateStep WorkflowTemplateStep @relation(fields: [workflowTemplateStepId], references: [id])
workflowTemplateStep WorkflowTemplateStep @relation(fields: [workflowTemplateStepId], references: [id], onDelete: Cascade)
workflowTemplateStepId String
@@id([userId, workflowTemplateStepId])