forked from SirPlease/L4D2-Competitive-Rework
-
Notifications
You must be signed in to change notification settings - Fork 8
/
sourcebans.sql
276 lines (235 loc) · 7.89 KB
/
sourcebans.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
-- 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';
SET NAMES utf8mb4;
DROP TABLE IF EXISTS `sb_admins`;
CREATE TABLE `sb_admins` (
`aid` int(6) NOT NULL AUTO_INCREMENT,
`user` varchar(64) NOT NULL,
`authid` varchar(64) NOT NULL DEFAULT '',
`password` varchar(128) NOT NULL,
`gid` int(6) NOT NULL,
`email` varchar(128) NOT NULL,
`validate` varchar(128) DEFAULT NULL,
`extraflags` int(10) NOT NULL,
`immunity` int(10) NOT NULL DEFAULT '0',
`srv_group` varchar(128) DEFAULT NULL,
`srv_flags` varchar(64) DEFAULT NULL,
`srv_password` varchar(128) DEFAULT NULL,
`lastvisit` int(11) DEFAULT NULL,
PRIMARY KEY (`aid`),
UNIQUE KEY `user` (`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_admins_servers_groups`;
CREATE TABLE `sb_admins_servers_groups` (
`admin_id` int(10) NOT NULL,
`group_id` int(10) NOT NULL,
`srv_group_id` int(10) NOT NULL,
`server_id` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_banlog`;
CREATE TABLE `sb_banlog` (
`sid` int(6) NOT NULL,
`time` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`bid` int(6) NOT NULL,
PRIMARY KEY (`sid`,`time`,`bid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_bans`;
CREATE TABLE `sb_bans` (
`bid` int(6) NOT NULL AUTO_INCREMENT,
`ip` varchar(32) DEFAULT NULL,
`authid` varchar(64) NOT NULL DEFAULT '',
`name` varchar(128) NOT NULL DEFAULT 'unnamed',
`created` int(11) NOT NULL DEFAULT '0',
`ends` int(11) NOT NULL DEFAULT '0',
`length` int(10) NOT NULL DEFAULT '0',
`reason` text NOT NULL,
`aid` int(6) NOT NULL DEFAULT '0',
`adminIp` varchar(32) NOT NULL DEFAULT '',
`sid` int(6) NOT NULL DEFAULT '0',
`country` varchar(4) DEFAULT NULL,
`RemovedBy` int(8) DEFAULT NULL,
`RemoveType` varchar(3) DEFAULT NULL,
`RemovedOn` int(10) DEFAULT NULL,
`type` tinyint(4) NOT NULL DEFAULT '0',
`ureason` text,
PRIMARY KEY (`bid`),
KEY `sid` (`sid`),
KEY `type_authid` (`type`,`authid`),
KEY `type_ip` (`type`,`ip`),
FULLTEXT KEY `reason` (`reason`),
FULLTEXT KEY `authid_2` (`authid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_comments`;
CREATE TABLE `sb_comments` (
`cid` int(6) NOT NULL AUTO_INCREMENT,
`bid` int(6) NOT NULL,
`type` varchar(1) NOT NULL,
`aid` int(6) NOT NULL,
`commenttxt` longtext NOT NULL,
`added` int(11) NOT NULL,
`editaid` int(6) DEFAULT NULL,
`edittime` int(11) DEFAULT NULL,
KEY `cid` (`cid`),
FULLTEXT KEY `commenttxt` (`commenttxt`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_comms`;
CREATE TABLE `sb_comms` (
`bid` int(6) NOT NULL AUTO_INCREMENT,
`authid` varchar(64) NOT NULL,
`name` varchar(128) NOT NULL DEFAULT 'unnamed',
`created` int(11) NOT NULL DEFAULT '0',
`ends` int(11) NOT NULL DEFAULT '0',
`length` int(10) NOT NULL DEFAULT '0',
`reason` text NOT NULL,
`aid` int(6) NOT NULL DEFAULT '0',
`adminIp` varchar(32) NOT NULL DEFAULT '',
`sid` int(6) NOT NULL DEFAULT '0',
`RemovedBy` int(8) DEFAULT NULL,
`RemoveType` varchar(3) DEFAULT NULL,
`RemovedOn` int(11) DEFAULT NULL,
`type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1 - Mute, 2 - Gag',
`ureason` text,
PRIMARY KEY (`bid`),
KEY `sid` (`sid`),
KEY `type` (`type`),
KEY `RemoveType` (`RemoveType`),
KEY `authid` (`authid`),
KEY `created` (`created`),
KEY `aid` (`aid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_demos`;
CREATE TABLE `sb_demos` (
`demid` int(6) NOT NULL,
`demtype` varchar(1) NOT NULL,
`filename` varchar(128) NOT NULL,
`origname` varchar(128) NOT NULL,
PRIMARY KEY (`demid`,`demtype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_groups`;
CREATE TABLE `sb_groups` (
`gid` int(6) NOT NULL AUTO_INCREMENT,
`type` smallint(6) NOT NULL DEFAULT '0',
`name` varchar(128) NOT NULL DEFAULT 'unnamed',
`flags` int(10) NOT NULL,
PRIMARY KEY (`gid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_log`;
CREATE TABLE `sb_log` (
`lid` int(11) NOT NULL AUTO_INCREMENT,
`type` enum('m','w','e') NOT NULL,
`title` varchar(512) NOT NULL,
`message` text NOT NULL,
`function` text NOT NULL,
`query` text NOT NULL,
`aid` int(11) NOT NULL,
`host` text NOT NULL,
`created` int(11) NOT NULL,
PRIMARY KEY (`lid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_login_tokens`;
CREATE TABLE `sb_login_tokens` (
`jti` varchar(16) NOT NULL,
`secret` varchar(64) NOT NULL,
`lastAccessed` int(11) NOT NULL,
PRIMARY KEY (`jti`),
UNIQUE KEY `secret` (`secret`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_mods`;
CREATE TABLE `sb_mods` (
`mid` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`icon` varchar(128) NOT NULL,
`modfolder` varchar(64) NOT NULL,
`steam_universe` tinyint(4) NOT NULL DEFAULT '0',
`enabled` tinyint(4) NOT NULL DEFAULT '1',
PRIMARY KEY (`mid`),
UNIQUE KEY `modfolder` (`modfolder`),
UNIQUE KEY `name` (`name`),
KEY `steam_universe` (`steam_universe`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_overrides`;
CREATE TABLE `sb_overrides` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` enum('command','group') NOT NULL,
`name` varchar(32) NOT NULL,
`flags` varchar(30) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `type` (`type`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_protests`;
CREATE TABLE `sb_protests` (
`pid` int(6) NOT NULL AUTO_INCREMENT,
`bid` int(6) NOT NULL,
`datesubmitted` int(11) NOT NULL,
`reason` text NOT NULL,
`email` varchar(128) NOT NULL,
`archiv` tinyint(1) DEFAULT '0',
`archivedby` int(11) DEFAULT NULL,
`pip` varchar(64) NOT NULL,
PRIMARY KEY (`pid`),
KEY `bid` (`bid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_servers`;
CREATE TABLE `sb_servers` (
`sid` int(6) NOT NULL AUTO_INCREMENT,
`ip` varchar(64) NOT NULL,
`port` int(5) NOT NULL,
`rcon` varchar(64) NOT NULL,
`modid` int(10) NOT NULL,
`enabled` tinyint(4) NOT NULL DEFAULT '1',
PRIMARY KEY (`sid`),
UNIQUE KEY `ip` (`ip`,`port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_servers_groups`;
CREATE TABLE `sb_servers_groups` (
`server_id` int(10) NOT NULL,
`group_id` int(10) NOT NULL,
PRIMARY KEY (`server_id`,`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_settings`;
CREATE TABLE `sb_settings` (
`setting` varchar(128) NOT NULL,
`value` text NOT NULL,
UNIQUE KEY `setting` (`setting`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_srvgroups`;
CREATE TABLE `sb_srvgroups` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`flags` varchar(30) NOT NULL,
`immunity` int(10) unsigned NOT NULL,
`name` varchar(120) NOT NULL,
`groups_immune` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_srvgroups_overrides`;
CREATE TABLE `sb_srvgroups_overrides` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` smallint(5) unsigned NOT NULL,
`type` enum('command','group') NOT NULL,
`name` varchar(32) NOT NULL,
`access` enum('allow','deny') NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`,`type`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `sb_submissions`;
CREATE TABLE `sb_submissions` (
`subid` int(6) NOT NULL AUTO_INCREMENT,
`submitted` int(11) NOT NULL,
`ModID` int(6) NOT NULL,
`SteamId` varchar(64) NOT NULL DEFAULT 'unnamed',
`name` varchar(128) NOT NULL,
`email` varchar(128) NOT NULL,
`reason` text NOT NULL,
`ip` varchar(64) NOT NULL,
`subname` varchar(128) DEFAULT NULL,
`sip` varchar(64) DEFAULT NULL,
`archiv` tinyint(1) DEFAULT '0',
`archivedby` int(11) DEFAULT NULL,
`server` tinyint(3) DEFAULT NULL,
PRIMARY KEY (`subid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- 2023-09-14 02:09:54