feat: implement Booking module with BookableSpace entity, controller, service, and DTOs for managing bookable spaces

This commit is contained in:
faris Aljohari
2025-06-17 22:02:13 -06:00
parent 8d44b66dd3
commit 332b2f5851
11 changed files with 276 additions and 0 deletions

View File

@ -0,0 +1,5 @@
// Convert time string (HH:mm) to minutes
export function timeToMinutes(time: string): number {
const [hours, minutes] = time.split(':').map(Number);
return hours * 60 + minutes;
}