-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.py
62 lines (52 loc) · 1.1 KB
/
model.py
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
58
59
60
61
62
from pydantic import BaseModel
class insert_register(BaseModel):
name: str
email:str
password:str
phone:str
address:str
class insert_login(BaseModel):
email:str
password:str
# message:bool
class insert_reserve(BaseModel):
country:str
hotel:str
room:str
people:str
checkin:str
checkout:str
class insert_booking(BaseModel):
numroom:int
class insert_addon(BaseModel):
servicetype:str
nameservice:str
# price:int
class insert_debit(BaseModel):
numcard:int
cvv:int
coupon:str
class insert_formaddhotel(BaseModel):
hotelname: str
rating: str
numsroom: int
hotelpicture: str
location: str
province: str
class insert_formaddroom(BaseModel):
namehotel: str
numroom: int
types: str
numpeople: int
priceroom: int
facs: str
bedtype: str
roompicture: str
statusroom: bool
class insert_formaddaddon(BaseModel):
Typeservice:str
Nameservice:str
detail:str
picture:str
price:int
namehotel:str