-
Notifications
You must be signed in to change notification settings - Fork 0
/
SQLQuery2.sql
56 lines (52 loc) · 1.16 KB
/
SQLQuery2.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
USE rotmgprod;
CREATE TABLE arenalb (
id INT NOT NULL,
wave INT NOT NULL,
accid INT NOT NULL,
charid INT NOT NULL,
petid INT NOT NULL,
time VARCHAR(256) NOT NULL,
date datetime NOT NULL,
PRIMARY KEY(id, wave)
)
CREATE TABLE backpacks (
accId INT NOT NULL,
charId INT NOT NULL,
items VARCHAR(128) NOT NULL,
PRIMARY KEY(accId, charId)
)
CREATE TABLE boards (
guildId INT NOT NULL,
text VARCHAR(1024) NOT NULL,
PRIMARY KEY(guildId)
)
CREATE TABLE characters (
id INT NOT NULL,
accId INT NOT NULL,
charId INT NOT NULL,
charType INT NOT NULL,
level INT NOT NULL,
exp INT NOT NULL,
fame INT NOT NULL,
items VARCHAR(128) NOT NULL,
hpPotions INT NOT NULL,
mpPotions INT NOT NULL,
hp INT NOT NULL,
mp INT NOT NULL,
stats VARCHAR(128) NOT NULL,
dead TINYINT NOT NULL,
tex1 INT NOT NULL,
tex2 INT NOT NULL,
hasBackpack INT NOT NULL,
skin INT NOT NULL,
xpBoosterTime INT NOT NULL,
ldTimer INT NOT NULL,
ltTimer INT NOT NULL,
fameStats VARCHAR(512) NOT NULL,
createTime timestamp NOT NULL,
deathTime datetime NOT NULL,
totalFame INT NOT NULL,
lastSeen datetime NOT NULL,
lastLocation VARCHAR(128) NOT NULL,
pRIMARY KEY(id, accId, dead)
)