-
Notifications
You must be signed in to change notification settings - Fork 51
/
redemrp.sql
103 lines (83 loc) · 2.82 KB
/
redemrp.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
CREATE TABLE `characters` (
`id` int(11) NOT NULL,
`identifier` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
`characterid` int(11) DEFAULT 0,
`citizenid` varchar(10) COLLATE utf8mb4_bin NOT NULL,
`money` int(11) DEFAULT 0,
`bank` int(11) DEFAULT 0,
`job` varchar(50) COLLATE utf8mb4_bin DEFAULT 'unemployed',
`firstname` varchar(50) COLLATE utf8mb4_bin DEFAULT 'first',
`lastname` varchar(50) COLLATE utf8mb4_bin DEFAULT 'last',
`jobgrade` int(11) DEFAULT 0,
`gang` varchar(50) COLLATE utf8mb4_bin NOT NULL DEFAULT 'none',
`ganggrade` int(11) NOT NULL DEFAULT 0,
`coords` varchar(200) COLLATE utf8mb4_bin DEFAULT '{}',
`pobox` int(11) NOT NULL,
`jailed` int(11) NOT NULL DEFAULT 0,
`metadata` varchar(512) COLLATE utf8mb4_bin NOT NULL DEFAULT '''[]'''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
CREATE TABLE `clothes` (
`id` int(11) NOT NULL,
`identifier` varchar(40) NOT NULL,
`charid` int(11) NOT NULL,
`clothes` varchar(5000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `outfits` (
`id` int(11) NOT NULL,
`identifier` varchar(40) NOT NULL,
`charid` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`clothes` varchar(5000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `skins` (
`id` int(11) NOT NULL,
`identifier` varchar(40) NOT NULL,
`charid` int(11) NOT NULL,
`skin` varchar(5000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `stashes` (
`id` int(11) NOT NULL,
`stashid` text NOT NULL,
`items` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `user_inventory` (
`id` int(11) NOT NULL,
`identifier` varchar(50) COLLATE utf8mb4_bin NOT NULL,
`charid` int(11) NOT NULL,
`items` varchar(16000) COLLATE utf8mb4_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
CREATE TABLE `permissions` (
`id` int(11) NOT NULL,
`identifier` varchar(32) NOT NULL,
`permissiongroup` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE `permissions`
ADD PRIMARY KEY (`id`);
ALTER TABLE `permissions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
ALTER TABLE `characters`
ADD PRIMARY KEY (`id`);
ALTER TABLE `clothes`
ADD PRIMARY KEY (`id`);
ALTER TABLE `outfits`
ADD PRIMARY KEY (`id`);
ALTER TABLE `skins`
ADD PRIMARY KEY (`id`);
ALTER TABLE `stashes`
ADD PRIMARY KEY (`id`);
ALTER TABLE `user_inventory`
ADD PRIMARY KEY (`id`);
ALTER TABLE `characters`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `clothes`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `outfits`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `skins`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `stashes`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `user_inventory`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;