-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathprops.sql
More file actions
1305 lines (1266 loc) · 56.7 KB
/
Copy pathprops.sql
File metadata and controls
1305 lines (1266 loc) · 56.7 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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
INSERT INTO properties_schema.amenity_value_type (
amenity_value_type
) VALUES
(
'number'
),
(
'text'
),
(
'toggle'
);
INSERT INTO properties_schema.property_category (
property_category_name
) VALUES
(
'hotels'
),
(
'others'
);
INSERT INTO properties_schema.reservable_unit_type (
reservable_unit_type_name,
property_category_id,
rooms_count
) VALUES
(
'Deluxe Family',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'1'
),
(
'Deluxe King',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'1'
),
(
'Premium King',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'1'
),
(
'Deluxe Triple',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'1'
),
(
'Deluxe Twin',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'1'
),
(
'Royal Suite',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'4'
),
(
'one bedroom apartment',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'others'),
'1'
),
(
'two-bedroom apartment',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'others'),
'2'
),
(
'three-bedroom apartment',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'others'),
'3'
),
(
'Villa',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'others'),
'5'
);
INSERT INTO properties_schema.property_type (
property_type_name,
property_category_id
) VALUES
(
'apartment',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'others')
),
(
'chalet',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'others')
),
(
'hotel',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels')
),
(
'inn',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels')
),
(
'motel',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels')
),
(
'tent',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'others')
),
(
'villa',
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'others')
);
INSERT INTO properties_schema.bed_type (
bed_type,
bed_length,
bed_width
) VALUES
(
'extra-large double bed',
'80',
'76'
),
(
'single bed',
'75',
'30'
);
INSERT INTO properties_schema.amenity_group (
property_category_id,
amenity_group_name
) VALUES
(
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'General Facilities'
),
(
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'Room Amenities'
),
(
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'Business Facilities'
),
(
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'General Amenities'
),
(
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'Health and Wellness'
),
(
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'hotels'),
'Activities'
),
(
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'others'),
'Safety and Security'
),
(
(SELECT property_category_id FROM properties_schema.property_category WHERE property_category_name = 'others'),
'Cleaning Services'
);
INSERT INTO properties_schema.amenity (
amenity_icon,
amenity_value_type_id,
amenity_input_label,
amenity_group_id,
amenity_name
) VALUES
(
'Fitness',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Fitness Centre',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Activities'),
'Fitness Centre'
),
(
'Golf',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Nearby Golf Course',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Activities'),
'Golf Course (within 3 km)'
),
(
'Jacuzzi',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Hot Tub/Jacuzzi',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Activities'),
'Hot Tub/Jacuzzi'
),
(
'Massage',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Massage Service',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Activities'),
'Massage'
),
(
'Meeting',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Meeting/Banquet Facilities',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Business Facilities'),
'Meeting/Banquet Facilities'
),
(
'Patio',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Patio',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Business Facilities'),
'Patio'
),
(
'Sea',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Sea View',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Business Facilities'),
'Sea View'
),
(
'CCTV',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has CCTV in Common Areas',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Cleaning Services'),
'CCTV in Common Areas'
),
(
'Dry_clean',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Dry Cleaning Service',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Cleaning Services'),
'Dry Cleaning'
),
(
'Fire_ext',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Fire Extinguishers',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Cleaning Services'),
'Fire Extinguishers'
),
(
'Ironing',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Ironing Service',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Cleaning Services'),
'Ironing Service'
),
(
'Laundry',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Laundry Service',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Cleaning Services'),
'Laundry'
),
(
'Business',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Business Centre',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Amenities'),
'Business Centre'
),
(
'Disabled',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Facilities for Disabled Guests',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Amenities'),
'Facilities for Disabled Guests'
),
(
'camera',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Fax/Photocopying Service',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Amenities'),
'Fax/Photocopying'
),
(
'Non-smoking',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Non-smoking Rooms',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Amenities'),
'Non-smoking Rooms'
),
(
'Front_office',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has 24-hour Front Desk',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'24-hour Front Desk'
),
(
'Airport',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Provides Airport Shuttle',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Airport Shuttle'
),
(
'Babysitting',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Provides Babysitting/Child Services',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Babysitting/Child Services'
),
(
'Bar',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Bar',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Bar'
),
(
'shower-head',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Bath with rain shower',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Bath with rain shower'
),
(
'menu',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'number'),
'Library Nearby',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Bibliotheca Alexandrina'
),
(
'Bicycle',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Provides Bicycle Rental',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Bicycle Rental'
),
(
'Breakfast',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Offers Breakfast in Room',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Breakfast in the Room'
),
(
'Car',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Provides Car Hire',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Car Hire'
),
(
'Playground',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Childrens Playground',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Childrens Playground'
),
(
'Concierge',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Concierge Service',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Concierge Service'
),
(
'Free WiFi',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Offers Free Wifi',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Free Wifi'
),
(
'fridge',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Fridge',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Fridge'
),
(
'Restaurant',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Offers Fully Equipped Kitchen',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Fully equipped kitchen'
),
(
'Garden',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Garden',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Garden'
),
(
'Gift',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Gift Shop',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Gift Shop'
),
(
'wave',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'number'),
'Nearby Bay',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Gleem Bay'
),
(
'Kids_club',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Kids Club',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Kids Club'
),
(
'Library',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Library',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Library'
),
(
'Restaurant',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Restaurant',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Restaurant'
),
(
'Room_Service',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Room Service',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Room Service'
),
(
'diamond',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'number'),
'Museum Nearby',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Royal Jewellery Museum'
),
(
'shopping',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'number'),
'Nearby Mall',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'San Stefano Grand Plaza Mall'
),
(
'Shops',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Shops On Site',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Shops (on site)'
),
(
'Terrace',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Terrace',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Terrace'
),
(
'Tour',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Tour Desk',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Tour Desk'
),
(
'washing-machine',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Washing Machine',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'General Facilities'),
'Washing Machine'
),
(
'Family',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Family Rooms',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Health and Wellness'),
'Family Rooms'
),
(
'Lift',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Lift',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Health and Wellness'),
'Lift'
),
(
'Sauna',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Sauna',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Health and Wellness'),
'Sauna'
),
(
'Spa',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Spa and Wellness Centre',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Health and Wellness'),
'Spa and Wellness Centre'
),
(
'ac',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Air Conditioning',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Air Conditioning'
),
(
'Balcony',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Balcony',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Balcony'
),
(
'Cable',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Cable Channels',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Cable Channels'
),
(
'castle',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'number'),
'Nearby Citadel',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Citadel of Qaitbay'
),
(
'Smoking',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Designated Smoking Area',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Designated Smoking Area'
),
(
'TV',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Flat-screen TV',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Flat-screen TV'
),
(
'building',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'number'),
'Nearby Museum',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Graeco-Roman Museum'
),
(
'Hairdryer',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Hairdryer',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Hairdryer'
),
(
'Heating',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Heating',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Heating'
),
(
'Iron',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Iron',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Iron'
),
(
'Minibar',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Minibar',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Minibar'
),
(
'Satellite',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Satellite Channels',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Room Amenities'),
'Satellite Channels'
),
(
'Security',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has 24-hour Security',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Safety and Security'),
'24-hour Security'
),
(
'Fishing',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Fishing Facility',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Safety and Security'),
'Fishing'
),
(
'Safety',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Safety Deposit Box',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Safety and Security'),
'Safety Deposit Box'
),
(
'Skiing',
(SELECT amenity_value_type_id FROM properties_schema.amenity_value_type WHERE amenity_value_type = 'toggle'),
'Has Skiing Facility',
(SELECT amenity_group_id FROM properties_schema.amenity_group WHERE amenity_group_name = 'Safety and Security'),
'Skiing'
);
INSERT INTO properties_schema.city (
city_name,
city_image
) VALUES
(
'El Ain El Sokhna',
'images/cities_sharmalsheikh.webp'
),
(
'Hurghada',
'images/cities_hurghada.webp'
),
(
'North Coast',
'images/cities_northcoast.webp'
);
INSERT INTO properties_schema.location (
city_id,
location_name,
location_image
) VALUES
(
(SELECT city_id FROM properties_schema.city WHERE city_name = 'Hurghada'),
'Al Mamsha El Seyahi',
'images/locations_mamsha.webp'
),
(
(SELECT city_id FROM properties_schema.city WHERE city_name = 'North Coast'),
'El Alamein',
'images/locations_elalamein.webp'
),
(
(SELECT city_id FROM properties_schema.city WHERE city_name = 'North Coast'),
'New Alamein',
'images/locations_newelalamein.webp'
),
(
(SELECT city_id FROM properties_schema.city WHERE city_name = 'El Ain El Sokhna'),
'Porto Sokhna',
'images/locations_portoelsokhna.webp'
),
(
(SELECT city_id FROM properties_schema.city WHERE city_name = 'El Ain El Sokhna'),
'Telal',
'images/locations_telalelsokhna.webp'
),
(
(SELECT city_id FROM properties_schema.city WHERE city_name = 'Hurghada'),
'Vilages Road',
'images/locations_villagesroad.webp'
);
INSERT INTO properties_schema.property (
property_description,
instant_approve,
property_type_id,
checkin_time_to,
checkout_time_from,
checkout_time_to,
property_name,
address_line,
star_rating,
iframe_url,
compound_id,
tenant_id,
property_image,
property_images,
checkin_time_from,
location_url,
location_id
) VALUES
(
'Featuring air-conditioned accommodation with a private pool, garden view and a balcony, Telal sokhna villa is located in Ain Sokhna. The spacious holiday home features a terrace, 3 bedrooms, a living room and a well-equipped kitchen. Free private parking is available at the holiday home. The nearest airport is Cairo International Airport, 161 km from Telal sokhna villa.',
'false',
(SELECT property_type_id FROM properties_schema.property_type WHERE property_type_name = 'villa'),
'14:00',
'12:00',
'14:00',
'Telal sokhna Villa',
'The nearest airport is Cairo International Airport, 161 km from Telal sokhna villa.',
'0',
NULL,
NULL,
(SELECT tenant_id FROM tenants_schema.tenant WHERE tenant_name = 'ABC Hotels'),
'properties/510290051.jpg',
'properties/510290051.jpg,properties/510290082.jpg,properties/510290087.jpg,properties/510290090.jpg,properties/510290092.jpg,properties/510290094.jpg,properties/510290097.jpg,properties/510290099.jpg,properties/510290100.jpg,properties/510290102.jpg,properties/510290111.jpg,properties/510290122.jpg,properties/510290132.jpg,properties/510290144.jpg,properties/510290148.jpg',
'12:00',
'https://maps.app.goo.gl/snRFij93pVGYpc3L8',
(SELECT location_id FROM properties_schema.location WHERE location_name = 'Porto Sokhna')
),
(
'Located in El Alamein, 34 km from Porto Marina, Vida Marina Resort Marassi provides air-conditioned rooms and a bar. Among the facilities of this property are a restaurant, room service and a 24-hour front desk, along with free WiFi throughout the property. Rooms are fitted with a balcony. At the hotel, each room includes a terrace. A buffet breakfast is available daily at Vida Marina Resort Marassi. The nearest airport is Borg el Arab International Airport, 112 km from the accommodation.',
'false',
(SELECT property_type_id FROM properties_schema.property_type WHERE property_type_name = 'hotel'),
'14:00',
'12:00',
'14:00',
'Vida Marina Resort Marassi',
'Sedy Abdelrahman',
'4',
NULL,
NULL,
(SELECT tenant_id FROM tenants_schema.tenant WHERE tenant_name = 'ABC Hotels'),
'properties/558805311.jpg',
'properties/558805311.jpg,properties/559324005.jpg,properties/559324013.jpg,properties/559324013.jpg,properties/559324022.jpg,properties/563378774.jpg,properties/563378910.jpg,properties/563378964.jpg,properties/563379114.jpg,properties/563379274.jpg,properties/563379374.jpg',
'12:00',
'https://maps.app.goo.gl/zfwKztgaNneLHnp27',
(SELECT location_id FROM properties_schema.location WHERE location_name = 'New Alamein')
),
(
'Located 400 metres from Safi Beach, Marassi Boutique Hotel-Marina2 offers 3-star accommodation in El Alamein and features a restaurant. The property is non-smoking and is situated 35 km from Porto Marina. The nearest airport is Borg el Arab International Airport, 112 km from the hotel.',
'false',
(SELECT property_type_id FROM properties_schema.property_type WHERE property_type_name = 'motel'),
'14:00',
'12:00',
'14:00',
'Marassi Boutique Hotel',
'400 metres from Safi Beach',
'3',
NULL,
(SELECT compound_id FROM properties_schema.compound WHERE compound_name = 'marasi'),
(SELECT tenant_id FROM tenants_schema.tenant WHERE tenant_name = 'ABC Hotels'),
'properties/548116096.jpg',
'properties/548116096.jpg,properties/548116215.jpg,properties/548116244.jpg,properties/548116252.jpg,properties/548128851.jpg,properties/548128959.jpg,properties/559341500.jpg,properties/559341503.jpg,properties/559341505.jpg,properties/559341508.jpg,properties/559341512.jpg',
'12:00',
'https://maps.app.goo.gl/JWT9vJztQ7aujJLu9',
(SELECT location_id FROM properties_schema.location WHERE location_name = 'Vilages Road')
),
(
'Tawila Island Resort features an outdoor swimming pool, fitness centre, a garden and terrace in Hurghada. Among the various facilities are a bar and a private beach area. The accommodation offers a 24-hour front desk, airport transfers, a kids'' club and free WiFi throughout the property. At the resort all rooms come with air conditioning, a seating area, a flat-screen TV with satellite channels, a safety deposit box and a private bathroom with a bidet, free toiletries and a hairdryer. At Tawila Island Resort each room comes with bed linen and towels. The daily breakfast offers à la carte, continental or American options. At the accommodation you will find a restaurant serving international cuisine. Vegetarian, dairy-free and halal options can also be requested.',
'false',
(SELECT property_type_id FROM properties_schema.property_type WHERE property_type_name = 'hotel'),
'14:00',
'12:00',
'14:00',
'Tawila Island Resort',
'4KM from Hurghada',
'5',
NULL,
NULL,
(SELECT tenant_id FROM tenants_schema.tenant WHERE tenant_name = 'ABC Hotels'),
'properties/548116096.jpg',
'properties/501590320.jpg,properties/501590349.jpg,properties/501590382.jpg,properties/501590386.jpg,properties/503898209.jpg,properties/503898398.jpg,properties/503898563.jpg,properties/503898582.jpg,properties/503899122.jpg,properties/503899869.jpg,properties/503899984.jpg,properties/503899986.jpg,properties/503899996.jpg,properties/503900041.jpg,properties/503900594.jpg',
'12:00',
'https://maps.app.goo.gl/Zpv9E46iNfpbvS6p7',
(SELECT location_id FROM properties_schema.location WHERE location_name = 'Al Mamsha El Seyahi')
),
(
'A very clean family friendly well organized chalet',
'false',
(SELECT property_type_id FROM properties_schema.property_type WHERE property_type_name = 'chalet'),
'10:00:00',
'06:11:00',
'10:00:00',
'Marina Hills',
'Marina hills block 75',
'5',
NULL,
(SELECT compound_id FROM properties_schema.compound WHERE compound_name = 'Marina'),
(SELECT tenant_id FROM tenants_schema.tenant WHERE tenant_name = 'Tech Innovators'),
'properties/469602831.jpg',
'properties/469602831.jpg,properties/470127527.jpg,properties/470127571.jpg,properties/470127762.jpg,properties/470127786.jpg,properties/470127832.jpg,properties/470127872.jpg,properties/470127958.jpg,properties/470127966.jpg,properties/470127972.jpg,properties/470127990.jpg,properties/470128143.jpg,properties/470128175.jpg,properties/487927693.jpg,properties/487927744.jpg',
'05:00:00',
'http://localhost:5173/properties',
(SELECT location_id FROM properties_schema.location WHERE location_name = 'El Alamein')
),
(
'5 stars hotel in new alamein with a water view',
'true',
(SELECT property_type_id FROM properties_schema.property_type WHERE property_type_name = 'hotel'),
'11:00:00',
'04:00:00',
'08:00:00',
'Rhactus Hotel',
'New Alamein',
'5',
NULL,
NULL,
(SELECT tenant_id FROM tenants_schema.tenant WHERE tenant_name = 'Tech Innovators'),
'properties/307187926.jpg',
'properties/307187926.jpg,properties/307228874.jpg,properties/307228896.jpg,properties/375109488.jpg,properties/375113537.jpg,properties/375132129.jpg,properties/375341520.jpg,properties/375349121.jpg,properties/375349277.jpg,properties/397150902.jpg',
'05:00:00',
'https://www.google.com/maps/dir/30.0450331,31.388456/marina+north+coast+location/@30.3890578,27.5267996,7z/data=!3m1!4b1!4m9!4m8!1m1!4e1!1m5!1m1!1s0x145fedf0f6120207:0x390b26abcc8c518f!2m2!1d28.966375!2d30.851088?entry=ttu',
(SELECT location_id FROM properties_schema.location WHERE location_name = 'New Alamein')
),
(
'Porto Sokhna is a 4-star hotel offering spacious, self-catering and serviced accommodations, personalized service, and resort-style facilities in Ain Sokhna. It is just steps away from beaches along the Red Sea. Apartments, up to a floor space of 500 m², are fully furnished and include private balconies, separate seating areas, LCD TVs, and luxury bathrooms. Porto Sokhna Beach Resort, on-site restaurant offers a rich breakfast buffet and traditional regional meals are prepared for dinner. Free parking is offered to all guests.',
'false',
(SELECT property_type_id FROM properties_schema.property_type WHERE property_type_name = 'apartment'),
'14:00',
'12:00',
'14:00',
'Apartment In Porto El Sokhna',
'Ein El Sokhna, Atakka',
'0',
NULL,
NULL,
(SELECT tenant_id FROM tenants_schema.tenant WHERE tenant_name = 'Tech Innovators'),
'properties/355307852.jpg',
'properties/355307852.jpg,properties/355307853.jpg,properties/355307856.jpg,properties/355307867.jpg,properties/355307871.jpg,properties/355307873.jpg,properties/355307879.jpg,properties/355307884.jpg,properties/355307886.jpg,properties/355307889.jpg,properties/449011381.jpg,properties/449011392.jpg,properties/449011394.jpg',
'12:00',
'https://maps.app.goo.gl/xgVxpJeYm7ypMYDk8',
(SELECT location_id FROM properties_schema.location WHERE location_name = 'Porto Sokhna')
),
(
'3 bedroom villa.',
'false',
(SELECT property_type_id FROM properties_schema.property_type WHERE property_type_name = 'villa'),
'14:00',
'12:00',
'12:00',
'Lagoon View @ NAC',
'NAC',
'4',
NULL,
(SELECT compound_id FROM properties_schema.compound WHERE compound_name = 'NAC Lagoons'),
(SELECT tenant_id FROM tenants_schema.tenant WHERE tenant_name = 'Tech Innovators'),
'properties/lagoon-main.webp',
'properties/lagoon-01.webp,properties/lagoon-02.webp,properties/lagoon-03.webp,properties/lagoon-04.webp,properties/lagoon-05.webp',
'14:00',
'https://maps.app.goo.gl/14qz2NbhbhPGpcjp9',
(SELECT location_id FROM properties_schema.location WHERE location_name = 'New Alamein')
);
INSERT INTO properties_schema.reservable_unit (
reservable_unit_name,
reservable_unit_type_id,
unit_area,
reservable_unit_image,
minimum_guests_number,
maximum_guests_number,
property_id,
bathrooms_count,
is_closed,
base_price,
reservable_unit_images
) VALUES
(
'Rhactus Deluxe Family',
(SELECT reservable_unit_type_id FROM properties_schema.reservable_unit_type WHERE reservable_unit_type_name = 'Deluxe Family'),
'100',
'rooms/307187993.jpg',
'1',
'1',
(SELECT property_id FROM properties_schema.property WHERE property_name = 'Rhactus Hotel'),
'2',
'false',
'7649',
'rooms/307187993.jpg,rooms/307228874.jpg,rooms/397149691.jpg'
),
(
'Rhactus Deluxe King',
(SELECT reservable_unit_type_id FROM properties_schema.reservable_unit_type WHERE reservable_unit_type_name = 'Deluxe King'),
'100',
'rooms/307187791.jpg',
'1',
'1',
(SELECT property_id FROM properties_schema.property WHERE property_name = 'Rhactus Hotel'),
'1',
'false',
'10560',
'rooms/307187791.jpg,rooms/307187967.jpg,rooms/307188019.jpg,rooms/307228804.jpg,rooms/307228874.jpg,rooms/307228896.jpg'
),
(
'Rhactus Premium King',
(SELECT reservable_unit_type_id FROM properties_schema.reservable_unit_type WHERE reservable_unit_type_name = 'Premium King'),
'100',
'rooms/307187791.jpg',
'1',
'1',
(SELECT property_id FROM properties_schema.property WHERE property_name = 'Rhactus Hotel'),
'1',
'false',
'11320',
'rooms/307187791.jpg,rooms/307187967.jpg,rooms/307188019.jpg,rooms/307228804.jpg,rooms/307228874.jpg'
),
(
'Rhactus Deluxe Triple',
(SELECT reservable_unit_type_id FROM properties_schema.reservable_unit_type WHERE reservable_unit_type_name = 'Deluxe Triple'),
'100',
'rooms/307228874.jpg',
'1',
'3',
(SELECT property_id FROM properties_schema.property WHERE property_name = 'Rhactus Hotel'),
'2',
'false',
'10500',
'rooms/307228874.jpg,rooms/397149144.jpg'
),
(
'Rhactus Deluxe Twin',
(SELECT reservable_unit_type_id FROM properties_schema.reservable_unit_type WHERE reservable_unit_type_name = 'Deluxe Twin'),
'100',
'rooms/307187791.jpg',
'1',
'2',
(SELECT property_id FROM properties_schema.property WHERE property_name = 'Rhactus Hotel'),
'1',
'false',
'9200',
'rooms/307187791.jpg,rooms/307187967.jpg,rooms/307188019.jpg,rooms/307228829.jpg,rooms/307228874.jpg'
),
(
'Marina Hills one bedroom apartment',
(SELECT reservable_unit_type_id FROM properties_schema.reservable_unit_type WHERE reservable_unit_type_name = 'one bedroom apartment'),
'100',
'rooms/470127571.jpg',
'1',
'4',
(SELECT property_id FROM properties_schema.property WHERE property_name = 'Marina Hills'),
'1',
'false',
'9200',
'rooms/470127571.jpg,rooms/470127762.jpg,rooms/470127786.jpg,rooms/470127832.jpg,rooms/470127864.jpg,rooms/470127872.jpg,rooms/470127958.jpg,rooms/470127966.jpg,rooms/470127972.jpg,rooms/470127990.jpg,rooms/470128018.jpg,rooms/470128143.jpg,rooms/470128153.jpg,rooms/470128175.jpg,rooms/470128189.jpg,rooms/Photo_1715957595657.jpeg'
),
(
'Vida Deluxe - Garden View',
(SELECT reservable_unit_type_id FROM properties_schema.reservable_unit_type WHERE reservable_unit_type_name = 'Deluxe Family'),
'100',
'rooms/558805311.jpg',
'1',
'4',
(SELECT property_id FROM properties_schema.property WHERE property_name = 'Vida Marina Resort Marassi'),
'1',
'false',
'6500',
'rooms/558805311.jpg, rooms/559324005.jpg,rooms/559324022.jpg,rooms/563378910.jpg'
),
(
'Vida Executive - Garden View',
(SELECT reservable_unit_type_id FROM properties_schema.reservable_unit_type WHERE reservable_unit_type_name = 'Deluxe Family'),
'100',
'rooms/558805311.jpg',
'1',
'4',
(SELECT property_id FROM properties_schema.property WHERE property_name = 'Vida Marina Resort Marassi'),
'1',
'false',
'9890',
'rooms/558805311.jpg,rooms/559324022.jpg,rooms/563378910.jpg'
),
(
'Marassi boutique - Double Room',
(SELECT reservable_unit_type_id FROM properties_schema.reservable_unit_type WHERE reservable_unit_type_name = 'Deluxe Family'),
'100',
'rooms/548066614.jpg',
'1',
'2',
(SELECT property_id FROM properties_schema.property WHERE property_name = 'Marassi Boutique Hotel'),
'1',
'false',
'4760',
'rooms/548066614.jpg'
),
(
'Marassi boutique - Royal Suite',
(SELECT reservable_unit_type_id FROM properties_schema.reservable_unit_type WHERE reservable_unit_type_name = 'Royal Suite'),
'100',
'rooms/548066625.jpg',
'1',
'3',
(SELECT property_id FROM properties_schema.property WHERE property_name = 'Marassi Boutique Hotel'),
'1',