booking capacity check for time slots

This commit is contained in:
Asya Vee
2025-08-27 02:08:23 +04:00
parent c0647fe512
commit 459289df2d
11 changed files with 255 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ export interface BaseRecord {
export interface Resource extends BaseRecord {
name: string;
type: 'wheel' | 'workstation';
capacity: number;
usage_capacity: number;
is_active: boolean;
}
@@ -23,9 +23,10 @@ export interface BookingType extends BaseRecord {
min_duration: number;
price_per_person: number;
resources: string; // relation to Resource
min_capacity: number;
max_capacity: number;
min_participants_capacity: number;
max_participants_capacity: number;
is_active: boolean;
booking_capacity: number;
}
// Time Slot entity
@@ -36,7 +37,6 @@ export interface TimeSlot extends BaseRecord {
is_active: boolean;
is_reccuring?: boolean;
recurrence_pattern?: RecurrencePattern;
max_capacity: number;
}
// Recurrence pattern structure