booking capacity check for time slots
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user