-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
57 lines (51 loc) · 1.02 KB
/
types.ts
File metadata and controls
57 lines (51 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// These types match the structure you will likely use in your FastAPI Pydantic models
export enum UserRole {
USER = 'USER',
PROVIDER = 'PROVIDER'
}
export interface User {
id: string;
name: string;
email: string;
role: UserRole;
avatarUrl?: string;
}
export interface Service {
id: string;
providerId: string;
providerName: string;
title: string;
description: string;
category: string;
location: string;
price: number;
imageUrl: string;
rating: number;
reviewCount: number;
}
export interface Review {
id: string;
serviceId: string;
userId: string;
userName: string;
rating: number;
comment: string;
date: string;
}
export interface Booking {
id: string;
serviceId: string;
userId: string;
serviceTitle: string;
serviceImage: string;
status: 'Pending' | 'Confirmed' | 'Completed';
date: string;
price: number;
userName?: string;
userEmail?: string;
userAvatar?: string;
}
export interface LoginResponse {
token: string; // JWT token in the future
user: User;
}