feat(plan): override CRUD with replace-existing behavior

This commit is contained in:
BOHA
2026-06-05 12:30:27 +02:00
parent 795d4d5af9
commit fb022802ae
4 changed files with 296 additions and 2 deletions

View File

@@ -971,6 +971,6 @@ model work_plan_overrides {
projects projects? @relation(fields: [project_id], references: [id], onDelete: SetNull, onUpdate: NoAction)
creator users @relation("work_plan_overrides_creator", fields: [created_by], references: [id], onDelete: Restrict, onUpdate: NoAction)
@@unique([user_id, shift_date], map: "uniq_wpo_user_date")
@@index([user_id, shift_date], map: "idx_wpo_user_date")
@@index([shift_date], map: "idx_wpo_date")
}