-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathexile.sql
210 lines (189 loc) · 7.69 KB
/
exile.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
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.6.26-log - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 9.2.0.4970
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping structure for table exile.account
CREATE TABLE IF NOT EXISTS `account` (
`uid` varchar(32) NOT NULL,
`clan_id` int(11) unsigned DEFAULT NULL,
`name` varchar(64) NOT NULL,
`money` double NOT NULL DEFAULT '0',
`score` int(11) NOT NULL DEFAULT '0',
`kills` int(11) unsigned NOT NULL DEFAULT '0',
`deaths` int(11) unsigned NOT NULL DEFAULT '0',
`first_connect_at` datetime DEFAULT NULL,
`last_connect_at` datetime DEFAULT NULL,
`last_disconnect_at` datetime DEFAULT NULL,
`total_connections` int(11) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`uid`),
KEY `clan_id` (`clan_id`),
CONSTRAINT `account_ibfk_1` FOREIGN KEY (`clan_id`) REFERENCES `clan` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table exile.clan
CREATE TABLE IF NOT EXISTS `clan` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
`leader_uid` varchar(32) NOT NULL,
`created_at` datetime NOT NULL,
`insignia_texture` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `leader_uid` (`leader_uid`),
CONSTRAINT `clan_ibfk_1` FOREIGN KEY (`leader_uid`) REFERENCES `account` (`uid`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table exile.construction
CREATE TABLE IF NOT EXISTS `construction` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`class` varchar(64) NOT NULL,
`account_uid` varchar(32) NOT NULL,
`spawned_at` datetime NOT NULL,
`maintained_at` datetime DEFAULT NULL,
`position_x` double NOT NULL,
`position_y` double NOT NULL,
`position_z` double NOT NULL,
`direction_x` double NOT NULL,
`direction_y` double NOT NULL,
`direction_z` double NOT NULL,
`up_x` double NOT NULL,
`up_y` double NOT NULL,
`up_z` double NOT NULL,
`is_locked` tinyint(1) NOT NULL,
`pin_code` varchar(6) NOT NULL DEFAULT '000000',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table exile.container
CREATE TABLE IF NOT EXISTS `container` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`class` varchar(64) NOT NULL,
`spawned_at` datetime NOT NULL,
`account_uid` varchar(32) DEFAULT NULL,
`last_accessed` datetime NOT NULL,
`is_locked` tinyint(1) NOT NULL DEFAULT '0',
`position_x` double NOT NULL DEFAULT '0',
`position_y` double NOT NULL DEFAULT '0',
`position_z` double NOT NULL DEFAULT '0',
`direction_x` double NOT NULL DEFAULT '0',
`direction_y` double NOT NULL DEFAULT '0',
`direction_z` double NOT NULL DEFAULT '0',
`up_x` double NOT NULL DEFAULT '0',
`up_y` double NOT NULL DEFAULT '0',
`up_z` double NOT NULL DEFAULT '1',
`cargo_items` text NOT NULL,
`cargo_magazines` text NOT NULL,
`cargo_weapons` text NOT NULL,
`cargo_container` text NOT NULL,
`pin_code` varchar(6) NOT NULL DEFAULT '000000',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- Data exporting was unselected.
-- Dumping structure for table exile.player
CREATE TABLE IF NOT EXISTS `player` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
`account_uid` varchar(32) NOT NULL,
`is_alive` tinyint(1) NOT NULL DEFAULT '1',
`damage` double unsigned NOT NULL DEFAULT '0',
`fatigue` double unsigned NOT NULL DEFAULT '0',
`hunger` double unsigned NOT NULL DEFAULT '100',
`thirst` double unsigned NOT NULL DEFAULT '100',
`alcohol` double unsigned NOT NULL DEFAULT '0',
`oxygen_remaining` double unsigned NOT NULL DEFAULT '1',
`bleeding_remaining` double unsigned NOT NULL DEFAULT '0',
`hitpoint_head` double unsigned NOT NULL,
`hitpoint_body` double unsigned NOT NULL DEFAULT '0',
`hitpoint_hands` double unsigned NOT NULL DEFAULT '0',
`hitpoint_legs` double unsigned NOT NULL DEFAULT '0',
`direction` double NOT NULL DEFAULT '0',
`position_x` double NOT NULL DEFAULT '0',
`position_y` double NOT NULL DEFAULT '0',
`position_z` double NOT NULL DEFAULT '0',
`spawned_at` datetime NOT NULL,
`died_at` datetime DEFAULT NULL,
`assigned_items` text NOT NULL,
`backpack` varchar(64) NOT NULL,
`backpack_items` text NOT NULL,
`backpack_magazines` text NOT NULL,
`backpack_weapons` text NOT NULL,
`current_weapon` varchar(64) NOT NULL,
`goggles` varchar(64) NOT NULL,
`handgun_items` varchar(255) NOT NULL,
`handgun_weapon` varchar(64) NOT NULL,
`headgear` varchar(64) NOT NULL,
`binocular` varchar(64) NOT NULL,
`loaded_magazines` varchar(255) NOT NULL,
`primary_weapon` varchar(64) NOT NULL,
`primary_weapon_items` varchar(255) NOT NULL,
`secondary_weapon` varchar(64) NOT NULL,
`secondary_weapon_items` varchar(255) NOT NULL,
`uniform` varchar(64) NOT NULL,
`uniform_items` text NOT NULL,
`uniform_magazines` text NOT NULL,
`uniform_weapons` text NOT NULL,
`vest` varchar(64) NOT NULL,
`vest_items` text NOT NULL,
`vest_magazines` text NOT NULL,
`vest_weapons` text NOT NULL,
PRIMARY KEY (`id`),
KEY `player_uid` (`account_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table exile.territory
CREATE TABLE IF NOT EXISTS `territory` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`owner_uid` varchar(32) NOT NULL,
`name` varchar(64) NOT NULL,
`position_x` double NOT NULL,
`position_y` double NOT NULL,
`position_z` double NOT NULL,
`radius` double NOT NULL,
`level` int(11) NOT NULL,
`flag_texture` varchar(255) NOT NULL,
`flag_stolen` tinyint(1) NOT NULL DEFAULT '0',
`flag_stolen_by_uid` varchar(32) DEFAULT NULL,
`flag_stolen_at` datetime DEFAULT NULL,
`flag_steal_message` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`last_payed_at` datetime DEFAULT NULL,
`build_rights` varchar(640) NOT NULL DEFAULT '0',
`moderators` varchar(320) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table exile.vehicle
CREATE TABLE IF NOT EXISTS `vehicle` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`class` varchar(64) NOT NULL,
`spawned_at` datetime NOT NULL,
`account_uid` varchar(32) DEFAULT NULL,
`is_locked` tinyint(1) NOT NULL DEFAULT '0',
`fuel` double unsigned NOT NULL DEFAULT '0',
`damage` double unsigned NOT NULL DEFAULT '0',
`hitpoints` text NOT NULL,
`position_x` double NOT NULL DEFAULT '0',
`position_y` double NOT NULL DEFAULT '0',
`position_z` double NOT NULL DEFAULT '0',
`direction_x` double NOT NULL DEFAULT '0',
`direction_y` double NOT NULL DEFAULT '0',
`direction_z` double NOT NULL DEFAULT '0',
`up_x` double NOT NULL DEFAULT '0',
`up_y` double NOT NULL DEFAULT '0',
`up_z` double NOT NULL DEFAULT '1',
`cargo_items` text NOT NULL,
`cargo_magazines` text NOT NULL,
`cargo_weapons` text NOT NULL,
`cargo_container` text NOT NULL,
`pin_code` varchar(6) NOT NULL DEFAULT '000000',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;