-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelevant_tables.sql
More file actions
152 lines (144 loc) · 6.03 KB
/
relevant_tables.sql
File metadata and controls
152 lines (144 loc) · 6.03 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
-- Create syntax for TABLE 'expedia-all-bookings-2013'
CREATE TABLE `expedia-all-bookings-2013` (
`date_time` varchar(255) DEFAULT NULL,
`site_name` int(11) DEFAULT NULL,
`posa_continent` int(11) DEFAULT NULL,
`user_location_country` int(11) DEFAULT NULL,
`user_location_region` int(11) DEFAULT NULL,
`user_location_city` int(11) DEFAULT NULL,
`orig_destination_distance` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`is_mobile` int(11) DEFAULT NULL,
`is_package` int(11) DEFAULT NULL,
`channel` int(11) DEFAULT NULL,
`srch_ci` varchar(255) DEFAULT NULL,
`srch_co` varchar(255) DEFAULT NULL,
`srch_adults_cnt` int(11) DEFAULT NULL,
`srch_children_cnt` int(11) DEFAULT NULL,
`srch_rm_cnt` int(11) DEFAULT NULL,
`srch_destination_id` int(11) DEFAULT NULL,
`srch_destination_type_id` int(11) DEFAULT NULL,
`is_booking` int(11) DEFAULT NULL,
`cnt` int(11) DEFAULT NULL,
`hotel_continent` int(11) DEFAULT NULL,
`hotel_country` int(11) DEFAULT NULL,
`hotel_market` int(11) DEFAULT NULL,
`hotel_cluster` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'expedia-all-bookings-2013-reduced'
CREATE TABLE `expedia-all-bookings-2013-reduced` (
`date_time` varchar(255) DEFAULT NULL,
`site_name` int(11) DEFAULT NULL,
`posa_continent` int(11) DEFAULT NULL,
`user_location_country` int(11) DEFAULT NULL,
`user_location_region` int(11) DEFAULT NULL,
`user_location_city` int(11) DEFAULT NULL,
`orig_destination_distance` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`is_mobile` int(11) DEFAULT NULL,
`is_package` int(11) DEFAULT NULL,
`channel` int(11) DEFAULT NULL,
`srch_ci` varchar(255) DEFAULT NULL,
`srch_co` varchar(255) DEFAULT NULL,
`srch_adults_cnt` int(11) DEFAULT NULL,
`srch_children_cnt` int(11) DEFAULT NULL,
`srch_rm_cnt` int(11) DEFAULT NULL,
`srch_destination_id` int(11) DEFAULT NULL,
`srch_destination_type_id` int(11) DEFAULT NULL,
`is_booking` int(11) DEFAULT NULL,
`cnt` int(11) DEFAULT NULL,
`hotel_continent` int(11) DEFAULT NULL,
`hotel_country` int(11) DEFAULT NULL,
`hotel_market` int(11) DEFAULT NULL,
`hotel_cluster` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'expedia-all-bookings-2014'
CREATE TABLE `expedia-all-bookings-2014` (
`date_time` varchar(255) DEFAULT NULL,
`site_name` int(11) DEFAULT NULL,
`posa_continent` int(11) DEFAULT NULL,
`user_location_country` int(11) DEFAULT NULL,
`user_location_region` int(11) DEFAULT NULL,
`user_location_city` int(11) DEFAULT NULL,
`orig_destination_distance` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`is_mobile` int(11) DEFAULT NULL,
`is_package` int(11) DEFAULT NULL,
`channel` int(11) DEFAULT NULL,
`srch_ci` varchar(255) DEFAULT NULL,
`srch_co` varchar(255) DEFAULT NULL,
`srch_adults_cnt` int(11) DEFAULT NULL,
`srch_children_cnt` int(11) DEFAULT NULL,
`srch_rm_cnt` int(11) DEFAULT NULL,
`srch_destination_id` int(11) DEFAULT NULL,
`srch_destination_type_id` int(11) DEFAULT NULL,
`is_booking` int(11) DEFAULT NULL,
`cnt` int(11) DEFAULT NULL,
`hotel_continent` int(11) DEFAULT NULL,
`hotel_country` int(11) DEFAULT NULL,
`hotel_market` int(11) DEFAULT NULL,
`hotel_cluster` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'expedia-all-bookings-2014-reduced'
CREATE TABLE `expedia-all-bookings-2014-reduced` (
`date_time` varchar(255) DEFAULT NULL,
`site_name` int(11) DEFAULT NULL,
`posa_continent` int(11) DEFAULT NULL,
`user_location_country` int(11) DEFAULT NULL,
`user_location_region` int(11) DEFAULT NULL,
`user_location_city` int(11) DEFAULT NULL,
`orig_destination_distance` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`is_mobile` int(11) DEFAULT NULL,
`is_package` int(11) DEFAULT NULL,
`channel` int(11) DEFAULT NULL,
`srch_ci` varchar(255) DEFAULT NULL,
`srch_co` varchar(255) DEFAULT NULL,
`srch_adults_cnt` int(11) DEFAULT NULL,
`srch_children_cnt` int(11) DEFAULT NULL,
`srch_rm_cnt` int(11) DEFAULT NULL,
`srch_destination_id` int(11) DEFAULT NULL,
`srch_destination_type_id` int(11) DEFAULT NULL,
`is_booking` int(11) DEFAULT NULL,
`cnt` int(11) DEFAULT NULL,
`hotel_continent` int(11) DEFAULT NULL,
`hotel_country` int(11) DEFAULT NULL,
`hotel_market` int(11) DEFAULT NULL,
`hotel_cluster` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'expedia-relevant-users-2013'
CREATE TABLE `expedia-relevant-users-2013` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2926 DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'expedia-relevant-users-2014'
CREATE TABLE `expedia-relevant-users-2014` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2295 DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'expedia-user-hotel-probability-2013'
CREATE TABLE `expedia-user-hotel-probability-2013` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`hotel_id` int(11) DEFAULT NULL,
`probability` varchar(255) DEFAULT NULL,
`like_hotel` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9802 DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'expedia-user-hotel-probability-2014'
CREATE TABLE `expedia-user-hotel-probability-2014` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`hotel_id` int(11) DEFAULT NULL,
`probability` varchar(255) DEFAULT NULL,
`like_hotel` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9802 DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'expedia-user-hotel-probability-comparison-2013-2014'
CREATE TABLE `expedia-user-hotel-probability-comparison-2013-2014` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`hotel_id` int(11) DEFAULT NULL,
`volatility` varchar(255) DEFAULT NULL,
`like_hotel` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=latin1;