-
Notifications
You must be signed in to change notification settings - Fork 15
/
database.sql
567 lines (514 loc) · 18 KB
/
database.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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
-- --------------------------------------------------------
-- Host: localhost
-- Server version: 10.1.9-MariaDB-log - mariadb.org binary distribution
-- Server OS: Win32
-- HeidiSQL Version: 9.3.0.4984
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping database structure for boompanel
CREATE DATABASE IF NOT EXISTS `boompanel` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
USE `boompanel`;
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
-- Dumping structure for table boompanel.bp_admins
CREATE TABLE IF NOT EXISTS `bp_admins` (
`aid` INT(11) NOT NULL AUTO_INCREMENT,
`pid` INT(11) NOT NULL,
`sid` INT(11) NOT NULL,
`gid` INT(11) NOT NULL,
`add_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`aid`),
INDEX `gid` (`gid`),
INDEX `sid` (`sid`),
INDEX `pid` (`pid`),
CONSTRAINT `bp_admins_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `bp_players` (`id`) ON UPDATE CASCADE,
CONSTRAINT `bp_admins_ibfk_2` FOREIGN KEY (`gid`) REFERENCES `bp_admin_groups` (`id`) ON UPDATE CASCADE,
CONSTRAINT `bp_admins_ibfk_3` FOREIGN KEY (`sid`) REFERENCES `bp_servers` (`id`) ON UPDATE CASCADE
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
AUTO_INCREMENT=8
;
-- Dumping data for table boompanel.bp_admins: ~0 rows (approximately)
/*!40000 ALTER TABLE `bp_admins` DISABLE KEYS */;
/*!40000 ALTER TABLE `bp_admins` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_admin_groups
CREATE TABLE IF NOT EXISTS `bp_admin_groups` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`name` VARCHAR(50) NOT NULL COLLATE 'utf8_general_ci',
`flags` VARCHAR(25) NOT NULL COLLATE 'utf8_general_ci',
`immunity` INT(3) NOT NULL DEFAULT '0',
`usetime` INT(11) NOT NULL DEFAULT '0',
`isadmingroup` INT(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
AUTO_INCREMENT=11
;
-- Dumping data for table boompanel.bp_admin_groups: ~0 rows (approximately)
/*!40000 ALTER TABLE `bp_admin_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `bp_admin_groups` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_bans
CREATE TABLE IF NOT EXISTS `bp_bans` (
`bid` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) NOT NULL,
`sid` int(11) NOT NULL,
`aid` int(11) NOT NULL,
`reason` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`length` int(11) NOT NULL DEFAULT '0',
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`unbanned` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`bid`),
KEY `admin_id` (`aid`),
KEY `sid` (`sid`),
KEY `pid` (`pid`),
CONSTRAINT `bp_bans_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `bp_players` (`id`) ON UPDATE CASCADE,
CONSTRAINT `bp_bans_ibfk_2` FOREIGN KEY (`sid`) REFERENCES `bp_servers` (`id`) ON UPDATE CASCADE,
CONSTRAINT `bp_bans_ibfk_3` FOREIGN KEY (`aid`) REFERENCES `bp_players` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table boompanel.bp_bans: ~0 rows (approximately)
/*!40000 ALTER TABLE `bp_bans` DISABLE KEYS */;
/*!40000 ALTER TABLE `bp_bans` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_chat
CREATE TABLE IF NOT EXISTS `bp_chat` (
`lid` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) NOT NULL,
`sid` int(11) NOT NULL,
`message` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` int(1) NOT NULL DEFAULT '0',
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`lid`),
KEY `player_id` (`pid`),
KEY `server_id` (`sid`),
CONSTRAINT `bp_chat_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `bp_players` (`id`) ON UPDATE CASCADE,
CONSTRAINT `bp_chat_ibfk_2` FOREIGN KEY (`sid`) REFERENCES `bp_servers` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table boompanel.bp_chat: ~0 rows (approximately)
/*!40000 ALTER TABLE `bp_chat` DISABLE KEYS */;
/*!40000 ALTER TABLE `bp_chat` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_countries
CREATE TABLE IF NOT EXISTS `bp_countries` (
`country_code` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL,
`country_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
UNIQUE KEY `country_uniqe` (`country_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table boompanel.bp_countries: ~246 rows (approximately)
/*!40000 ALTER TABLE `bp_countries` DISABLE KEYS */;
INSERT IGNORE INTO `bp_countries` (`country_code`, `country_name`) VALUES
('AD', 'Andorra'),
('AE', 'United-Arab-Emirates'),
('AF', 'Afghanistan'),
('AG', 'Antigua-and-Barbuda'),
('AI', 'Anguilla'),
('AL', 'Albania'),
('AM', 'Armenia'),
('AN', 'Netherlands-Antilles'),
('AO', 'Angola'),
('AQ', 'Antarctica'),
('AR', 'Argentina'),
('AT', 'Austria'),
('AU', 'Australia'),
('AW', 'Aruba'),
('AZ', 'Azerbaijan'),
('BA', 'Bosnia-and-Herzegovina'),
('BB', 'Barbados'),
('BD', 'Bangladesh'),
('BE', 'Belgium'),
('BF', 'Burkina-Faso'),
('BG', 'Bulgaria'),
('BH', 'Bahrain'),
('BI', 'Burundi'),
('BY', 'Belarus'),
('BJ', 'Benin'),
('BM', 'Bermuda'),
('BN', 'Brunei-Darussalam'),
('BO', 'Bolivia'),
('BR', 'Brazil'),
('BS', 'Bahamas'),
('BT', 'Bhutan'),
('BV', 'Bouvet-Island'),
('BW', 'Botswana'),
('BZ', 'Belize'),
('CA', 'Canada'),
('CC', 'Cocos-(Keeling)-Islands'),
('CF', 'Central-African-Republic'),
('CG', 'Congo'),
('CH', 'Switzerland'),
('CI', 'Ivory-Coast'),
('CY', 'Cyprus'),
('CK', 'Cook-Islands'),
('CL', 'Chile'),
('CM', 'Cameroon'),
('CN', 'China'),
('CO', 'Colombia'),
('CR', 'Costa-Rica'),
('CU', 'Cuba'),
('CV', 'Cape-Verde'),
('CX', 'Christmas-Island'),
('CZ', 'Czech-Republic'),
('DE', 'Germany'),
('DJ', 'Djibouti'),
('DK', 'Denmark'),
('DM', 'Dominica'),
('DO', 'Dominican-Republic'),
('DS', 'American-Samoa'),
('DZ', 'Algeria'),
('EC', 'Ecuador'),
('EE', 'Estonia'),
('EG', 'Egypt'),
('EH', 'Western-Sahara'),
('ER', 'Eritrea'),
('ES', 'Spain'),
('ET', 'Ethiopia'),
('FI', 'Finland'),
('FJ', 'Fiji'),
('FK', 'Falkland-Islands-(Malvinas)'),
('FM', 'Micronesia,-Federated-States-of'),
('FO', 'Faroe-Islands'),
('FR', 'France'),
('FX', 'France,-Metropolitan'),
('GA', 'Gabon'),
('GB', 'United-Kingdom'),
('GD', 'Grenada'),
('GE', 'Georgia'),
('GF', 'French-Guiana'),
('GH', 'Ghana'),
('GI', 'Gibraltar'),
('GY', 'Guyana'),
('GK', 'Guernsey'),
('GL', 'Greenland'),
('GM', 'Gambia'),
('GN', 'Guinea'),
('GP', 'Guadeloupe'),
('GQ', 'Equatorial-Guinea'),
('GR', 'Greece'),
('GS', 'South-Georgia-South-Sandwich-Islands'),
('GT', 'Guatemala'),
('GU', 'Guam'),
('GW', 'Guinea-Bissau'),
('HK', 'Hong-Kong'),
('HM', 'Heard-and-Mc-Donald-Islands'),
('HN', 'Honduras'),
('HR', 'Croatia-(Hrvatska)'),
('HT', 'Haiti'),
('HU', 'Hungary'),
('HZ', 'Unknown'),
('ID', 'Indonesia'),
('IE', 'Ireland'),
('IL', 'Israel'),
('IM', 'Isle-of-Man'),
('IN', 'India'),
('IO', 'British-Indian-Ocean-Territory'),
('IQ', 'Iraq'),
('IR', 'Iran-(Islamic-Republic-of)'),
('IS', 'Iceland'),
('IT', 'Italy'),
('YE', 'Yemen'),
('JE', 'Jersey'),
('JM', 'Jamaica'),
('JO', 'Jordan'),
('JP', 'Japan'),
('KE', 'Kenya'),
('KG', 'Kyrgyzstan'),
('KH', 'Cambodia'),
('KI', 'Kiribati'),
('KY', 'Cayman-Islands'),
('KM', 'Comoros'),
('KN', 'Saint-Kitts-and-Nevis'),
('KP', 'Korea,-Democratic-People\'s-Republic-of'),
('KR', 'Korea,-Republic-of'),
('KW', 'Kuwait'),
('KZ', 'Kazakhstan'),
('LA', 'Lao-People\'s-Democratic-Republic'),
('LB', 'Lebanon'),
('LC', 'Saint-Lucia'),
('LI', 'Liechtenstein'),
('LY', 'Libyan-Arab-Jamahiriya'),
('LK', 'Sri-Lanka'),
('LR', 'Liberia'),
('LS', 'Lesotho'),
('LT', 'Lithuania'),
('LU', 'Luxembourg'),
('LV', 'Latvia'),
('MA', 'Morocco'),
('MC', 'Monaco'),
('MD', 'Moldova,-Republic-of'),
('ME', 'Montenegro'),
('MG', 'Madagascar'),
('MH', 'Marshall-Islands'),
('MY', 'Malaysia'),
('MK', 'Macedonia'),
('ML', 'Mali'),
('MM', 'Myanmar'),
('MN', 'Mongolia'),
('MO', 'Macau'),
('MP', 'Northern-Mariana-Islands'),
('MQ', 'Martinique'),
('MR', 'Mauritania'),
('MS', 'Montserrat'),
('MT', 'Malta'),
('MU', 'Mauritius'),
('MV', 'Maldives'),
('MW', 'Malawi'),
('MX', 'Mexico'),
('MZ', 'Mozambique'),
('NA', 'Namibia'),
('NC', 'New-Caledonia'),
('NE', 'Niger'),
('NF', 'Norfolk-Island'),
('NG', 'Nigeria'),
('NI', 'Nicaragua'),
('NL', 'Netherlands'),
('NO', 'Norway'),
('NP', 'Nepal'),
('NR', 'Nauru'),
('NU', 'Niue'),
('NZ', 'New-Zealand'),
('OM', 'Oman'),
('PA', 'Panama'),
('PE', 'Peru'),
('PF', 'French-Polynesia'),
('PG', 'Papua-New-Guinea'),
('PH', 'Philippines'),
('PY', 'Paraguay'),
('PK', 'Pakistan'),
('PL', 'Poland'),
('PM', 'St.-Pierre-and-Miquelon'),
('PN', 'Pitcairn'),
('PR', 'Puerto-Rico'),
('PS', 'Palestine'),
('PT', 'Portugal'),
('PW', 'Palau'),
('QA', 'Qatar'),
('RE', 'Reunion'),
('RO', 'Romania'),
('RS', 'Serbia'),
('RU', 'Russian-Federation'),
('RW', 'Rwanda'),
('SA', 'Saudi-Arabia'),
('SB', 'Solomon-Islands'),
('SC', 'Seychelles'),
('SD', 'Sudan'),
('SE', 'Sweden'),
('SG', 'Singapore'),
('SH', 'St.-Helena'),
('SI', 'Slovenia'),
('SY', 'Syrian-Arab-Republic'),
('SJ', 'Svalbard-and-Jan-Mayen-Islands'),
('SK', 'Slovakia'),
('SL', 'Sierra-Leone'),
('SM', 'San-Marino'),
('SN', 'Senegal'),
('SO', 'Somalia'),
('SR', 'Suriname'),
('ST', 'Sao-Tome-and-Principe'),
('SV', 'El-Salvador'),
('SZ', 'Swaziland'),
('TC', 'Turks-and-Caicos-Islands'),
('TD', 'Chad'),
('TF', 'French-Southern-Territories'),
('TG', 'Togo'),
('TH', 'Thailand'),
('TY', 'Mayotte'),
('TJ', 'Tajikistan'),
('TK', 'Tokelau'),
('TM', 'Turkmenistan'),
('TN', 'Tunisia'),
('TO', 'Tonga'),
('TP', 'East-Timor'),
('TR', 'Turkey'),
('TT', 'Trinidad-and-Tobago'),
('TV', 'Tuvalu'),
('TW', 'Taiwan'),
('TZ', 'Tanzania,-United-Republic-of'),
('UA', 'Ukraine'),
('UG', 'Uganda'),
('UY', 'Uruguay'),
('UM', 'United-States-minor-outlying-islands'),
('US', 'United-States'),
('UZ', 'Uzbekistan'),
('VA', 'Vatican-City-State'),
('VC', 'Saint-Vincent-and-the-Grenadines'),
('VE', 'Venezuela'),
('VG', 'Virgin-Islands-(British)'),
('VI', 'Virgin-Islands-(U.S.)'),
('VN', 'Vietnam'),
('VU', 'Vanuatu'),
('WF', 'Wallis-and-Futuna-Islands'),
('WS', 'Samoa'),
('XK', 'Kosovo'),
('ZA', 'South-Africa'),
('ZM', 'Zambia'),
('ZR', 'Zaire'),
('ZW', 'Zimbabwe');
/*!40000 ALTER TABLE `bp_countries` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_flags
CREATE TABLE IF NOT EXISTS `bp_flags` (
`flag` varchar(1) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`importance` int(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table boompanel.bp_flags: ~21 rows (approximately)
/*!40000 ALTER TABLE `bp_flags` DISABLE KEYS */;
INSERT IGNORE INTO `bp_flags` (`flag`, `name`, `importance`) VALUES
('a', 'Reservation', 1),
('b', 'Generic', 1),
('c', 'Kick', 1),
('d', 'Ban', 1),
('e', 'Unban', 1),
('f', 'Slay', 1),
('g', 'Changemap', 1),
('h', 'Cvar', 1),
('i', 'Config', 1),
('j', 'Chat', 1),
('k', 'Vote', 1),
('l', 'Password', 1),
('m', 'Rcon', 1),
('n', 'Cheats', 1),
('z', 'Root', 1),
('o', 'Flag_custom', 1),
('p', 'Flag_custom', 1),
('q', 'Flag_custom', 1),
('r', 'Flag_custom', 1),
('s', 'Flag_custom', 1),
('t', 'Flag_custom', 1);
/*!40000 ALTER TABLE `bp_flags` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_mutegag
CREATE TABLE IF NOT EXISTS `bp_mutegag` (
`bid` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) NOT NULL,
`aid` int(11) NOT NULL,
`sid` int(11) NOT NULL,
`mgtype` int(1) NOT NULL DEFAULT '0',
`length` int(11) NOT NULL,
`reason` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`unbanned` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`bid`),
KEY `pid` (`pid`),
KEY `aid` (`aid`),
KEY `sid` (`sid`),
CONSTRAINT `bp_mutegag_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `bp_players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `bp_mutegag_ibfk_2` FOREIGN KEY (`aid`) REFERENCES `bp_players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `bp_mutegag_ibfk_3` FOREIGN KEY (`sid`) REFERENCES `bp_servers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table boompanel.bp_mutegag: ~0 rows (approximately)
/*!40000 ALTER TABLE `bp_mutegag` DISABLE KEYS */;
/*!40000 ALTER TABLE `bp_mutegag` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_panel_admins
CREATE TABLE `bp_panel_admins` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`steamid` VARCHAR(20) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
PRIMARY KEY (`id`),
UNIQUE INDEX `steamid` (`steamid`)
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
AUTO_INCREMENT=10
;
-- Dumping data for table boompanel.bp_panel_admins: ~0 rows (approximately)
/*!40000 ALTER TABLE `bp_panel_admins` DISABLE KEYS */;
/*!40000 ALTER TABLE `bp_panel_admins` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_players
CREATE TABLE IF NOT EXISTS `bp_players` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`steamid` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`country` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `steamid` (`steamid`),
KEY `country_id` (`country`),
CONSTRAINT `bp_players_ibfk_1` FOREIGN KEY (`country`) REFERENCES `bp_countries` (`country_code`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=168 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table boompanel.bp_players: ~1 rows (approximately)
/*!40000 ALTER TABLE `bp_players` DISABLE KEYS */;
INSERT IGNORE INTO `bp_players` (`id`, `steamid`, `country`) VALUES
(0, '0', 'HZ');
/*!40000 ALTER TABLE `bp_players` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_players_ip
CREATE TABLE IF NOT EXISTS `bp_players_ip` (
`pid` int(11) NOT NULL,
`ip` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`connections` int(6) NOT NULL DEFAULT '1',
`last_used` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY `unique_index` (`pid`,`ip`),
CONSTRAINT `bp_players_ip_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `bp_players` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table boompanel.bp_players_ip: ~0 rows (approximately)
/*!40000 ALTER TABLE `bp_players_ip` DISABLE KEYS */;
/*!40000 ALTER TABLE `bp_players_ip` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_players_online
CREATE TABLE `bp_players_online` (
`pid` INT(11) NOT NULL,
`sid` INT(11) NOT NULL,
`connected` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`disconnected` TIMESTAMP NOT NULL DEFAULT 0,
INDEX `server_id` (`sid`),
INDEX `player_id` (`pid`),
CONSTRAINT `bp_players_online_ibfk_1` FOREIGN KEY (`sid`) REFERENCES `bp_servers` (`id`) ON UPDATE CASCADE,
CONSTRAINT `bp_players_online_ibfk_2` FOREIGN KEY (`pid`) REFERENCES `bp_players` (`id`) ON UPDATE CASCADE
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
;
-- Dumping data for table boompanel.bp_players_online: ~0 rows (approximately)
/*!40000 ALTER TABLE `bp_players_online` DISABLE KEYS */;
/*!40000 ALTER TABLE `bp_players_online` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_players_username
CREATE TABLE IF NOT EXISTS `bp_players_username` (
`pid` int(11) NOT NULL,
`username` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
`connections` int(6) NOT NULL DEFAULT '1',
`last_used` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY `unique_index` (`username`,`pid`),
KEY `player_id` (`pid`),
CONSTRAINT `bp_players_username_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `bp_players` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- last_used ON UPDATE CURRENT_TIMESTAMP
-- Dumping data for table boompanel.bp_players_username: ~1 rows (approximately)
/*!40000 ALTER TABLE `bp_players_username` DISABLE KEYS */;
INSERT IGNORE INTO `bp_players_username` (`pid`, `username`, `connections`, `last_used`) VALUES
(0, 'Console', 0, '2017-10-28 14:58:41');
/*!40000 ALTER TABLE `bp_players_username` ENABLE KEYS */;
-- Dumping structure for table boompanel.bp_servers
CREATE TABLE IF NOT EXISTS `bp_servers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`ip` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`port` int(6) NOT NULL,
`rcon_pw` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `fullIP` (`ip`,`port`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE `bp_panel_permissions` (
`permissionid` INT(11) NOT NULL AUTO_INCREMENT,
`name` VARCHAR(40) NOT NULL COLLATE 'utf8mb4_unicode_ci',
PRIMARY KEY (`permissionid`),
UNIQUE INDEX `name` (`name`)
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
AUTO_INCREMENT=34
;
CREATE TABLE `bp_panel_admin_permissions` (
`paneladmin` INT(11) NULL DEFAULT NULL,
`permissionid` INT(11) NULL DEFAULT NULL,
UNIQUE INDEX `paneladmin` (`paneladmin`, `permissionid`),
INDEX `pid` (`paneladmin`),
INDEX `permissionid` (`permissionid`),
CONSTRAINT `bp_panel_admin_permissions_ibfk_2` FOREIGN KEY (`permissionid`) REFERENCES `bp_panel_permissions` (`permissionid`) ON DELETE CASCADE,
CONSTRAINT `bp_panel_admin_permissions_ibfk_3` FOREIGN KEY (`paneladmin`) REFERENCES `bp_panel_admins` (`id`) ON DELETE CASCADE
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
;
-- Dumping data for table boompanel.bp_servers: ~1 rows (approximately)
/*!40000 ALTER TABLE `bp_servers` DISABLE KEYS */;
INSERT IGNORE INTO `bp_servers` (`id`, `name`, `ip`, `port`, `rcon_pw`) VALUES
(0, 'all servers', '', 0, '');
/*!40000 ALTER TABLE `bp_servers` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;