forked from Stannnnn/ghostpp
-
Notifications
You must be signed in to change notification settings - Fork 3
/
mysql_create_tables_v2.sql
128 lines (119 loc) · 3.08 KB
/
mysql_create_tables_v2.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
CREATE TABLE admins (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
name VARCHAR(15) NOT NULL,
server VARCHAR(100) NOT NULL
);
CREATE TABLE bans (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT 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
);
CREATE TABLE games (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT 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 NOT NULL,
gamestate INT NOT NULL,
creatorname VARCHAR(15) NOT NULL,
creatorserver VARCHAR(100) NOT NULL
);
CREATE TABLE gameplayers (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
gameid INT NOT NULL,
name VARCHAR(15) NOT NULL,
ip VARCHAR(15) NOT NULL,
spoofed INT NOT NULL,
reserved INT NOT NULL,
loadingtime INT NOT NULL,
`left` INT NOT NULL,
leftreason VARCHAR(100) NOT NULL,
team INT NOT NULL,
colour INT NOT NULL,
spoofedrealm VARCHAR(100) NOT NULL,
INDEX( gameid )
);
CREATE TABLE dotagames (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
gameid INT NOT NULL,
winner INT NOT NULL,
min INT NOT NULL,
sec INT NOT NULL
);
CREATE TABLE dotaplayers (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
gameid INT NOT NULL,
colour INT NOT NULL,
kills INT NOT NULL,
deaths INT NOT NULL,
creepkills INT NOT NULL,
creepdenies INT NOT NULL,
assists INT NOT NULL,
gold INT NOT NULL,
neutralkills INT 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 NOT NULL,
towerkills INT NOT NULL,
raxkills INT NOT NULL,
courierkills INT NOT NULL,
INDEX( gameid, colour )
);
CREATE TABLE downloads (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
map VARCHAR(100) NOT NULL,
mapsize INT NOT NULL,
datetime DATETIME NOT NULL,
name VARCHAR(15) NOT NULL,
ip VARCHAR(15) NOT NULL,
spoofed INT NOT NULL,
spoofedrealm VARCHAR(100) NOT NULL,
downloadtime INT NOT NULL
);
CREATE TABLE scores (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
category VARCHAR(25) NOT NULL,
name VARCHAR(15) NOT NULL,
server VARCHAR(100) NOT NULL,
score REAL NOT NULL
);
CREATE TABLE w3mmdplayers (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
category VARCHAR(25) NOT NULL,
gameid INT NOT NULL,
pid INT NOT NULL,
name VARCHAR(15) NOT NULL,
flag VARCHAR(32) NOT NULL,
leaver INT NOT NULL,
practicing INT NOT NULL
);
CREATE TABLE w3mmdvars (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
gameid INT NOT NULL,
pid INT NOT NULL,
varname VARCHAR(25) NOT NULL,
value_int INT DEFAULT NULL,
value_real REAL DEFAULT NULL,
value_string VARCHAR(100) DEFAULT NULL
);