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:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user