feat(plan): override CRUD with replace-existing behavior
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user