feat(db,shared): add overbookingAcknowledged field and conflict check types

- Assignment.overbookingAcknowledged Boolean @default(false) — audit trail
  for intentional overbookings
- CreateAssignmentBaseSchema gets allowOverbooking?: boolean flag so callers
  can explicitly opt in to overbooking
- Export AllocationConflictCheckResult, AllocationConflictDay,
  AllocationVacationOverlap types from @capakraken/shared for use in the
  new conflict-check API procedure and AllocationModal

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-09 10:11:02 +02:00
parent 60d267fa0a
commit b944a17572
2 changed files with 37 additions and 3 deletions
+4 -3
View File
@@ -1331,9 +1331,10 @@ model Assignment {
percentage Float
role String?
roleId String?
dailyCostCents Int
status AllocationStatus @default(PROPOSED)
metadata Json @db.JsonB @default("{}")
dailyCostCents Int
status AllocationStatus @default(PROPOSED)
metadata Json @db.JsonB @default("{}")
overbookingAcknowledged Boolean @default(false)
demandRequirement DemandRequirement? @relation(fields: [demandRequirementId], references: [id])
resource Resource @relation(fields: [resourceId], references: [id])