forked from uakfdotb/ghostpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mysql_create_tables_experimental.sql
149 lines (140 loc) · 4.17 KB
/
mysql_create_tables_experimental.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
CREATE TABLE admins (
id int(11) NOT NULL auto_increment,
botid int(11) NOT NULL,
`name` varchar(15) NOT NULL,
server varchar(100) NOT NULL,
PRIMARY KEY (id),
KEY server (server)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE bans (
id int(11) NOT NULL auto_increment,
botid int(11) NOT NULL,
server varchar(100) NOT NULL,
`name` varchar(15) NOT NULL,
ip varchar(15) NOT NULL,
`date` datetime NOT NULL,
gamename varchar(31) NOT NULL,
admin varchar(15) NOT NULL,
reason varchar(255) NOT NULL,
PRIMARY KEY (id),
KEY server (server),
KEY server_2 (server,`name`),
KEY server_3 (server,`name`,ip)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE dotagames (
id int(11) NOT NULL auto_increment,
botid int(11) NOT NULL,
gameid int(11) NOT NULL,
winner int(11) NOT NULL,
min int(11) NOT NULL,
sec int(11) NOT NULL,
PRIMARY KEY (id),
KEY gameid (gameid),
KEY winner (winner)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE dotaplayers (
id int(11) NOT NULL auto_increment,
botid int(11) NOT NULL,
gameid int(11) NOT NULL,
colour int(11) NOT NULL,
kills int(11) NOT NULL,
deaths int(11) NOT NULL,
creepkills int(11) NOT NULL,
creepdenies int(11) NOT NULL,
assists int(11) NOT NULL,
gold int(11) NOT NULL,
neutralkills int(11) NOT NULL,
item1 char(4) NOT NULL,
item2 char(4) NOT NULL,
item3 char(4) NOT NULL,
item4 char(4) NOT NULL,
item5 char(4) NOT NULL,
item6 char(4) NOT NULL,
hero char(4) NOT NULL,
newcolour int(11) NOT NULL,
towerkills int(11) NOT NULL,
raxkills int(11) NOT NULL,
courierkills int(11) NOT NULL,
PRIMARY KEY (id),
KEY gameid (gameid,colour),
KEY colour (colour),
KEY newcolour (newcolour)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE downloads (
id int(11) NOT NULL auto_increment,
botid int(11) NOT NULL,
map varchar(100) NOT NULL,
mapsize int(11) NOT NULL,
`datetime` datetime NOT NULL,
`name` varchar(15) NOT NULL,
ip varchar(15) NOT NULL,
spoofed int(11) NOT NULL,
spoofedrealm varchar(100) NOT NULL,
downloadtime int(11) NOT NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE gameplayers (
id int(11) NOT NULL auto_increment,
botid int(11) NOT NULL,
gameid int(11) NOT NULL,
`name` varchar(15) NOT NULL,
ip varchar(15) NOT NULL,
spoofed int(11) NOT NULL,
reserved int(11) NOT NULL,
loadingtime int(11) NOT NULL,
`left` int(11) NOT NULL,
leftreason varchar(100) NOT NULL,
team int(11) NOT NULL,
colour int(11) NOT NULL,
spoofedrealm varchar(100) NOT NULL,
PRIMARY KEY (id),
KEY gameid (gameid),
KEY `name` (`name`),
KEY colour (colour)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE games (
id int(11) NOT NULL auto_increment,
botid int(11) NOT NULL,
server varchar(100) NOT NULL,
map varchar(100) NOT NULL,
`datetime` datetime NOT NULL,
gamename varchar(31) NOT NULL,
ownername varchar(15) NOT NULL,
duration int(11) NOT NULL,
gamestate int(11) NOT NULL,
creatorname varchar(15) NOT NULL,
creatorserver varchar(100) NOT NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE scores (
id int(11) NOT NULL auto_increment,
category varchar(25) NOT NULL,
`name` varchar(15) NOT NULL,
server varchar(100) NOT NULL,
score double NOT NULL,
PRIMARY KEY (id),
KEY category (category,`name`,server)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE w3mmdplayers (
id int(11) NOT NULL auto_increment,
botid int(11) NOT NULL,
category varchar(25) NOT NULL,
gameid int(11) NOT NULL,
pid int(11) NOT NULL,
`name` varchar(15) NOT NULL,
flag varchar(32) NOT NULL,
leaver int(11) NOT NULL,
practicing int(11) NOT NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE w3mmdvars (
id int(11) NOT NULL auto_increment,
botid int(11) NOT NULL,
gameid int(11) NOT NULL,
pid int(11) NOT NULL,
varname varchar(25) NOT NULL,
value_int int(11) default NULL,
value_real double default NULL,
value_string varchar(100) default NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;