Add service listing and customer booking flow in app

This commit is contained in:
2026-05-25 17:49:48 +03:30
parent bdad9ee073
commit 0b2defd50c
6 changed files with 477 additions and 13 deletions
+25
View File
@@ -82,3 +82,28 @@ export type BusinessService = {
isActive: boolean;
serviceTemplate?: ServiceTemplate;
};
export type BookingStatus =
| 'pending'
| 'confirmed'
| 'cancelled'
| 'completed';
export type Booking = {
id: string;
customerId: string;
businessId: string;
businessServiceId: string;
scheduledAt: string;
status: BookingStatus;
note: string | null;
createdAt?: string;
updatedAt?: string;
customer?: {
id: string;
mobile: string;
fullName: string | null;
};
business?: Business;
businessService?: BusinessService;
};