forked from SirPlease/L4D2-Competitive-Rework
-
Notifications
You must be signed in to change notification settings - Fork 8
/
l4d2stats.sql
324 lines (301 loc) · 14.9 KB
/
l4d2stats.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
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
-- Adminer 4.8.1 MySQL 5.7.41 dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `ip2country`;
CREATE TABLE `ip2country` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`begin_ip_num` int(11) unsigned NOT NULL,
`end_ip_num` int(11) unsigned NOT NULL,
`country_code` varchar(4) NOT NULL,
`country_name` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
KEY `begin_ip_num` (`begin_ip_num`,`end_ip_num`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ip2country_blocks`;
CREATE TABLE `ip2country_blocks` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`begin_ip_num` int(11) unsigned NOT NULL,
`end_ip_num` int(11) unsigned NOT NULL,
`loc_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `beginend` (`begin_ip_num`,`end_ip_num`) USING BTREE,
KEY `loc_id` (`loc_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ip2country_locations`;
CREATE TABLE `ip2country_locations` (
`loc_id` int(11) unsigned NOT NULL,
`country_code` varchar(4) NOT NULL,
`loc_region` varchar(128) NOT NULL,
`loc_city` tinyblob NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
PRIMARY KEY (`loc_id`),
KEY `country_code` (`country_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SET NAMES utf8mb4;
DROP TABLE IF EXISTS `lilac_detections`;
CREATE TABLE `lilac_detections` (
`name` varchar(128) CHARACTER SET utf8mb4 NOT NULL,
`steamid` varchar(32) CHARACTER SET utf8mb4 NOT NULL,
`ip` varchar(16) CHARACTER SET utf8mb4 NOT NULL,
`cheat` varchar(50) CHARACTER SET utf8mb4 NOT NULL,
`timestamp` int(11) NOT NULL,
`detection` int(11) NOT NULL,
`pos1` float NOT NULL,
`pos2` float NOT NULL,
`pos3` float NOT NULL,
`ang1` float NOT NULL,
`ang2` float NOT NULL,
`ang3` float NOT NULL,
`map` varchar(128) CHARACTER SET utf8mb4 NOT NULL,
`team` int(11) NOT NULL,
`weapon` varchar(64) CHARACTER SET utf8mb4 NOT NULL,
`data1` float NOT NULL,
`data2` float NOT NULL,
`latency_inc` float NOT NULL,
`latency_out` float NOT NULL,
`loss_inc` float NOT NULL,
`loss_out` float NOT NULL,
`choke_inc` float NOT NULL,
`choke_out` float NOT NULL,
`connection_ticktime` float NOT NULL,
`game_ticktime` float NOT NULL,
`lilac_version` varchar(20) CHARACTER SET utf8mb4 NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `maps`;
CREATE TABLE `maps` (
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`gamemode` int(1) NOT NULL DEFAULT '0',
`custom` bit(1) NOT NULL DEFAULT b'0',
`playtime_nor` int(11) NOT NULL DEFAULT '0',
`playtime_adv` int(11) NOT NULL DEFAULT '0',
`playtime_exp` int(11) NOT NULL DEFAULT '0',
`restarts_nor` int(11) NOT NULL DEFAULT '0',
`restarts_adv` int(11) NOT NULL DEFAULT '0',
`restarts_exp` int(11) NOT NULL DEFAULT '0',
`points_nor` int(11) NOT NULL DEFAULT '0',
`points_adv` int(11) NOT NULL DEFAULT '0',
`points_exp` int(11) NOT NULL DEFAULT '0',
`points_infected_nor` int(11) NOT NULL DEFAULT '0',
`points_infected_adv` int(11) NOT NULL DEFAULT '0',
`points_infected_exp` int(11) NOT NULL DEFAULT '0',
`kills_nor` int(11) NOT NULL DEFAULT '0',
`kills_adv` int(11) NOT NULL DEFAULT '0',
`kills_exp` int(11) NOT NULL DEFAULT '0',
`survivor_kills_nor` int(11) NOT NULL DEFAULT '0',
`survivor_kills_adv` int(11) NOT NULL DEFAULT '0',
`survivor_kills_exp` int(11) NOT NULL DEFAULT '0',
`infected_win_nor` int(11) NOT NULL DEFAULT '0',
`infected_win_adv` int(11) NOT NULL DEFAULT '0',
`infected_win_exp` int(11) NOT NULL DEFAULT '0',
`survivors_win_nor` int(11) NOT NULL DEFAULT '0',
`survivors_win_adv` int(11) NOT NULL DEFAULT '0',
`survivors_win_exp` int(11) NOT NULL DEFAULT '0',
`infected_smoker_damage_nor` bigint(20) NOT NULL DEFAULT '0',
`infected_smoker_damage_adv` bigint(20) NOT NULL DEFAULT '0',
`infected_smoker_damage_exp` bigint(20) NOT NULL DEFAULT '0',
`infected_jockey_damage_nor` bigint(20) NOT NULL DEFAULT '0',
`infected_jockey_damage_adv` bigint(20) NOT NULL DEFAULT '0',
`infected_jockey_damage_exp` bigint(20) NOT NULL DEFAULT '0',
`infected_jockey_ridetime_nor` double NOT NULL DEFAULT '0',
`infected_jockey_ridetime_adv` double NOT NULL DEFAULT '0',
`infected_jockey_ridetime_exp` double NOT NULL DEFAULT '0',
`infected_charger_damage_nor` bigint(20) NOT NULL DEFAULT '0',
`infected_charger_damage_adv` bigint(20) NOT NULL DEFAULT '0',
`infected_charger_damage_exp` bigint(20) NOT NULL DEFAULT '0',
`infected_tank_damage_nor` bigint(20) NOT NULL DEFAULT '0',
`infected_tank_damage_adv` bigint(20) NOT NULL DEFAULT '0',
`infected_tank_damage_exp` bigint(20) NOT NULL DEFAULT '0',
`infected_boomer_vomits_nor` int(11) NOT NULL DEFAULT '0',
`infected_boomer_vomits_adv` int(11) NOT NULL DEFAULT '0',
`infected_boomer_vomits_exp` int(11) NOT NULL DEFAULT '0',
`infected_boomer_blinded_nor` int(11) NOT NULL DEFAULT '0',
`infected_boomer_blinded_adv` int(11) NOT NULL DEFAULT '0',
`infected_boomer_blinded_exp` int(11) NOT NULL DEFAULT '0',
`infected_spitter_damage_nor` int(11) NOT NULL DEFAULT '0',
`infected_spitter_damage_adv` int(11) NOT NULL DEFAULT '0',
`infected_spitter_damage_exp` int(11) NOT NULL DEFAULT '0',
`infected_spawn_1_nor` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Smoker',
`infected_spawn_1_adv` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Smoker',
`infected_spawn_1_exp` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Smoker',
`infected_spawn_2_nor` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Boomer',
`infected_spawn_2_adv` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Boomer',
`infected_spawn_2_exp` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Boomer',
`infected_spawn_3_nor` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Hunter',
`infected_spawn_3_adv` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Hunter',
`infected_spawn_3_exp` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Hunter',
`infected_spawn_4_nor` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Spitter',
`infected_spawn_4_adv` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Spitter',
`infected_spawn_4_exp` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Spitter',
`infected_spawn_5_nor` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Jockey',
`infected_spawn_5_adv` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Jockey',
`infected_spawn_5_exp` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Jockey',
`infected_spawn_6_nor` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Charger',
`infected_spawn_6_adv` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Charger',
`infected_spawn_6_exp` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Charger',
`infected_spawn_8_nor` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Tank',
`infected_spawn_8_adv` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Tank',
`infected_spawn_8_exp` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawn as Tank',
`infected_hunter_pounce_counter_nor` int(11) NOT NULL DEFAULT '0',
`infected_hunter_pounce_counter_adv` int(11) NOT NULL DEFAULT '0',
`infected_hunter_pounce_counter_exp` int(11) NOT NULL DEFAULT '0',
`infected_hunter_pounce_damage_nor` int(11) NOT NULL DEFAULT '0',
`infected_hunter_pounce_damage_adv` int(11) NOT NULL DEFAULT '0',
`infected_hunter_pounce_damage_exp` int(11) NOT NULL DEFAULT '0',
`infected_tanksniper_nor` int(11) NOT NULL DEFAULT '0',
`infected_tanksniper_adv` int(11) NOT NULL DEFAULT '0',
`infected_tanksniper_exp` int(11) NOT NULL DEFAULT '0',
`caralarm_nor` int(11) NOT NULL DEFAULT '0',
`caralarm_adv` int(11) NOT NULL DEFAULT '0',
`caralarm_exp` int(11) NOT NULL DEFAULT '0',
`jockey_rides_nor` int(11) NOT NULL DEFAULT '0',
`jockey_rides_adv` int(11) NOT NULL DEFAULT '0',
`jockey_rides_exp` int(11) NOT NULL DEFAULT '0',
`charger_impacts_nor` int(11) NOT NULL DEFAULT '0',
`charger_impacts_adv` int(11) NOT NULL DEFAULT '0',
`charger_impacts_exp` int(11) NOT NULL DEFAULT '0',
`mutation` varchar(64) NOT NULL DEFAULT '',
PRIMARY KEY (`name`,`gamemode`,`mutation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `players`;
CREATE TABLE `players` (
`steamid` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`name` tinyblob NOT NULL,
`lastontime` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`lastgamemode` int(1) NOT NULL DEFAULT '0',
`lastannemode` int(1) NOT NULL DEFAULT '0',
`ip` varchar(16) CHARACTER SET utf8mb4 NOT NULL DEFAULT '0.0.0.0',
`playtime` int(11) NOT NULL DEFAULT '0' COMMENT 'Playtime in Coop',
`playtime_versus` int(11) NOT NULL DEFAULT '0' COMMENT 'Playtime in Versus',
`playtime_realism` int(11) NOT NULL DEFAULT '0' COMMENT 'Playtime in Realism',
`playtime_survival` int(11) NOT NULL DEFAULT '0' COMMENT 'Playtime in Survival',
`playtime_scavenge` int(11) NOT NULL DEFAULT '0' COMMENT 'Playtime in Scavenge',
`playtime_realismversus` int(11) NOT NULL DEFAULT '0' COMMENT 'Playtime in Realism',
`points` int(11) NOT NULL DEFAULT '0',
`points_realism` int(11) NOT NULL DEFAULT '0',
`points_survival` int(11) NOT NULL DEFAULT '0',
`points_survivors` int(11) NOT NULL DEFAULT '0',
`points_infected` int(11) NOT NULL DEFAULT '0',
`points_scavenge_survivors` int(11) NOT NULL DEFAULT '0',
`points_scavenge_infected` int(11) NOT NULL DEFAULT '0',
`points_realism_survivors` int(11) NOT NULL DEFAULT '0',
`points_realism_infected` int(11) NOT NULL DEFAULT '0',
`kills` int(11) NOT NULL DEFAULT '0',
`melee_kills` int(11) NOT NULL DEFAULT '0',
`headshots` int(11) NOT NULL DEFAULT '0',
`kill_infected` int(11) NOT NULL DEFAULT '0',
`kill_hunter` int(11) NOT NULL DEFAULT '0',
`kill_smoker` int(11) NOT NULL DEFAULT '0',
`kill_boomer` int(11) NOT NULL DEFAULT '0',
`kill_spitter` int(11) NOT NULL DEFAULT '0',
`kill_jockey` int(11) NOT NULL DEFAULT '0',
`kill_charger` int(11) NOT NULL DEFAULT '0',
`versus_kills_survivors` int(11) NOT NULL DEFAULT '0',
`scavenge_kills_survivors` int(11) NOT NULL DEFAULT '0',
`realism_kills_survivors` int(11) NOT NULL DEFAULT '0',
`jockey_rides` int(11) NOT NULL DEFAULT '0',
`charger_impacts` int(11) NOT NULL DEFAULT '0',
`award_pills` int(11) NOT NULL DEFAULT '0',
`award_adrenaline` int(11) NOT NULL DEFAULT '0',
`award_fincap` int(11) NOT NULL DEFAULT '0' COMMENT 'Friendly incapacitation',
`award_medkit` int(11) NOT NULL DEFAULT '0',
`award_defib` int(11) NOT NULL DEFAULT '0',
`award_charger` int(11) NOT NULL DEFAULT '0',
`award_jockey` int(11) NOT NULL DEFAULT '0',
`award_hunter` int(11) NOT NULL DEFAULT '0',
`award_smoker` int(11) NOT NULL DEFAULT '0',
`award_protect` int(11) NOT NULL DEFAULT '0',
`award_revive` int(11) NOT NULL DEFAULT '0',
`award_rescue` int(11) NOT NULL DEFAULT '0',
`award_campaigns` int(11) NOT NULL DEFAULT '0',
`award_tankkill` int(11) NOT NULL DEFAULT '0',
`award_tankkillnodeaths` int(11) NOT NULL DEFAULT '0',
`award_allinsafehouse` int(11) NOT NULL DEFAULT '0',
`award_friendlyfire` int(11) NOT NULL DEFAULT '0',
`award_teamkill` int(11) NOT NULL DEFAULT '0',
`award_left4dead` int(11) NOT NULL DEFAULT '0',
`award_letinsafehouse` int(11) NOT NULL DEFAULT '0',
`award_witchdisturb` int(11) NOT NULL DEFAULT '0',
`award_pounce_perfect` int(11) NOT NULL DEFAULT '0',
`award_pounce_nice` int(11) NOT NULL DEFAULT '0',
`award_perfect_blindness` int(11) NOT NULL DEFAULT '0',
`award_infected_win` int(11) NOT NULL DEFAULT '0',
`award_scavenge_infected_win` int(11) NOT NULL DEFAULT '0',
`award_bulldozer` int(11) NOT NULL DEFAULT '0',
`award_survivor_down` int(11) NOT NULL DEFAULT '0',
`award_ledgegrab` int(11) NOT NULL DEFAULT '0',
`award_gascans_poured` int(11) NOT NULL DEFAULT '0',
`award_upgrades_added` int(11) NOT NULL DEFAULT '0',
`award_matador` int(11) NOT NULL DEFAULT '0',
`award_witchcrowned` int(11) NOT NULL DEFAULT '0',
`award_scatteringram` int(11) NOT NULL DEFAULT '0',
`infected_spawn_1` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawned as Smoker',
`infected_spawn_2` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawned as Boomer',
`infected_spawn_3` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawned as Hunter',
`infected_spawn_4` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawned as Spitter',
`infected_spawn_5` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawned as Jockey',
`infected_spawn_6` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawned as Charger',
`infected_spawn_8` int(11) NOT NULL DEFAULT '0' COMMENT 'Spawned as Tank',
`infected_boomer_vomits` int(11) NOT NULL DEFAULT '0',
`infected_boomer_blinded` int(11) NOT NULL DEFAULT '0',
`infected_hunter_pounce_counter` int(11) NOT NULL DEFAULT '0',
`infected_hunter_pounce_dmg` int(11) NOT NULL DEFAULT '0',
`infected_smoker_damage` int(11) NOT NULL DEFAULT '0',
`infected_jockey_damage` int(11) NOT NULL DEFAULT '0',
`infected_jockey_ridetime` double NOT NULL DEFAULT '0',
`infected_charger_damage` int(11) NOT NULL DEFAULT '0',
`infected_tank_damage` int(11) NOT NULL DEFAULT '0',
`infected_tanksniper` int(11) NOT NULL DEFAULT '0',
`infected_spitter_damage` int(11) NOT NULL DEFAULT '0',
`mutations_kills_survivors` int(11) NOT NULL DEFAULT '0',
`playtime_mutations` int(11) NOT NULL DEFAULT '0',
`points_mutations` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`steamid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `RPG`;
CREATE TABLE `RPG` (
`steamid` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`MELEE_DATA` int(10) NOT NULL,
`BLOOD_DATA` int(10) NOT NULL,
`HAT` int(10) NOT NULL DEFAULT '0',
`GLOW` int(10) NOT NULL DEFAULT '0',
`SKIN` int(10) NOT NULL DEFAULT '0',
`RECOIL` int(10) NOT NULL DEFAULT '0',
`CHATTAG` varchar(128) CHARACTER SET utf8mb4 DEFAULT NULL,
PRIMARY KEY (`steamid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `server_settings`;
CREATE TABLE `server_settings` (
`sname` varchar(64) CHARACTER SET utf8mb4 NOT NULL,
`svalue` blob,
PRIMARY KEY (`sname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `settings`;
CREATE TABLE `settings` (
`steamid` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`mute` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`steamid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `timedmaps`;
CREATE TABLE `timedmaps` (
`map` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`gamemode` int(1) unsigned NOT NULL,
`difficulty` int(1) unsigned NOT NULL,
`steamid` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`plays` int(11) NOT NULL,
`time` double NOT NULL,
`players` int(2) NOT NULL,
`modified` datetime NOT NULL,
`created` date NOT NULL,
`mutation` varchar(64) CHARACTER SET utf8mb4 NOT NULL DEFAULT '',
`mode` int(1) unsigned NOT NULL DEFAULT '0',
`sinum` int(1) unsigned NOT NULL DEFAULT '0',
`sitime` int(1) unsigned NOT NULL DEFAULT '0',
`usebuy` int(1) unsigned NOT NULL DEFAULT '0',
`auto` int(1) unsigned NOT NULL DEFAULT '0',
`anneversion` varchar(64) CHARACTER SET utf8mb4 NOT NULL DEFAULT 'None',
PRIMARY KEY (`map`,`gamemode`,`difficulty`,`steamid`,`time`,`mutation`,`mode`,`sinum`,`sitime`,`usebuy`,`anneversion`,`auto`,`players`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2023-09-14 02:07:16