-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTouristGuide_DB.session.sql
158 lines (158 loc) · 5.37 KB
/
TouristGuide_DB.session.sql
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
INSERT INTO accommodations (
accommodation_id,
name,
destination_id,
type,
description,
image,
rating,
price_per_night,
created_at,
updated_at
)
VALUES (
accommodation_id:intINSERT INTO activities (
activity_id,
name,
destination_id,
description,
image,
price,
created_at,
updated_at
)
VALUES (
activity_id:intINSERT INTO admin (
admin_id,
full_name,
email,
password,
created_at,
updated_at
)
VALUES (
admin_id:intINSERT INTO attractions (
attraction_id,
name,
destination_id,
type,
description,
image,
created_at,
updated_at
)
VALUES (
attraction_id:intINSERT INTO destinations (
destination_id,
name,
location,
description,
image,
created_at,
updated_at
)
VALUES (
destination_id:intINSERT INTO newsletter_subscribers (subscriber_id, email, created_at)
VALUES (
subscriber_id:intINSERT INTO restaurants (
restaurant_id,
name,
destination_id,
type,
description,
image,
rating,
created_at,
updated_at
)
VALUES (
restaurant_id:intINSERT INTO users (
user_id,
full_name,
email,
password,
date_of_birth,
country,
city,
phone,
profile_picture,
created_at,
updated_at
)
VALUES (
user_id:intINSERT INTO wishlist (
wishlist_id,
user_id,
item_id,
item_type,
created_at
)
VALUES (
wishlist_id:int,
user_id:int,
item_id:int,
'item_type:enum',
'created_at:timestamp'
);,
'full_name:varchar',
'email:varchar',
'password:varchar',
'date_of_birth:date',
'country:varchar',
'city:varchar',
'phone:varchar',
'profile_picture:varchar',
'created_at:timestamp',
'updated_at:timestamp'
);,
'name:varchar',
destination_id:int,
'type:varchar',
'description:text',
'image:varchar',
'rating:decimal',
'created_at:timestamp',
'updated_at:timestamp'
);,
'email:varchar',
'created_at:timestamp'
);,
'name:varchar',
'location:varchar',
'description:text',
'image:varchar',
'created_at:timestamp',
'updated_at:timestamp'
);,
'name:varchar',
destination_id:int,
'type:varchar',
'description:text',
'image:varchar',
'created_at:timestamp',
'updated_at:timestamp'
);,
'full_name:varchar',
'email:varchar',
'password:varchar',
'created_at:timestamp',
'updated_at:timestamp'
);,
'name:varchar',
destination_id:int,
'description:text',
'image:varchar',
'price:decimal',
'created_at:timestamp',
'updated_at:timestamp'
);,
'name:varchar',
destination_id:int,
'type:varchar',
'description:text',
'image:varchar',
'rating:decimal',
'price_per_night:decimal',
'created_at:timestamp',
'updated_at:timestamp'
);