From c0c2a1822cf1c460752277cac89e6debe6a835cf Mon Sep 17 00:00:00 2001 From: Kevin Adametz Date: Thu, 28 Mar 2019 14:53:16 +0100 Subject: [PATCH] Fewos in CRM, Fewo Clients Bookings create / edit / delelte via API in DB --- .idea/dataSources.local.xml | 20 +- .idea/dataSources.xml | 16 +- .../09ce12d1-7f68-4ce4-9ab1-0229d6366fdb.xml | 4763 +++++++++++++++++ ... f7aaeef3-b8e1-45ca-9f6a-b9476048d5dd.xml} | 2601 +++++---- .idea/mein.sterntours.iml | 1 + .idea/php.xml | 1 + .idea/workspace.xml | 961 ++-- .phpstorm.meta.php | 9 +- _ide_helper.php | 2 +- app/Http/Controllers/API/FewoController.php | 104 + .../TravelUserBookingFewoController.php | 131 + app/Http/Controllers/TravelUserController.php | 111 + app/Models/FewoLodging.php | 103 + app/Models/FewoLodgingGroup.php | 42 + app/Models/FewoLodgingGroupImage.php | 51 + app/Models/FewoLodgingImage.php | 49 + app/Models/FewoLodgingType.php | 36 + app/Models/FewoPrice.php | 55 + app/Models/FewoReservation.php | 55 + app/Models/FewoSeason.php | 56 + app/Models/TravelBookingFewoChannel.php | 35 + app/Models/TravelNationality.php | 1 - app/Models/TravelUser.php | 110 + app/Models/TravelUserBookingFewo.php | 314 ++ app/Services/HTMLHelper.php | 59 + app/Services/Util.php | 4 + bootstrap/cache/services.php | 5 + composer.json | 1 + composer.lock | 54 +- config/app.php | 1 + config/models.php | 296 + ...3_05_114701_create_travel_agenda_table.php | 1 - ...03_20_113747_create_travel_users_table.php | 63 + ...03_20_132556_create_fewo_lodging_table.php | 58 + ..._create_fewo_lodging_group_image_table.php | 49 + ...132557_create_fewo_lodging_group_table.php | 43 + ...132558_create_fewo_lodging_image_table.php | 48 + ..._132558_create_fewo_lodging_type_table.php | 43 + ...9_03_20_132559_create_fewo_price_table.php | 50 + ...0_132600_create_fewo_reservation_table.php | 48 + ..._03_20_132600_create_fewo_season_table.php | 48 + ...ate_travel_booking_fewo_channels_table.php | 45 + ...create_travel_user_booking_fewos_table.php | 85 + .../sym/0001_sym_travel_country_table.php | 9 +- .../sym/0002_sym_salutation_table.php | 38 + public/js/custom.js | 13 + .../layouts/includes/layout-sidenav.blade.php | 76 +- .../travel/user/booking/detail.blade.php | 41 + .../views/travel/user/booking/form.blade.php | 144 + .../views/travel/user/booking/index.blade.php | 97 + resources/views/travel/user/detail.blade.php | 41 + resources/views/travel/user/form.blade.php | 109 + resources/views/travel/user/index.blade.php | 58 + routes/api.php | 2 + routes/web.php | 17 +- 55 files changed, 9787 insertions(+), 1486 deletions(-) create mode 100644 .idea/dataSources/09ce12d1-7f68-4ce4-9ab1-0229d6366fdb.xml rename .idea/dataSources/{518aec94-6998-4ffd-beef-24607063526e.xml => f7aaeef3-b8e1-45ca-9f6a-b9476048d5dd.xml} (66%) create mode 100755 app/Http/Controllers/API/FewoController.php create mode 100755 app/Http/Controllers/TravelUserBookingFewoController.php create mode 100755 app/Http/Controllers/TravelUserController.php create mode 100644 app/Models/FewoLodging.php create mode 100644 app/Models/FewoLodgingGroup.php create mode 100644 app/Models/FewoLodgingGroupImage.php create mode 100644 app/Models/FewoLodgingImage.php create mode 100644 app/Models/FewoLodgingType.php create mode 100644 app/Models/FewoPrice.php create mode 100644 app/Models/FewoReservation.php create mode 100644 app/Models/FewoSeason.php create mode 100644 app/Models/TravelBookingFewoChannel.php create mode 100644 app/Models/TravelUser.php create mode 100644 app/Models/TravelUserBookingFewo.php create mode 100644 config/models.php create mode 100644 database/migrations/2019_03_20_113747_create_travel_users_table.php create mode 100644 database/migrations/2019_03_20_132556_create_fewo_lodging_table.php create mode 100644 database/migrations/2019_03_20_132557_create_fewo_lodging_group_image_table.php create mode 100644 database/migrations/2019_03_20_132557_create_fewo_lodging_group_table.php create mode 100644 database/migrations/2019_03_20_132558_create_fewo_lodging_image_table.php create mode 100644 database/migrations/2019_03_20_132558_create_fewo_lodging_type_table.php create mode 100644 database/migrations/2019_03_20_132559_create_fewo_price_table.php create mode 100644 database/migrations/2019_03_20_132600_create_fewo_reservation_table.php create mode 100644 database/migrations/2019_03_20_132600_create_fewo_season_table.php create mode 100644 database/migrations/2019_03_21_114814_create_travel_booking_fewo_channels_table.php create mode 100644 database/migrations/2019_03_21_123748_create_travel_user_booking_fewos_table.php create mode 100755 database/migrations/sym/0002_sym_salutation_table.php create mode 100755 resources/views/travel/user/booking/detail.blade.php create mode 100755 resources/views/travel/user/booking/form.blade.php create mode 100755 resources/views/travel/user/booking/index.blade.php create mode 100755 resources/views/travel/user/detail.blade.php create mode 100755 resources/views/travel/user/form.blade.php create mode 100755 resources/views/travel/user/index.blade.php diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml index cae7652..e2b9c05 100644 --- a/.idea/dataSources.local.xml +++ b/.idea/dataSources.local.xml @@ -1,8 +1,24 @@ - - + + + #@ + ` + + + master_key + cmssso_1 + *:@ + + + + #@ + ` + + + master_key + root *:@ diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index dc48bda..126f31e 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -1,7 +1,7 @@ - + mysql true com.mysql.jdbc.Driver @@ -15,5 +15,19 @@ + + mysql + true + com.mysql.jdbc.Driver + jdbc:mysql://localhost:3306/sterntours + + + + + + + + + \ No newline at end of file diff --git a/.idea/dataSources/09ce12d1-7f68-4ce4-9ab1-0229d6366fdb.xml b/.idea/dataSources/09ce12d1-7f68-4ce4-9ab1-0229d6366fdb.xml new file mode 100644 index 0000000..2ccab2e --- /dev/null +++ b/.idea/dataSources/09ce12d1-7f68-4ce4-9ab1-0229d6366fdb.xml @@ -0,0 +1,4763 @@ + + + + + 5.7.25 + InnoDB + InnoDB + mixed/mixed + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + 1 + 1 + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + armscii8 + 0 + + + armscii8 + 1 + + + ascii + 0 + + + ascii + 1 + + + big5 + 0 + + + big5 + 1 + + + binary + 1 + + + cp1250 + 0 + + + cp1250 + 0 + + + cp1250 + 0 + + + cp1250 + 1 + + + cp1250 + 0 + + + cp1251 + 0 + + + cp1251 + 0 + + + cp1251 + 1 + + + cp1251 + 0 + + + cp1251 + 0 + + + cp1256 + 0 + + + cp1256 + 1 + + + cp1257 + 0 + + + cp1257 + 1 + + + cp1257 + 0 + + + cp850 + 0 + + + cp850 + 1 + + + cp852 + 0 + + + cp852 + 1 + + + cp866 + 0 + + + cp866 + 1 + + + cp932 + 0 + + + cp932 + 1 + + + dec8 + 0 + + + dec8 + 1 + + + eucjpms + 0 + + + eucjpms + 1 + + + euckr + 0 + + + euckr + 1 + + + gb18030 + 0 + + + gb18030 + 1 + + + gb18030 + 0 + + + gb2312 + 0 + + + gb2312 + 1 + + + gbk + 0 + + + gbk + 1 + + + geostd8 + 0 + + + geostd8 + 1 + + + greek + 0 + + + greek + 1 + + + hebrew + 0 + + + hebrew + 1 + + + hp8 + 0 + + + hp8 + 1 + + + keybcs2 + 0 + + + keybcs2 + 1 + + + koi8r + 0 + + + koi8r + 1 + + + koi8u + 0 + + + koi8u + 1 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 1 + + + latin2 + 0 + + + latin2 + 0 + + + latin2 + 0 + + + latin2 + 1 + + + latin2 + 0 + + + latin5 + 0 + + + latin5 + 1 + + + latin7 + 0 + + + latin7 + 0 + + + latin7 + 1 + + + latin7 + 0 + + + macce + 0 + + + macce + 1 + + + macroman + 0 + + + macroman + 1 + + + sjis + 0 + + + sjis + 1 + + + swe7 + 0 + + + swe7 + 1 + + + tis620 + 0 + + + tis620 + 1 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 1 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ujis + 0 + + + ujis + 1 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 1 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16le + 0 + + + utf16le + 1 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 1 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 1 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 1 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + MyISAM +
+ + MyISAM + utf8_unicode_ci +
+ + utf8mb4_unicode_ci +
+ +
+ utf8_unicode_ci +
+ +
+ utf8_unicode_ci +
+ + utf8_unicode_ci +
+ + utf8_unicode_ci +
+ + utf8_unicode_ci +
+ + utf8_unicode_ci +
+ + utf8_unicode_ci +
+ +
+
+ MyISAM + latin1_swedish_ci +
+ +
+ MyISAM + latin1_swedish_ci +
+ + latin1_swedish_ci +
+ +
+
+ utf8_unicode_ci +
+ + utf8mb4_unicode_ci +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+ utf8mb4_unicode_ci +
+ +
+
+
+
+
+
+
+
+
+
+
+ utf8mb4_unicode_ci +
+ +
+
+
+ latin1_swedish_ci +
+ + utf8mb4_unicode_ci +
+ + MyISAM + latin1_swedish_ci +
+ + MyISAM + latin1_swedish_ci +
+ + latin1_swedish_ci +
+ + 1 + varchar(4)|0s + 1 + normal + utf8_unicode_ci + + + 2 + varchar(4)|0s + 1 + normal + utf8_unicode_ci + + + 3 + varchar(255)|0s + 1 + normal + utf8_unicode_ci + + + 4 + varchar(255)|0s + 1 + normal + utf8_unicode_ci + + + 5 + varchar(255)|0s + 1 + normal + utf8_unicode_ci + + + 6 + varchar(255)|0s + 1 + normal + utf8_unicode_ci + + + 7 + tinyint(1) unsigned|0s + 1 + 0 + normal + + + 1 + int(10) unsigned|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + 1 + normal + + + 3 + datetime|0s + 1 + normal + + + 4 + date|0s + 1 + normal + + + 5 + date|0s + 1 + normal + + + 6 + int(10) unsigned|0s + 1 + normal + + + 7 + int(10) unsigned|0s + 1 + normal + + + 8 + varchar(255)|0s + 1 + normal + + + 9 + varchar(255)|0s + 1 + normal + + + 10 + varchar(255)|0s + 1 + normal + + + 11 + varchar(255)|0s + 1 + normal + + + 12 + varchar(255)|0s + 1 + normal + + + 13 + varchar(255)|0s + 1 + normal + + + 14 + varchar(255)|0s + 1 + normal + + + 15 + varchar(255)|0s + 1 + normal + + + 16 + varchar(255)|0s + 1 + normal + + + 17 + varchar(255)|0s + 1 + normal + + + 18 + varchar(255)|0s + 1 + normal + + + 19 + varchar(255)|0s + 1 + normal + + + 20 + date|0s + 1 + normal + + + 21 + varchar(255)|0s + 1 + normal + + + 22 + int(10) unsigned|0s + 1 + normal + + + 23 + int(1) unsigned|0s + 1 + normal + + + 24 + varchar(255)|0s + 1 + normal + + + 25 + varchar(255)|0s + 1 + normal + + + 26 + int(10)|0s + 1 + normal + + + 27 + float(10,2 digit)|0s + 1 + normal + + + 28 + varchar(255)|0s + 1 + normal + + + 29 + float(10,2 digit)|0s + 1 + normal + + + 30 + float(6,2 digit)|0s + 1 + normal + + + 31 + text|0s + 1 + normal + + + 32 + float(10,2 digit)|0s + 1 + normal + + + 33 + float(10,2 digit)|0s + 1 + normal + + + 34 + float(10,2 digit)|0s + 1 + normal + + + 1 + Booking_ID + 1 + + + 1 + int(10) unsigned|0s + 1 + 1 + normal + + + 2 + varchar(191)|0s + 1 + normal + + + 3 + varchar(191)|0s + 1 + normal + + + 4 + varchar(10)|0s + 1 + '' + normal + + + 5 + varchar(191)|0s + normal + + + 6 + text|0s + normal + + + 7 + bigint(14)|0s + normal + + + 8 + decimal(15,2 digit)|0s + normal + + + 9 + timestamp|0s + normal + + + 10 + timestamp|0s + normal + + + slug + 1 + btree + + + field + btree + + + 1 + id + 1 + + + slug + c_m_s_contents_slug_unique + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 1 + id + 1 + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + int(11)|0s + normal + + + 3 + int(11)|0s + normal + + + 4 + varchar(255)|0s + 1 + normal + + + 5 + longtext|0s + 1 + normal + + + 6 + longtext|0s + 1 + normal + + + 7 + varchar(255)|0s + 1 + normal + + + 8 + varchar(255)|0s + normal + + + 9 + varchar(255)|0s + 1 + normal + + + 10 + varchar(255)|0s + 1 + normal + + + 11 + int(11)|0s + 1 + normal + + + 12 + double|0s + 1 + normal + + + 13 + tinyint(1)|0s + normal + + + group_id + btree + + + type_id + btree + + + 1 + id + 1 + + + group_id + sterntours + fewo_lodging_group + id + + + type_id + sterntours + fewo_lodging_type + id + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 1 + id + 1 + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + int(11)|0s + normal + + + 3 + varchar(4)|0s + normal + + + 4 + smallint(4)|0s + normal + + + 5 + varchar(255)|0s + 1 + normal + + + 6 + varchar(255)|0s + 1 + normal + + + 7 + varchar(255)|0s + normal + + + group_id + btree + + + 1 + id + 1 + + + group_id + sterntours + fewo_lodging_group + id + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + int(11)|0s + normal + + + 3 + smallint(4) unsigned|0s + normal + + + 4 + varchar(255)|0s + 1 + normal + + + 5 + varchar(255)|0s + 1 + normal + + + 6 + varchar(255)|0s + normal + + + lodging_id + btree + + + 1 + id + 1 + + + lodging_id + sterntours + fewo_lodging + id + set-null + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 1 + id + 1 + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + int(11)|0s + normal + + + 3 + int(11)|0s + normal + + + 4 + double|0s + 1 + normal + + + 5 + double|0s + 1 + normal + + + lodging_id + btree + + + season_id + btree + + + 1 + id + 1 + + + lodging_id + sterntours + fewo_lodging + id + + + season_id + sterntours + fewo_season + id + set-null + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + int(11)|0s + normal + + + 3 + date|0s + 1 + normal + + + 4 + date|0s + 1 + normal + + + 5 + int(11)|0s + 1 + normal + + + 6 + int(11)|0s + normal + + + lodging_id + btree + + + 1 + id + 1 + + + lodging_id + sterntours + fewo_lodging + id + set-null + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + 1 + normal + + + 3 + date|0s + 1 + normal + + + 4 + date|0s + 1 + normal + + + 5 + int(11)|0s + 1 + normal + + + 6 + longtext|0s + normal + + + 7 + int(11)|0s + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + date|0s + normal + + + 3 + date|0s + normal + + + 4 + int(10)|0s + normal + + + 5 + float(10,2 digit)|0s + normal + + + start_date +end_date +travel_arrival_point_id + 1 + btree + + + travel_arrival_point_id + btree + + + 1 + id + 1 + + + start_date +end_date +travel_arrival_point_id + UK_start_date_end_date_travel_arrival_point + + + travel_arrival_point_id + sterntours + travel_arrival_point + id + cascade + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + normal + + + 3 + tinyint(1)|0s + 0 + normal + + + 4 + int(2)|0s + 0 + normal + + + 5 + int(2)|0s + 0 + normal + + + 1 + id + 1 + + + 1 + mediumint(8) unsigned|0s + 1 + 1 + normal + + + 2 + varchar(20)|0s + 1 + normal + + + 3 + varchar(100)|0s + 1 + normal + + + 1 + id + 1 + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + varchar(250)|0s + 1 + normal + + + 3 + varchar(200)|0s + normal + + + value + 1 + btree + + + 1 + id + 1 + + + value + value + + + 1 + mediumint(8) unsigned|0s + 1 + 1 + normal + + + 2 + varbinary(16)|0s + 1 + normal + + + 3 + varchar(100)|0s + 1 + normal + + + 4 + int(11) unsigned|0s + normal + + + 1 + id + 1 + + + 1 + int(11) unsigned|0s + 1 + 1 + normal + + + 2 + varchar(100)|0s + 1 + '' + normal + + + 3 + varchar(100)|0s + 1 + '' + normal + + + 4 + varchar(200)|0s + 1 + '' + normal + + + 5 + varchar(50)|0s + 1 + '' + normal + + + 6 + bigint(16)|0s + normal + + + 7 + bigint(16)|0s + normal + + + 8 + varchar(32)|0s + normal + + + 9 + varchar(32)|0s + normal + + + 10 + varchar(32)|0s + normal + + + 1 + id + 1 + + + 1 + varchar(255)|0s + normal + + + 2 + text|0s + normal + + + 3 + int(10)|0s + normal + + + program_id + btree + + + program_id + sterntours + travel_program + id + cascade + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + 0 + normal + + + 3 + varchar(20)|0s + normal + + + 4 + int(11)|0s + normal + + + 5 + int(10)|0s + 1 + normal + + + 6 + int(10)|0s + normal + + + 7 + int(10)|0s + 0 + normal + + + 8 + varchar(255)|0s + normal + + + 9 + int(10)|0s + normal + + + 10 + int(10)|0s + 1 + normal + + + 11 + int(10)|0s + 1 + normal + + + 12 + int(10)|0s + 0 + normal + + + 13 + varchar(255)|0s + normal + + + 14 + varchar(255)|0s + normal + + + 15 + text|0s + normal + + + 16 + text|0s + normal + + + 17 + text|0s + normal + + + 18 + text|0s + normal + + + 19 + varchar(255)|0s + normal + + + 20 + int(11)|0s + normal + + + 21 + int(11)|0s + normal + + + 22 + int(10)|0s + normal + + + 23 + datetime|0s + normal + + + 24 + tinyint(1)|0s + 1 + 0 + normal + + + 25 + text|0s + normal + + + 26 + varchar(255)|0s + normal + + + 27 + varchar(511)|0s + normal + + + 28 + int(10)|0s + normal + + + 29 + varchar(80)|0s + normal + + + 30 + int(11)|0s + normal + + + 31 + int(11)|0s + normal + + + 32 + int(10)|0s + normal + + + 33 + int(10)|0s + normal + + + 34 + varchar(200)|0s + normal + + + 35 + text|0s + normal + + + 36 + varchar(200)|0s + normal + + + 37 + varchar(255)|0s + normal + + + 38 + varchar(255)|0s + normal + + + 39 + longtext|0s + normal + + + 40 + int(11)|0s + normal + + + 41 + timestamp|0s + normal + + + 42 + timestamp|0s + normal + + + keyword + 1 + btree + + + real_url_path + 1 + btree + + + fewo_lodging + 1 + btree + + + model + btree + + + country_id + btree + + + tree_root + btree + + + parent_id + btree + + + 1 + id + 1 + + + keyword + keyword + + + real_url_path + UNIQ_140AB620E2652A2A + + + fewo_lodging + UNIQ_140AB6209629C357 + + + country_id + sterntours + travel_country + id + set-null + + + tree_root + sterntours + page + id + cascade + + + parent_id + sterntours + page + id + cascade + + + fewo_lodging + sterntours + fewo_lodging + id + set-null + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + int(11)|0s + 1 + normal + + + 3 + varchar(200)|0s + 1 + normal + + + source_url_path + 1 + btree + + + page_id + btree + + + 1 + id + 1 + + + source_url_path + UNIQ_C30C9E2B56207465 + + + page_id + sterntours + page + id + + + 1 + int(10) unsigned|0s + 1 + 1 + normal + + + 2 + varchar(191)|0s + 1 + normal + + + 3 + varchar(191)|0s + normal + + + 4 + text|0s + normal + + + 5 + text|0s + normal + + + 6 + tinyint(3) unsigned|0s + normal + + + 7 + tinyint(1)|0s + 1 + 1 + normal + + + 8 + timestamp|0s + normal + + + 9 + timestamp|0s + normal + + + 1 + id + 1 + + + 1 + int(11)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + longtext|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + varchar(200)|0s + normal + + + 6 + varchar(200)|0s + normal + + + 7 + varchar(20)|0s + normal + + + 8 + double|0s + normal + + + 9 + int(11)|0s + normal + + + 10 + int(11)|0s + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + int(10)|0s + normal + + + travel_country_id + btree + + + 1 + id + 1 + + + travel_country_id + sterntours + travel_country + id + cascade + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + datetime|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + int(10)|0s + normal + + + 6 + int(10)|0s + normal + + + 7 + varchar(255)|0s + normal + + + 8 + int(1)|0s + normal + + + 9 + varchar(255)|0s + normal + + + 10 + varchar(255)|0s + normal + + + 11 + varchar(255)|0s + normal + + + 12 + varchar(255)|0s + normal + + + 13 + varchar(255)|0s + normal + + + 14 + varchar(255)|0s + normal + + + 15 + int(10)|0s + normal + + + 16 + varchar(255)|0s + normal + + + 17 + varchar(255)|0s + normal + + + 18 + varchar(255)|0s + normal + + + 19 + text|0s + normal + + + 20 + date|0s + normal + + + 21 + date|0s + normal + + + 22 + int(2)|0s + normal + + + 23 + int(2)|0s + normal + + + 24 + int(2)|0s + normal + + + 25 + int(2)|0s + normal + + + 26 + text|0s + normal + + + 27 + text|0s + normal + + + 28 + int(2)|0s + normal + + + 29 + decimal(10,2 digit)|0s + normal + + + 30 + decimal(10,2 digit)|0s + normal + + + 31 + decimal(10,2 digit)|0s + normal + + + 32 + date|0s + normal + + + 33 + text|0s + normal + + + 34 + varchar(255)|0s + normal + + + 35 + text|0s + normal + + + 36 + int(1)|0s + normal + + + 37 + text|0s + normal + + + 38 + text|0s + 1 + normal + + + 39 + text|0s + 1 + normal + + + 40 + tinyint(1) unsigned|0s + normal + + + program_id + btree + + + period_id + btree + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + text|0s + 1 + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + int(10)|0s + normal + + + 5 + tinyint(1)|0s + 1 + 1 + normal + + + 6 + timestamp|0s + normal + + + 7 + timestamp|0s + normal + + + program_id + btree + + + 1 + id + 1 + + + program_id + sterntours + travel_program + id + cascade + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + normal + + + 3 + varchar(255)|0s + 1 + normal + + + 4 + text|0s + normal + + + 5 + text|0s + normal + + + 6 + int(10)|0s + normal + + + 7 + tinyint(1)|0s + 0 + normal + + + 8 + tinyint(1)|0s + 0 + normal + + + 9 + tinyint(1)|0s + 1 + normal + + + 10 + timestamp|0s + normal + + + 11 + timestamp|0s + normal + + + crm_id + btree + + + feedback_page_id + btree + + + 1 + id + 1 + + + feedback_page_id + sterntours + page + id + set-null + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + normal + + + 3 + int(10)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + varchar(255)|0s + normal + + + 6 + varchar(255)|0s + normal + + + 7 + text|0s + normal + + + 8 + enum('flight', 'bus', 'own')|0e + normal + + + 9 + varchar(255)|0s + normal + + + 10 + int(10)|0s + normal + + + 11 + int(10)|0s + normal + + + program_id +name + 1 + btree + + + period_id +name + 1 + btree + + + flight_period_id +name + 1 + btree + + + travel_arrival_point_id +name + 1 + btree + + + program_id + btree + + + flight_period_id + btree + + + travel_arrival_point_id + btree + + + 1 + id + 1 + + + program_id +name + UK_program_id_name + + + period_id +name + UK_period_id_name + + + flight_period_id +name + UK_flight_period_id_name + + + travel_arrival_point_id +name + UK_travel_arrival_point_id_name + + + program_id + sterntours + travel_program + id + cascade + + + flight_period_id + sterntours + flight_period + id + cascade + + + travel_arrival_point_id + sterntours + travel_arrival_point + id + set-null + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + normal + + + 3 + date|0s + normal + + + 4 + date|0s + normal + + + 5 + float(10,2 digit)|0s + normal + + + departure_point_id + btree + + + 1 + id + 1 + + + departure_point_id + sterntours + travel_departure_point + id + cascade + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + int(10)|0s + normal + + + country_id + btree + + + 1 + id + 1 + + + country_id + sterntours + travel_country + id + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + 1 + 0 + normal + + + 3 + float(10,2 digit)|0s + normal + + + 4 + tinyint(4)|0s + 0 + normal + + + 5 + date|0s + normal + + + 6 + date|0s + normal + + + 7 + tinyint(4)|0s + 0 + normal + + + period_id + btree + + + 1 + id + 1 + + + period_id + sterntours + travel_period + id + cascade + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + text|0s + 1 + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + text|0s + normal + + + 6 + varchar(255)|0s + normal + + + 7 + tinytext|0s + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + float(10,2 digit)|0s + normal + + + 3 + float(10,2 digit)|0s + normal + + + 4 + float(10,2 digit)|0s + normal + + + 5 + float(10,2 digit)|0s + normal + + + 6 + float(10,2 digit)|0s + normal + + + 7 + varchar(255)|0s + normal + + + 8 + int(10)|0s + normal + + + insurance_id + btree + + + 1 + id + 1 + + + insurance_id + sterntours + travel_insurance + id + cascade + + + 1 + int(10) unsigned|0s + 1 + 1 + normal + + + 2 + varchar(191)|0s + 1 + normal + + + 3 + varchar(191)|0s + 1 + normal + + + 4 + varchar(191)|0s + normal + + + 5 + text|0s + normal + + + 6 + varchar(191)|0s + normal + + + 7 + varchar(191)|0s + normal + + + 8 + varchar(191)|0s + normal + + + 9 + tinyint(3) unsigned|0s + normal + + + 10 + tinyint(1)|0s + 1 + 0 + normal + + + 11 + tinyint(1)|0s + 1 + 1 + normal + + + 12 + timestamp|0s + normal + + + 13 + timestamp|0s + normal + + + slug + 1 + btree + + + 1 + id + 1 + + + slug + travel_magazines_slug_unique + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + tinyint(1)|0s + 1 + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + normal + + + 3 + int(10)|0s + normal + + + 4 + text|0s + normal + + + travel_country_id + btree + + + travel_nationality_id + btree + + + 1 + id + 1 + + + travel_country_id + sterntours + travel_country + id + + + travel_nationality_id + sterntours + travel_nationality + id + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + float(10,2 digit)|0s + normal + + + 5 + float(10,2 digit)|0s + normal + + + 6 + text|0s + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + text|0s + normal + + + 5 + date|0s + normal + + + 6 + varchar(255)|0s + normal + + + 7 + varchar(255)|0s + normal + + + 8 + varchar(255)|0s + normal + + + 9 + int(5)|0s + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + int(10)|0s + normal + + + 5 + tinyint(1)|0s + normal + + + 6 + int(10)|0s + normal + + + 7 + float(10,2 digit)|0s + 1 + 0.00 + normal + + + 8 + int(10)|0s + normal + + + 9 + tinyint(1)|0s + 0 + normal + + + program_id + btree + + + class + btree + + + travel_arrival_point_id + btree + + + 1 + id + 1 + + + program_id + sterntours + travel_program + id + cascade + + + class + sterntours + travel_class + id + cascade + + + travel_arrival_point_id + sterntours + travel_arrival_point + id + set-null + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + normal + + + 3 + int(4)|0s + normal + + + 4 + date|0s + normal + + + 5 + date|0s + normal + + + period_id + btree + + + 1 + id + 1 + + + period_id + sterntours + travel_period + id + cascade + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + normal + + + 3 + int(10)|0s + normal + + + 4 + float(10,2 digit)|0s + normal + + + 5 + float(10,2 digit)|0s + 1 + 0.00 + normal + + + 6 + float(10,2 digit)|0s + 1 + 0.00 + normal + + + 7 + float(10,2 digit)|0s + 1 + 0.00 + normal + + + 8 + float(10,2 digit)|0s + 0.00 + normal + + + 9 + float(10,2 digit)|0s + 0.00 + normal + + + 10 + float(10,2 digit)|0s + 0.00 + normal + + + 11 + float(10,2 digit)|0s + 0.00 + normal + + + 12 + float(10,2 digit)|0s + 0.00 + normal + + + 13 + float(10,2 digit)|0s + 0.00 + normal + + + 14 + tinyint(1) unsigned|0s + 1 + normal + + + price_type +period_id + 1 + btree + + + period_id + btree + + + 1 + id + 1 + + + price_type +period_id + UK_price_type_period_id + + + period_id + sterntours + travel_period + id + cascade + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + int(2)|0s + normal + + + 6 + int(2)|0s + normal + + + 7 + int(2)|0s + normal + + + 8 + int(2)|0s + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + float(10,2 digit)|0s + 20.00 + normal + + + 3 + int(10)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + int(2)|0s + normal + + + 6 + tinyint(1)|0s + normal + + + 7 + tinyint(1)|0s + 0 + normal + + + 8 + varchar(255)|0s + normal + + + 9 + varchar(255)|0s + normal + + + 10 + varchar(255)|0s + normal + + + 11 + int(2)|0s + normal + + + 12 + int(10)|0s + normal + + + 13 + int(10)|0s + normal + + + 14 + tinyint(3)|0s + normal + + + 15 + text|0s + normal + + + 16 + text|0s + normal + + + 17 + text|0s + normal + + + 18 + text|0s + normal + + + 19 + text|0s + normal + + + 20 + varchar(255)|0s + normal + + + 21 + int(2)|0s + normal + + + 22 + text|0s + normal + + + 23 + int(10)|0s + normal + + + 24 + int(10)|0s + normal + + + 25 + int(10)|0s + normal + + + 26 + int(10)|0s + normal + + + 27 + tinyint(1) unsigned zerofill|0s + 1 + 0 + normal + + + 28 + tinyint(1)|0s + 1 + 1 + normal + + + 29 + text|0s + normal + + + 30 + varchar(255)|0s + 1 + '' + normal + + + 31 + varchar(255)|0s + 1 + '' + normal + + + 32 + int(10)|0s + normal + + + 33 + int(10)|0s + normal + + + 34 + int(10)|0s + normal + + + 35 + tinyint(2) unsigned|0s + normal + + + 36 + tinyint(1)|0s + 0 + normal + + + 37 + text|0s + normal + + + 38 + float(10,2 digit)|0s + normal + + + 39 + int(10)|0s + normal + + + 40 + varchar(255)|0s + normal + + + 41 + smallint(6)|0s + normal + + + 42 + double|0s + normal + + + 43 + tinyint(4)|0s + normal + + + 44 + timestamp|0s + normal + + + 45 + timestamp|0s + normal + + + category_id + btree + + + organizer + btree + + + generalnote + btree + + + insurance_1 + btree + + + insurance_2 + btree + + + insurance_3 + btree + + + travel_arrival_point_id + btree + + + 1 + id + 1 + + + category_id + sterntours + travel_category + id + set-null + + + organizer + sterntours + travel_organizer + id + set-null + + + generalnote + sterntours + travel_general_notes + id + + + insurance_1 + sterntours + travel_insurance + id + set-null + + + insurance_2 + sterntours + travel_insurance + id + set-null + + + insurance_3 + sterntours + travel_insurance + id + + + travel_arrival_point_id + sterntours + travel_arrival_point + id + set-null + + + 1 + int(10)|0s + normal + + + 2 + int(10)|0s + normal + + + program_id + btree + + + country_id + btree + + + program_id + sterntours + travel_program + id + cascade + + + country_id + sterntours + travel_country + id + cascade + + + 1 + int(10)|0s + normal + + + 2 + int(10)|0s + normal + + + program_id + btree + + + destination_id + btree + + + program_id + sterntours + travel_program + id + cascade + + + destination_id + sterntours + travel_destination + id + cascade + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + 1 + normal + + + 3 + int(10)|0s + normal + + + 4 + int(10)|0s + 1 + normal + + + 5 + varchar(191)|0s + normal + + + 6 + timestamp|0s + normal + + + 7 + timestamp|0s + normal + + + travel_program_id + btree + + + travel_class_id + btree + + + 1 + id + 1 + + + travel_program_id + sterntours + travel_program + id + + + travel_class_id + sterntours + travel_class + id + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + int(10)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + varchar(255)|0s + normal + + + 6 + tinyint(1)|0s + normal + + + program_id + btree + + + 1 + id + 1 + + + program_id + sterntours + travel_program + id + cascade + + + 1 + int(10)|0s + normal + + + 2 + int(10)|0s + normal + + + 3 + int(10)|0s + normal + + + 4 + int(10)|0s + normal + + + program_id + btree + + + option_id + btree + + + program_id + sterntours + travel_program + id + cascade + + + option_id + sterntours + travel_option + id + cascade + + + 1 + int(10)|0s + normal + + + 2 + int(10)|0s + normal + + + 3 + varchar(255)|0s + normal + + + program_1 + btree + + + program_2 + btree + + + program_1 + sterntours + travel_program + id + cascade + + + program_2 + sterntours + travel_program + id + cascade + + + 1 + varchar(255)|0s + 1 + normal + + + 2 + varchar(255)|0s + 1 + normal + + + 3 + int(10)|0s + 1 + 1 + normal + + + 1 + id + 1 + + + 1 + int(10) unsigned|0s + 1 + 1 + normal + + + 2 + bigint(20)|0s + normal + + + 3 + varchar(191)|0s + normal + + + 4 + varchar(191)|0s + normal + + + 5 + varchar(191)|0s + normal + + + 6 + varchar(191)|0s + 1 + normal + + + 7 + varchar(191)|0s + 1 + normal + + + 8 + varchar(191)|0s + normal + + + 9 + varchar(191)|0s + normal + + + 10 + varchar(10)|0s + normal + + + 11 + varchar(191)|0s + normal + + + 12 + varchar(191)|0s + normal + + + 13 + varchar(191)|0s + normal + + + 14 + varchar(191)|0s + normal + + + 15 + date|0s + normal + + + 16 + int(11)|0s + 1 + normal + + + 17 + text|0s + normal + + + 18 + timestamp|0s + normal + + + 19 + timestamp|0s + normal + + + 20 + timestamp|0s + normal + + + email + 1 + btree + + + travel_nationality_id + btree + + + 1 + id + 1 + + + email + travel_users_email_unique + + + travel_nationality_id + sterntours + travel_nationality + id + + + 1 + mediumint(8) unsigned|0s + 1 + 1 + normal + + + 2 + varbinary(16)|0s + 1 + normal + + + 3 + varchar(100)|0s + 1 + normal + + + 4 + varchar(80)|0s + 1 + normal + + + 5 + varchar(40)|0s + normal + + + 6 + varchar(100)|0s + 1 + normal + + + 7 + varchar(40)|0s + normal + + + 8 + varchar(40)|0s + normal + + + 9 + int(11) unsigned|0s + normal + + + 10 + varchar(40)|0s + normal + + + 11 + int(11) unsigned|0s + 1 + normal + + + 12 + int(11) unsigned|0s + normal + + + 13 + tinyint(1) unsigned|0s + normal + + + 14 + varchar(50)|0s + normal + + + 15 + varchar(50)|0s + normal + + + 16 + varchar(100)|0s + normal + + + 17 + varchar(255)|0s + normal + + + 18 + varchar(50)|0s + normal + + + 19 + int(5) unsigned|0s + normal + + + 20 + varchar(255)|0s + normal + + + 21 + varchar(20)|0s + normal + + + 1 + id + 1 + + + 1 + mediumint(8) unsigned|0s + 1 + 1 + normal + + + 2 + mediumint(8) unsigned|0s + 1 + normal + + + 3 + mediumint(8) unsigned|0s + 1 + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + longtext|0s + normal + + + 1 + id + 1 + +
+
\ No newline at end of file diff --git a/.idea/dataSources/518aec94-6998-4ffd-beef-24607063526e.xml b/.idea/dataSources/f7aaeef3-b8e1-45ca-9f6a-b9476048d5dd.xml similarity index 66% rename from .idea/dataSources/518aec94-6998-4ffd-beef-24607063526e.xml rename to .idea/dataSources/f7aaeef3-b8e1-45ca-9f6a-b9476048d5dd.xml index 2892545..21d7caf 100644 --- a/.idea/dataSources/518aec94-6998-4ffd-beef-24607063526e.xml +++ b/.idea/dataSources/f7aaeef3-b8e1-45ca-9f6a-b9476048d5dd.xml @@ -1,6 +1,6 @@ - + 5.6.39 InnoDB @@ -916,10 +916,42 @@ utf8_general_ci + CREATE TABLE `booking_draft_items` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `booking_id` bigint(20) NOT NULL, + `travel_program_id` int(11) NOT NULL, + `travel_class_id` int(11) DEFAULT NULL, + `draft_item_id` int(10) unsigned DEFAULT NULL, + `draft_type_id` int(11) DEFAULT NULL, + `request_date` date DEFAULT NULL, + `days_start` tinyint(3) unsigned DEFAULT NULL, + `days_duration` tinyint(3) unsigned DEFAULT NULL, + `start_date` date DEFAULT NULL, + `end_date` date DEFAULT NULL, + `service` text COLLATE utf8mb4_unicode_ci, + `price_adult` decimal(8,2) DEFAULT NULL, + `adult` tinyint(3) unsigned DEFAULT NULL, + `price_children` decimal(8,2) DEFAULT NULL, + `children` tinyint(3) unsigned DEFAULT NULL, + `pos` tinyint(3) unsigned DEFAULT NULL, + `in_pdf` tinyint(1) NOT NULL DEFAULT '1', + `status` tinyint(1) NOT NULL DEFAULT '0', + `comfort` tinyint(1) NOT NULL DEFAULT '0', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `booking_draft_items_booking_id_index` (`booking_id`), + KEY `booking_draft_items_travel_program_id_index` (`travel_program_id`), + KEY `booking_draft_items_travel_class_id_index` (`travel_class_id`), + KEY `booking_draft_items_draft_item_id_index` (`draft_item_id`), + KEY `booking_draft_items_draft_type_id_index` (`draft_type_id`), + CONSTRAINT `booking_draft_items_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `booking` (`id`), + CONSTRAINT `booking_draft_items_draft_item_id_foreign` FOREIGN KEY (`draft_item_id`) REFERENCES `draft_items` (`id`), + CONSTRAINT `booking_draft_items_draft_type_id_foreign` FOREIGN KEY (`draft_type_id`) REFERENCES `draft_types` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;utf8_general_ci
- SELECT LEFT(b.booking_date, 7) AS booking_month FROM booking b WHERE b.booking_date >= #2018-01-01# AND b.booking_date <= #2018-12-31#utf8_general_ci
@@ -928,2960 +960,3611 @@
utf8_general_ci
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- +
utf8mb4_unicode_ci
- +
utf8_general_ci
- +
utf8_general_ci
- +
utf8_general_ci
- +
utf8_general_ci
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- -
+
utf8mb4_unicode_ci
- +
utf8_general_ci
- +
utf8_general_ci
- +
+ utf8_general_ci +
+ utf8mb4_unicode_ci
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- - utf8_general_ci -
- +
utf8mb4_unicode_ci
- +
utf8mb4_unicode_ci
- +
utf8_general_ci
- + + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ +
+ utf8mb4_unicode_ci +
+ + utf8mb4_unicode_ci +
+ + utf8mb4_unicode_ci +
+ + utf8mb4_unicode_ci +
+ + utf8mb4_unicode_ci +
+ + utf8mb4_unicode_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_unicode_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8_general_ci +
+ + utf8mb4_unicode_ci +
+ + utf8mb4_unicode_ci +
+ + utf8_general_ci +
+ 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s normal - + 3 date|0s normal - + 4 date|0s normal - + 5 date|0s normal - + 6 varchar(80)|0s normal - + 7 text|0s normal - + 8 bigint(20)|0s normal - + 9 bigint(20)|0s normal - + 10 bigint(20)|0s 1 normal - + 11 tinyint(1)|0s - '0' + 0 normal - + template_id btree - + booking_id btree - + 1 id 1 - + template_id cmssso_db1 arrangement_template id cascade - + booking_id cmssso_db1 booking id cascade - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(130)|0s normal - + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(80)|0s 1 normal - + 3 bigint(20)|0s - '-19' + -19 normal - + 4 bigint(20)|0s - '4' + 4 normal - + 5 tinyint(1)|0s - '0' + 0 normal - + 6 bigint(20)|0s - '1' + 1 normal - + arrangement_type_id btree - + 1 id 1 - + arrangement_type_id cmssso_db1 arrangement_type id cascade - + 1 bigint(20)|0s 1 1 normal - + 2 date|0s normal - + 3 bigint(20)|0s 1 normal - + 4 bigint(20)|0s normal - + 5 + tinyint(1)|0s + 0 + normal + + + 6 int(11)|0s 1 normal - - 6 + + 7 bigint(20)|0s 1 normal - - 7 - decimal(10,2 digit)|0s - '0.00' - normal - - + 8 - bigint(20)|0s + decimal(10,2 digit)|0s + 0.00 normal - + 9 bigint(20)|0s normal - + 10 bigint(20)|0s normal - + 11 bigint(20)|0s normal - + 12 - datetime|0s - 1 + bigint(20)|0s normal - + 13 datetime|0s 1 normal - + 14 + datetime|0s + 1 + normal + + + 15 varchar(255)|0s normal - - 15 - date|0s - normal - - + 16 date|0s normal - + 17 + date|0s + normal + + + 18 bigint(20)|0s normal - - 18 + + 19 varchar(30)|0s normal - - 19 - varchar(80)|0s - normal - - + 20 varchar(80)|0s normal - + 21 + varchar(80)|0s + normal + + + 22 date|0s normal - - 22 + + 23 bigint(20)|0s normal - - 23 - varchar(255)|0s - normal - - + 24 varchar(255)|0s normal - + 25 varchar(255)|0s normal - + 26 + varchar(255)|0s + normal + + + 27 bigint(20)|0s normal - - 27 - decimal(10,2 digit)|0s - normal - - + 28 - decimal(10,2 digit)|0s + tinyint(1)|0s + 0 normal - + 29 decimal(10,2 digit)|0s normal - + 30 decimal(10,2 digit)|0s normal - + 31 + decimal(10,2 digit)|0s + normal + + + 32 + decimal(10,2 digit)|0s + normal + + + 33 date|0s normal - - 32 + + 34 bigint(20)|0s normal - + customer_id btree - + lead_id btree - + sf_guard_user_id btree - + branch_id btree - + travel_country_id btree - + travel_category_id btree - + coupon_id btree - + travel_company_id btree - + travelagenda_id btree - + 1 id 1 - + customer_id cmssso_db1 customer id - + lead_id cmssso_db1 lead id - + sf_guard_user_id cmssso_db1 sf_guard_user id - + branch_id cmssso_db1 branch id - + travel_country_id cmssso_db1 travel_country id - + travel_category_id cmssso_db1 travel_category id - + coupon_id cmssso_db1 coupon id - + travel_company_id cmssso_db1 travel_company id - + travelagenda_id cmssso_db1 travel_agenda id - + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s 1 normal - + 3 decimal(10,2 digit)|0s 1 - '0.00' + 0.00 normal - + 4 longblob|0s 1 normal - + 5 datetime|0s 1 normal - + 6 datetime|0s 1 normal - + booking_id btree - + 1 id 1 - + booking_id cmssso_db1 booking id cascade - + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s 1 normal - + 3 decimal(10,2 digit)|0s 1 - '0.00' + 0.00 normal - + 4 decimal(10,2 digit)|0s 1 - '0.00' + 0.00 normal - + 5 decimal(10,2 digit)|0s 1 - '0.00' + 0.00 normal - + 6 date|0s normal - + 7 date|0s 1 normal - + 8 longblob|0s 1 normal - + 9 datetime|0s 1 normal - + 10 datetime|0s 1 normal - + booking_id btree - + 1 id 1 - + booking_id cmssso_db1 booking id cascade - - 1 - bigint(20)|0s - 1 - 1 - normal - - - 2 - bigint(20)|0s - 1 - normal - - - 3 - decimal(10,2 digit)|0s - 1 - '0.00' - normal - - - 4 - decimal(10,2 digit)|0s - 1 - '0.00' - normal - - - 5 - decimal(10,2 digit)|0s - 1 - '0.00' - normal - - - 6 - date|0s - normal - - - 7 - date|0s - 1 - normal - - - 8 - longblob|0s - 1 - normal - - - 9 - datetime|0s - 1 - normal - - - 10 - datetime|0s - 1 - normal - - - booking_id - btree - - - 1 - id - 1 - - - booking_id - cmssso_db1 - booking - id - cascade - - - 1 - bigint(20)|0s - 1 - 1 - normal - - - 2 - bigint(20)|0s - 1 - normal - - - 3 - bigint(20)|0s - 1 - normal - - - 4 - decimal(10,2 digit)|0s - 1 - '0.00' - normal - - - 5 - decimal(10,2 digit)|0s - '0.00' - normal - - - 6 - decimal(10,2 digit)|0s - 1 - '0.00' - normal - - - 7 - date|0s - 1 - normal - - - 8 - datetime|0s - 1 - normal - - - 9 - datetime|0s - 1 - normal - - - 10 - varchar(255)|0s - normal - - - 11 - tinyint(1)|0s - 1 - '0' - normal - - - booking_id - btree - - - travel_company_id - btree - - - 1 - id - 1 - - - booking_id - cmssso_db1 - booking - id - - - travel_company_id - cmssso_db1 - travel_company - id - - - 1 - bigint(20)|0s - 1 - 1 - normal - - - 2 - bigint(20)|0s - 1 - normal - - - 3 - longblob|0s - 1 - normal - - - 4 - datetime|0s - 1 - normal - - - 5 - datetime|0s - 1 - normal - - - booking_id - btree - - - 1 - id - 1 - - - booking_id - cmssso_db1 - booking - id - cascade - - - 1 - bigint(20)|0s - 1 - 1 - normal - - - 2 - varchar(255)|0s - 1 - normal - - - 1 - id - 1 - - + 1 int(10) unsigned|0s 1 1 normal - + 2 - char(2)|0s + bigint(20)|0s 1 normal - + 3 - varchar(6)|0s - 1 + int(11)|0s normal - + 4 - varchar(100)|0s - 1 + int(11)|0s normal - + 5 - varchar(100)|0s - 1 + int(11)|0s normal - + 6 - varchar(100)|0s - 1 + int(10) unsigned|0s normal - + 7 - varchar(100)|0s - 1 + int(11)|0s normal - + 8 - varchar(100)|0s - 1 + date|0s normal - + 9 - varchar(100)|0s - 1 + tinyint(3) unsigned|0s normal - - code + + 10 + tinyint(3) unsigned|0s + normal + + + 11 + date|0s + normal + + + 12 + date|0s + normal + + + 13 + text|0s + normal + + + 14 + decimal(8,2 digit)|0s + normal + + + 15 + tinyint(3) unsigned|0s + normal + + + 16 + decimal(8,2 digit)|0s + normal + + + 17 + tinyint(3) unsigned|0s + normal + + + 18 + decimal(8,2 digit)|0s + normal + + + 19 + tinyint(3) unsigned|0s + normal + + + 20 + tinyint(1)|0s + 1 + 1 + normal + + + 21 + tinyint(1)|0s + 1 + 0 + normal + + + 22 + tinyint(1)|0s + 1 + 0 + normal + + + 23 + timestamp|0s + normal + + + 24 + timestamp|0s + normal + + + booking_id btree - - en + + travel_program_id btree - - de + + fewo_lodging_id btree - + + travel_class_id + btree + + + draft_item_id + btree + + + draft_type_id + btree + + 1 id 1 - + + booking_id + cmssso_db1 + booking + id + cascade + + + draft_type_id + cmssso_db1 + draft_types + id + + 1 bigint(20)|0s 1 1 normal - + 2 - varchar(30)|0s + bigint(20)|0s + 1 normal - + 3 - bigint(20)|0s + decimal(10,2 digit)|0s 1 + 0.00 normal - + 4 - bigint(20)|0s + decimal(10,2 digit)|0s 1 + 0.00 normal - + 5 decimal(10,2 digit)|0s 1 - '0.00' + 0.00 normal - + 6 date|0s - 1 normal - + 7 date|0s 1 normal - + 8 - tinyint(1)|0s + longblob|0s 1 - '0' normal - + 9 - date|0s + datetime|0s + 1 normal - + 10 datetime|0s 1 normal - - 11 - datetime|0s - 1 - normal - - - customer_id - btree - - + booking_id btree - + 1 id 1 - - customer_id + + booking_id cmssso_db1 - customer + booking id + cascade - + + 1 + bigint(20)|0s + 1 + 1 + normal + + + 2 + bigint(20)|0s + 1 + normal + + + 3 + bigint(20)|0s + 1 + normal + + + 4 + decimal(10,2 digit)|0s + 1 + 0.00 + normal + + + 5 + decimal(10,2 digit)|0s + 0.00 + normal + + + 6 + decimal(10,2 digit)|0s + 1 + 0.00 + normal + + + 7 + date|0s + 1 + normal + + + 8 + datetime|0s + 1 + normal + + + 9 + datetime|0s + 1 + normal + + + 10 + varchar(255)|0s + normal + + + 11 + tinyint(1)|0s + 1 + 0 + normal + + + booking_id + btree + + + travel_company_id + btree + + + 1 + id + 1 + + booking_id cmssso_db1 booking id - + + travel_company_id + cmssso_db1 + travel_company + id + + 1 bigint(20)|0s 1 1 normal - + + 2 + bigint(20)|0s + 1 + normal + + + 3 + longblob|0s + 1 + normal + + + 4 + datetime|0s + 1 + normal + + + 5 + datetime|0s + 1 + normal + + + booking_id + btree + + + 1 + id + 1 + + + booking_id + cmssso_db1 + booking + id + cascade + + + 1 + bigint(20)|0s + 1 + 1 + normal + + 2 varchar(255)|0s 1 normal - + 1 id 1 - + + 1 + int(10) unsigned|0s + 1 + 1 + normal + + + 2 + char(2)|0s + 1 + normal + + + 3 + varchar(6)|0s + 1 + normal + + + 4 + varchar(100)|0s + 1 + normal + + + 5 + varchar(100)|0s + 1 + normal + + + 6 + varchar(100)|0s + 1 + normal + + + 7 + varchar(100)|0s + 1 + normal + + + 8 + varchar(100)|0s + 1 + normal + + + 9 + varchar(100)|0s + 1 + normal + + + code + btree + + + en + btree + + + de + btree + + + 1 + id + 1 + + 1 bigint(20)|0s 1 1 normal - + + 2 + varchar(30)|0s + normal + + + 3 + bigint(20)|0s + 1 + normal + + + 4 + bigint(20)|0s + 1 + normal + + + 5 + decimal(10,2 digit)|0s + 1 + 0.00 + normal + + + 6 + date|0s + 1 + normal + + + 7 + date|0s + 1 + normal + + + 8 + tinyint(1)|0s + 1 + 0 + normal + + + 9 + date|0s + normal + + + 10 + datetime|0s + 1 + normal + + + 11 + datetime|0s + 1 + normal + + + customer_id + btree + + + booking_id + btree + + + 1 + id + 1 + + + customer_id + cmssso_db1 + customer + id + + + booking_id + cmssso_db1 + booking + id + + + 1 + bigint(20)|0s + 1 + 1 + normal + + + 2 + varchar(255)|0s + 1 + normal + + + 1 + id + 1 + + + 1 + bigint(20)|0s + 1 + 1 + normal + + 2 bigint(20)|0s normal - + 3 varchar(80)|0s normal - + 4 varchar(80)|0s 1 normal - + 5 varchar(80)|0s normal - + 6 date|0s normal - + 7 varchar(80)|0s normal - + 8 varchar(80)|0s normal - + 9 varchar(80)|0s normal - + 10 varchar(80)|0s normal - + 11 varchar(80)|0s normal - + 12 varchar(80)|0s normal - + 13 varchar(80)|0s normal - + 14 varchar(80)|0s normal - + 15 varchar(80)|0s normal - + 16 varchar(80)|0s normal - + 17 varchar(80)|0s normal - + 18 varchar(80)|0s normal - + 19 bigint(20)|0s normal - + 20 varchar(80)|0s normal - + 21 date|0s normal - + 22 text|0s normal - + 23 text|0s normal - + 24 datetime|0s 1 normal - + 25 datetime|0s 1 normal - + 26 bigint(20)|0s normal - + salutation_id btree - + credit_card_type_id btree - + country_id btree - + 1 id 1 - + salutation_id cmssso_db1 salutation id - + credit_card_type_id cmssso_db1 credit_card_type id - + country_id cmssso_db1 travel_country id - + + 1 + int(10) unsigned|0s + 1 + 1 + normal + + + 2 + int(10)|0s + 1 + normal + + + 3 + int(10)|0s + normal + + + 4 + tinyint(3) unsigned|0s + normal + + + 5 + tinyint(3) unsigned|0s + normal + + + 6 + text|0s + normal + + + 7 + decimal(8,2 digit)|0s + normal + + + 8 + tinyint(3) unsigned|0s + normal + + + 9 + decimal(8,2 digit)|0s + normal + + + 10 + tinyint(3) unsigned|0s + normal + + + 11 + decimal(8,2 digit)|0s + normal + + + 12 + tinyint(3) unsigned|0s + normal + + + 13 + tinyint(1)|0s + 1 + 1 + normal + + + 14 + tinyint(1)|0s + 1 + 1 + normal + + + 15 + timestamp|0s + normal + + + 16 + timestamp|0s + normal + + + draft_id + btree + + + draft_type_id + btree + + + 1 + id + 1 + + + draft_id + cmssso_db1 + drafts + id + + + draft_type_id + cmssso_db1 + draft_types + id + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(191)|0s + 1 + normal + + + 3 + varchar(10)|0s + normal + + + 4 + tinyint(1)|0s + 1 + 1 + normal + + + 5 + timestamp|0s + normal + + + 6 + timestamp|0s + normal + + + 1 + id + 1 + + + 1 + int(10)|0s + 1 + 1 + normal + + + 2 + varchar(191)|0s + 1 + normal + + + 3 + tinyint(1)|0s + 1 + 1 + normal + + + 4 + timestamp|0s + normal + + + 5 + timestamp|0s + normal + + + 1 + id + 1 + + 1 bigint(20)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s normal - + 3 bigint(20)|0s normal - + 4 tinyint(1)|0s - '0' + 0 normal - + 5 date|0s normal - + 6 date|0s normal - + 7 bigint(20)|0s normal - + 8 varchar(80)|0s normal - + 9 text|0s normal - + 10 bigint(20)|0s normal - + lead_id btree - + template_id btree - + type_id btree - + 1 id 1 - + lead_id cmssso_db1 lead id cascade - + template_id cmssso_db1 inquiry_template id cascade - + type_id cmssso_db1 inquiry_type id - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(130)|0s normal - + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(80)|0s 1 normal - + 3 bigint(20)|0s normal - + arrangement_type_id btree - + 1 id 1 - + arrangement_type_id cmssso_db1 arrangement_type id - + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s 1 normal - + 3 bigint(20)|0s 1 normal - + 4 varchar(255)|0s 1 normal - + 5 longblob|0s 1 normal - + 6 datetime|0s 1 normal - + 7 datetime|0s 1 normal - + 8 text|0s normal - + booking_id btree - + 1 id 1 - + booking_id cmssso_db1 booking id cascade - + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s 1 normal - + 3 date|0s 1 normal - + 4 date|0s normal - + 5 date|0s normal - + 6 bigint(20)|0s normal - + 7 bigint(20)|0s normal - + 8 bigint(20)|0s normal - + 9 text|0s normal - + 10 int(11)|0s 1 normal - + 11 tinyint(1)|0s - '0' + 0 normal - + 12 bigint(20)|0s normal - + 13 bigint(20)|0s normal - + 14 varchar(80)|0s normal - + 15 bigint(20)|0s 1 normal - + 16 date|0s normal - + 17 bigint(20)|0s normal - + 18 bigint(20)|0s normal - + 19 datetime|0s 1 normal - + 20 datetime|0s 1 normal - + 21 decimal(10,2 digit)|0s normal - + 22 bigint(20)|0s normal - + 23 varchar(80)|0s normal - + 24 varchar(80)|0s normal - + 25 date|0s normal - + 26 bigint(20)|0s normal - + customer_id btree - + travelcountry_id btree - + travelagenda_id btree - + sf_guard_user_id btree - + initialcontacttype_id btree - + searchengine_id btree - + status_id btree - + website_id btree - + travelcategory_id btree - + participant_salutation_id btree - + 1 id 1 - + customer_id cmssso_db1 customer id - + travelcountry_id cmssso_db1 travel_country id - + travelagenda_id cmssso_db1 travel_agenda id - + sf_guard_user_id cmssso_db1 sf_guard_user id - + initialcontacttype_id cmssso_db1 initial_contact_type id - + searchengine_id cmssso_db1 searchengine id - + status_id cmssso_db1 status id - + website_id cmssso_db1 website id - + travelcategory_id cmssso_db1 travel_category id - + participant_salutation_id cmssso_db1 salutation id - + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s normal - + 3 varchar(80)|0s normal - + 4 varchar(80)|0s normal - + 5 date|0s normal - + 6 bigint(20)|0s normal - + lead_id btree - + participant_salutation_id btree - + 1 id 1 - + lead_id cmssso_db1 lead id cascade - + participant_salutation_id cmssso_db1 salutation id - + 1 int(11)|0s 1 - '0' + 0 normal - + 2 int(11)|0s 1 - '0' + 0 normal - + system_message_id btree - + 1 sf_guard_user_id system_message_id 1 - + sf_guard_user_id cmssso_db1 sf_guard_user id cascade - + system_message_id cmssso_db1 system_message id cascade - + 1 int(11)|0s normal - + 1 int(10) unsigned|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 3 int(11)|0s 1 normal - + 1 id 1 - + + 1 + varchar(100)|0s + 1 + normal + + + 2 + int(11)|0s + normal + + + 3 + int(11)|0s + 1 + normal + + + 4 + varchar(191)|0s + normal + + + 5 + text|0s + normal + + + 6 + tinyint(1)|0s + 1 + normal + + + 7 + timestamp|0s + normal + + + 8 + timestamp|0s + normal + + + 9 + datetime|0s + normal + + + user_id + btree + + + 1 + id + 1 + + + 1 + varchar(100)|0s + 1 + normal + + + 2 + int(11)|0s + 1 + normal + + + 3 + int(11)|0s + 1 + normal + + + 4 + text|0s + normal + + + 5 + tinyint(1)|0s + 1 + normal + + + 6 + datetime|0s + normal + + + 1 + id + 1 + + + 1 + int(10) unsigned|0s + 1 + 1 + normal + + + 2 + int(11)|0s + normal + + + 3 + varchar(191)|0s + 1 + normal + + + 4 + varchar(100)|0s + 1 + normal + + + 5 + text|0s + 1 + normal + + + 6 + tinyint(1)|0s + 1 + normal + + + 7 + tinyint(1)|0s + 1 + normal + + + 8 + tinyint(1)|0s + 1 + normal + + + 9 + timestamp|0s + normal + + + 10 + timestamp|0s + normal + + + user_id + btree + + + 1 + id + 1 + + + 1 + int(10) unsigned|0s + 1 + 1 + normal + + + 2 + int(11)|0s + 1 + normal + + + 3 + timestamp|0s + normal + + + 4 + timestamp|0s + normal + + + client_id + btree + + + 1 + id + 1 + + + 1 + varchar(100)|0s + 1 + normal + + + 2 + varchar(100)|0s + 1 + normal + + + 3 + tinyint(1)|0s + 1 + normal + + + 4 + datetime|0s + normal + + + access_token_id + btree + + + 1 + id + 1 + + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s 1 normal - + 3 decimal(10,2 digit)|0s 1 - '0.00' + 0.00 normal - + 4 longblob|0s 1 normal - + 5 datetime|0s 1 normal - + 6 datetime|0s 1 normal - + lead_id btree - + 1 id 1 - + lead_id cmssso_db1 lead id cascade - + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s normal - + 3 varchar(80)|0s normal - + 4 varchar(80)|0s normal - + 5 date|0s normal - + 6 bigint(20)|0s normal - + 7 tinyint(1)|0s - '0' + 0 normal - + booking_id btree - + participant_salutation_id btree - + 1 id 1 - + booking_id cmssso_db1 booking id cascade - + participant_salutation_id cmssso_db1 salutation id - + 1 - varchar(191)|0s + varchar(255)|0s 1 normal - + 2 - varchar(191)|0s + varchar(255)|0s 1 normal - + 3 timestamp|0s normal - + email btree - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 3 tinyint(1) unsigned|0s - '0' + 0 normal - + 4 varchar(255)|0s normal - + type btree - + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s 1 normal - + 3 bigint(20)|0s 1 normal - + 4 decimal(10,2 digit)|0s 1 normal - + 5 decimal(10,2 digit)|0s - '0.00' + 0.00 normal - + 6 decimal(6,4 digit)|0s - '1.0000' + 1.0000 normal - + 7 date|0s normal - + 8 varchar(255)|0s normal - + 9 tinyint(1)|0s - '0' + 0 normal - + 10 datetime|0s 1 normal - + 11 datetime|0s 1 normal - + 12 varchar(255)|0s normal - + booking_id btree - + service_provider_id btree - + type btree - + 1 id 1 - + booking_id cmssso_db1 booking id cascade - + service_provider_id cmssso_db1 service_provider id - + 1 int(11)|0s 1 1 normal - + 2 varchar(255)|0s normal - + 3 text|0s normal - + 4 datetime|0s 1 normal - + 5 datetime|0s 1 normal - + name 1 btree - + 1 id 1 - + name name - + 1 int(11)|0s 1 - '0' + 0 normal - + 2 int(11)|0s 1 - '0' + 0 normal - + 3 datetime|0s 1 normal - + 4 datetime|0s 1 normal - + permission_id btree - + 1 group_id permission_id 1 - + group_id cmssso_db1 sf_guard_group id cascade - + permission_id cmssso_db1 sf_guard_permission id cascade - + 1 int(11)|0s 1 1 normal - + 2 varchar(255)|0s normal - + 3 text|0s normal - + 4 datetime|0s 1 normal - + 5 datetime|0s 1 normal - + name 1 btree - + 1 id 1 - + name name - + 1 int(11)|0s 1 1 normal - + 2 int(11)|0s normal - + 3 varchar(32)|0s normal - + 4 varchar(50)|0s 1 '' normal - + 5 datetime|0s 1 normal - + 6 datetime|0s 1 normal - + user_id btree - + 1 id ip_address 1 - + user_id cmssso_db1 sf_guard_user id cascade - + 1 int(11)|0s 1 1 normal - + 2 + int(10) unsigned|0s + normal + + + 3 varchar(128)|0s 1 normal - - 3 + + 4 varchar(128)|0s 1 'sha1' normal - - 4 - varchar(128)|0s - normal - - + 5 varchar(128)|0s normal - + 6 - tinyint(1)|0s - '1' + varchar(128)|0s normal - + 7 tinyint(1)|0s - '0' + 1 normal - + 8 + tinyint(1)|0s + 0 + normal + + + 9 datetime|0s normal - - 9 - varchar(255)|0s - normal - - + 10 varchar(255)|0s normal - + 11 varchar(255)|0s normal - + 12 varchar(255)|0s normal - + 13 + varchar(255)|0s + normal + + + 14 bigint(20)|0s normal - - 14 - varchar(128)|0s - normal - - + 15 varchar(128)|0s normal - + 16 - datetime|0s - 1 + varchar(128)|0s normal - + 17 + varchar(128)|0s + normal + + + 18 + datetime|0s + normal + + + 19 datetime|0s 1 normal - + + 20 + datetime|0s + 1 + normal + + username 1 btree - + is_active btree - + branch_id btree - + 1 id 1 - + username username - + branch_id cmssso_db1 branch id - + 1 int(11)|0s 1 - '0' + 0 normal - + 2 int(11)|0s 1 - '0' + 0 normal - + 3 datetime|0s 1 normal - + 4 datetime|0s 1 normal - + group_id btree - + 1 user_id group_id 1 - + user_id cmssso_db1 sf_guard_user id cascade - + group_id cmssso_db1 sf_guard_group id cascade - + 1 int(11)|0s 1 - '0' + 0 normal - + 2 int(11)|0s 1 - '0' + 0 normal - + 3 datetime|0s 1 normal - + 4 datetime|0s 1 normal - + permission_id btree - + 1 user_id permission_id 1 - + user_id cmssso_db1 sf_guard_user id cascade - + permission_id cmssso_db1 sf_guard_permission id cascade - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 3 bigint(20)|0s 1 normal - + 4 varchar(6)|0s normal - + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s 1 normal - + 3 bigint(20)|0s 1 normal - + 4 int(11)|0s 1 normal - + 5 date|0s 1 normal - + 6 text|0s normal - + 7 date|0s 1 normal - + 8 datetime|0s 1 normal - + status_id btree - + lead_id btree - + sf_guard_user_id btree - + 1 id 1 - + status_id cmssso_db1 status id - + lead_id cmssso_db1 lead id - + sf_guard_user_id cmssso_db1 sf_guard_user id - + 1 int(11)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 3 text|0s 1 normal - + 4 datetime|0s 1 normal - + 5 datetime|0s 1 normal - + 6 bigint(20)|0s 1 normal - + 7 tinyint(1)|0s - '1' + 1 normal - + 8 tinyint(1)|0s - '1' + 1 normal - + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 3 bigint(20)|0s normal - + + 4 + tinyint(1)|0s + 1 + normal + + travelcountry_id btree - + 1 id 1 - + travelcountry_id cmssso_db1 travel_country id - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 3 decimal(6,2 digit)|0s normal - + 4 tinyint(1)|0s - '0' + 0 normal - + 5 tinyint(1)|0s - '0' + 0 normal - + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 3 tinyint(1)|0s - '0' + 0 normal - + + 4 + tinyint(1)|0s + 0 + normal + + 1 id 1 - + 1 bigint(20)|0s 1 1 normal - + 2 bigint(20)|0s 1 normal - + 3 varchar(10)|0s 1 normal - + 4 varchar(255)|0s 1 normal - + 5 varchar(255)|0s 1 normal - + 6 varchar(255)|0s 1 normal - + 7 decimal(10,2 digit)|0s 1 normal - + 8 text|0s normal - + 9 datetime|0s 1 normal - + 10 datetime|0s 1 normal - + booking_id btree - + booking_id btree - + 1 id 1 - + booking_id cmssso_db1 booking id cascade - + 1 int(10) unsigned|0s 1 normal - + 2 varchar(191)|0s 1 normal - + 3 varchar(191)|0s 1 normal - + 4 timestamp|0s 1 @@ -3889,156 +4572,156 @@ permission_id normal CURRENT_TIMESTAMP - + email 1 btree - + token btree - + email user_update_emails_email_unique - + 1 int(10) unsigned|0s 1 1 normal - + 2 varchar(191)|0s 1 normal - + 3 varchar(191)|0s 1 normal - + 4 varchar(191)|0s 1 normal - + 5 varchar(100)|0s normal - + 6 tinyint(1) unsigned|0s - '0' + 0 normal - + 7 varchar(30)|0s normal - + 8 timestamp|0s normal - + 9 datetime|0s normal - + 10 tinyint(1) unsigned|0s - '0' + 0 normal - + 11 tinyint(1) unsigned|0s - '0' + 0 normal - + 12 timestamp|0s normal - + 13 timestamp|0s normal - + 14 tinyint(1) unsigned|0s - '0' + 0 normal - + 15 varchar(128)|0s normal - + 16 char(2)|0s normal - + 17 timestamp|0s normal - + 18 timestamp|0s normal - + 19 timestamp|0s normal - + 20 timestamp|0s normal - + email 1 btree - + 1 id 1 - + email users_email_unique - + 1 bigint(20)|0s 1 1 normal - + 2 varchar(255)|0s 1 normal - + 1 id 1 diff --git a/.idea/mein.sterntours.iml b/.idea/mein.sterntours.iml index 6cd43cd..75ba92f 100644 --- a/.idea/mein.sterntours.iml +++ b/.idea/mein.sterntours.iml @@ -16,6 +16,7 @@ + diff --git a/.idea/php.xml b/.idea/php.xml index 6416d04..dbdcf2e 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -108,6 +108,7 @@ + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3197cb1..f29e8ef 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,68 +2,43 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + - - + - - - - + + + - - - - - + @@ -88,64 +63,60 @@ $PROJECT_DIR$/composer.json composer + + + + + + + + + + + + + + + @include('travel.user.booking.form') + +
+   + {{ __('back') }} +
+ + {!! Form::close() !!} + +@endsection + + + + + + diff --git a/resources/views/travel/user/booking/form.blade.php b/resources/views/travel/user/booking/form.blade.php new file mode 100755 index 0000000..4a3c52d --- /dev/null +++ b/resources/views/travel/user/booking/form.blade.php @@ -0,0 +1,144 @@ + +
+
+ +
+
+ + +
+
+ + +
+
+ +
+ +
+
+ + {{ Form::text('invoice_number', $travel_user_booking_fewo->invoice_number, array('placeholder'=>__('Rechnungsnummer'), 'class'=>'form-control')) }} +
+
+ + {{ Form::text('booking_date', $travel_user_booking_fewo->booking_date, array('placeholder'=>__('Buchungsdatum'), 'class'=>'form-control datepicker-base', 'required'=>true)) }} +
+
+ +
+ +
+ +
+ + {{ Form::text('adults', $travel_user_booking_fewo->adults, array('placeholder'=>__('Erwachsene'), 'class'=>'form-control')) }} +
+
+ + {{ Form::text('children', $travel_user_booking_fewo->children, array('placeholder'=>__('Kinder'), 'class'=>'form-control')) }} +
+
+ + {{ Form::text('persons', $travel_user_booking_fewo->persons, array('placeholder'=>__('Personen'), 'class'=>'form-control', 'readonly')) }} +
+
+
+ +
+
+ + {{ Form::text('from_date', $travel_user_booking_fewo->from_date, array('placeholder'=>__('Datum von'), 'class'=>'form-control datepicker-base', 'required'=>true)) }} +
+
+ + {{ Form::text('to_date', $travel_user_booking_fewo->to_date, array('placeholder'=>__('Datum bis'), 'class'=>'form-control datepicker-base', 'required'=>true)) }} +
+
+ Änderungen werden nicht bei den Reservierungen geändert! +
+
+ +
+
+
+ + {{ Form::text('price_travel', $travel_user_booking_fewo->price_travel, array('placeholder'=>__('Preis Übernachtungen'), 'class'=>'form-control')) }} +
+
+ + {{ Form::text('price_service', $travel_user_booking_fewo->price_service, array('placeholder'=>__('Preis Service-Gebühr'), 'class'=>'form-control')) }} +
+
+ + {{ Form::text('price_deposit', $travel_user_booking_fewo->price_deposit, array('placeholder'=>__('Preis Kaution'), 'class'=>'form-control')) }} +
+ +
+ + {{ Form::text('price_total', $travel_user_booking_fewo->price_total, array('placeholder'=>__('Preis Gesamt'), 'class'=>'form-control', 'readonly')) }} +
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+ + +
+
+ + +
+
+
+ + {{ Form::textarea('status_text', $travel_user_booking_fewo->status_text, ['class' => 'form-control', 'rows'=>4]) }} +
+
+
+ + +
+
+ + {{ Form::textarea('notice', $travel_user_booking_fewo->notice, ['class' => 'form-control', 'rows'=>4]) }} +
+
+ + + +
+
\ No newline at end of file diff --git a/resources/views/travel/user/booking/index.blade.php b/resources/views/travel/user/booking/index.blade.php new file mode 100755 index 0000000..93d7c7b --- /dev/null +++ b/resources/views/travel/user/booking/index.blade.php @@ -0,0 +1,97 @@ +@extends('layouts.layout-2') + +@section('content') +

+ {{ __('Buchungen') }} FeWo +

+ +
+
+ + + + + + + + + + + + + + + + +
 {{__('ID')}}{{__('FeWo')}}{{__('Kunde')}}{{__('vom')}}{{__('bis')}}{{__('Eingetragen')}}{{__('Status')}}{{__('Datum')}}{{__('delete')}}
+ +
+
+ + + + + +@endsection \ No newline at end of file diff --git a/resources/views/travel/user/detail.blade.php b/resources/views/travel/user/detail.blade.php new file mode 100755 index 0000000..20fd059 --- /dev/null +++ b/resources/views/travel/user/detail.blade.php @@ -0,0 +1,41 @@ +@extends('layouts.layout-2') + +@section('content') + + @if ($errors->any()) +
+
+
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+
+
+ @endif + +

+ Kunden @if($id == "new") anlegen @else {{"(ID: ".$id.")"}} verwalten @endif +

+ + {!! Form::open(['url' => route('travel_user_detail', [$id]), 'class' => 'form-horizontal']) !!} + + + @include('travel.user.form') + +
+   + {{ __('back') }} +
+ + {!! Form::close() !!} + +@endsection + + + + + + diff --git a/resources/views/travel/user/form.blade.php b/resources/views/travel/user/form.blade.php new file mode 100755 index 0000000..f7111c1 --- /dev/null +++ b/resources/views/travel/user/form.blade.php @@ -0,0 +1,109 @@ + +
+
+ +
+
+ + +
+
+ + {{ Form::text('title', $travel_user->title, array('placeholder'=>__('Title'), 'class'=>'form-control')) }} + +
+
+ +
+
+ + {{ Form::text('first_name', $travel_user->first_name, array('placeholder'=>__('First name'), 'class'=>'form-control', 'required'=>true)) }} + +
+
+ + {{ Form::text('last_name', $travel_user->last_name, array('placeholder'=>__('Last Name'), 'class'=>'form-control', 'required'=>true)) }} + +
+
+ +
+ + {{ Form::text('company', $travel_user->company, array('placeholder'=>__('Firma'), 'class'=>'form-control')) }} +
+
+ + +
+ + {{ Form::text('street', $travel_user->street, array('placeholder'=>__('Street'), 'class'=>'form-control')) }} +
+ +
+
+ + {{ Form::text('zipcode', $travel_user->zipcode, array('placeholder'=>__('Postcode'), 'class'=>'form-control')) }} + +
+
+ + {{ Form::text('city', $travel_user->city, array('placeholder'=>__('City'), 'class'=>'form-control')) }} + +
+
+ + + @if ($errors->has('travel_nationality_id')) + + {{ $errors->first('travel_nationality_id') }} + + @endif + +
+
+ +
+ + + + +
+
+ + {{ Form::text('phone', $travel_user->phone, array('placeholder'=>__('Phone'), 'class'=>'form-control')) }} +
+
+ + {{ Form::text('mobil', $travel_user->mobil, array('placeholder'=>__('Mobile Phone'), 'class'=>'form-control')) }} +
+ +
+ + {{ Form::text('birthday', $travel_user->birthday, array('placeholder'=>Util::formatDate(), 'data-date-format'=>Util::formatDate(), 'data-start_view'=>2, 'class'=>'form-control datepicker-birthday')) }} +
+ +
+ + {{ Form::text('fax', $travel_user->fax, array('placeholder'=>__('Fax'), 'class'=>'form-control')) }} +
+
+ +
+
+
+ + {{ Form::text('email', $travel_user->email, array('placeholder'=>'E-Mail', 'class'=>'form-control', 'required'=>true)) }} +
+
+ + + + + + +
+
\ No newline at end of file diff --git a/resources/views/travel/user/index.blade.php b/resources/views/travel/user/index.blade.php new file mode 100755 index 0000000..7b4d01d --- /dev/null +++ b/resources/views/travel/user/index.blade.php @@ -0,0 +1,58 @@ +@extends('layouts.layout-2') + +@section('content') +

+ {{ __('Kunden') }} (FeWo) +

+ +
+
+ + + + + + + + + + + + +
 {{__('ID')}}{{__('Vorname')}}{{__('Nachname')}}{{__('E-Mail')}}{{__('delete')}}
+ +
+
+ + + + + +@endsection \ No newline at end of file diff --git a/routes/api.php b/routes/api.php index a3e6865..2a73fcc 100755 --- a/routes/api.php +++ b/routes/api.php @@ -18,5 +18,7 @@ Route::group(['middleware' => 'auth:api'], function(){ Route::post('details', 'API\UserController@details'); Route::post('draft/{action}', 'API\DraftController@draft'); Route::post('load/{action}', 'API\LoaderController@load'); + Route::post('fewo/{action}', 'API\FewoController@action'); + }); \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index e55ac73..63a15a8 100755 --- a/routes/web.php +++ b/routes/web.php @@ -147,12 +147,25 @@ Route::group(['middleware' => ['admin']], function() Route::get('/requests/{step?}', 'RequestController@index')->name('requests'); Route::get('/lead/detail/{id}', 'LeadController@detail')->name('lead_detail'); - Route::get('data/table/requests', 'DataTableController@getRequests')->name('data_table_requests'); - //CMS + //travel_users + Route::get('/travel_users', 'TravelUserController@index')->name('travel_users'); + Route::get('/data/table/travel_users', 'TravelUserController@getTravelUsers')->name('data_table_travel_users'); + Route::get('/travel_user/detail/{id}', 'TravelUserController@detail')->name('travel_user_detail'); + Route::post('/travel_user/detail/{id}', 'TravelUserController@store')->name('travel_user_detail'); + Route::get('/travel_user/delete/{id}', 'TravelUserController@delete')->name('travel_user_delete'); + + //travel_user_booking_fewo + Route::get('/travel_user_booking_fewos', 'TravelUserBookingFewoController@index')->name('travel_user_booking_fewos'); + Route::get('/data/table/travel_user_booking_fewos', 'TravelUserBookingFewoController@getTravelUserBookingFewos')->name('data_table_travel_user_booking_fewos'); + Route::get('/travel_user_booking_fewo/detail/{id}', 'TravelUserBookingFewoController@detail')->name('travel_user_booking_fewo_detail'); + Route::post('/travel_user_booking_fewo/detail/{id}', 'TravelUserBookingFewoController@store')->name('travel_user_booking_fewo_detail'); + Route::get('/travel_user_booking_fewo/delete/{id}', 'TravelUserBookingFewoController@delete')->name('travel_user_booking_fewo_delete'); + + //CMS //feedback Route::get('/cms/feedback', 'CMS\CMSFeedbackController@index')->name('cms_feedback'); Route::get('/cms/feedback/detail/{id}', 'CMS\CMSFeedbackController@detail')->name('cms_feedback_detail');