3 # Host: localhost Database: ring_ats
4 #--------------------------------------------------------
5 # Server version 4.0.24_Debian-10sarge1-log
11 # Table structure for table 'characters'
14 CREATE TABLE `characters` (
15 `char_id` int(10) unsigned NOT NULL default '0',
16 `char_name` varchar(20) NOT NULL default '',
17 `user_id` int(10) unsigned NOT NULL default '0',
18 `guild_id` int(10) unsigned NOT NULL default '0',
19 `best_combat_level` int(10) unsigned NOT NULL default '0',
20 `home_mainland_session_id` int(10) unsigned NOT NULL default '0',
21 PRIMARY KEY (`char_id`),
22 UNIQUE KEY `char_name_idx` (`char_name`),
23 KEY `user_id_idx` (`user_id`),
24 KEY `guild_id_idx` (`guild_id`)
25 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
30 # Table structure for table 'folder'
33 CREATE TABLE `folder` (
34 `Id` int(10) unsigned NOT NULL auto_increment,
35 `owner` int(10) unsigned NOT NULL default '0',
36 `title` varchar(40) NOT NULL default '',
37 `comments` text NOT NULL,
39 KEY `owner_idx` (`owner`),
40 KEY `title_idx` (`title`)
41 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
46 # Table structure for table 'folder_access'
49 CREATE TABLE `folder_access` (
50 `Id` int(10) unsigned NOT NULL auto_increment,
51 `folder_id` int(10) unsigned NOT NULL default '0',
52 `user_id` int(10) unsigned NOT NULL default '0',
54 KEY `folder_id_idx` (`folder_id`),
55 KEY `user_idx` (`user_id`)
56 ) TYPE=MyISAM ROW_FORMAT=FIXED;
61 # Table structure for table 'guild_invites'
64 CREATE TABLE `guild_invites` (
65 `Id` int(10) unsigned NOT NULL auto_increment,
66 `session_id` int(10) unsigned NOT NULL default '0',
67 `guild_id` int(10) unsigned NOT NULL default '0',
69 KEY `guild_id_idx` (`guild_id`),
70 KEY `session_id_idx` (`session_id`)
71 ) TYPE=MyISAM ROW_FORMAT=FIXED;
76 # Table structure for table 'guilds'
79 CREATE TABLE `guilds` (
80 `guild_id` int(10) unsigned NOT NULL default '0',
81 `guild_name` varchar(20) NOT NULL default '',
82 `shard_id` int(11) NOT NULL default '0',
83 PRIMARY KEY (`guild_id`),
84 UNIQUE KEY `huild_name_idx` (`guild_name`),
85 KEY `shard_id_idx` (`shard_id`)
86 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
91 # Table structure for table 'journal_entry'
94 CREATE TABLE `journal_entry` (
95 `Id` int(10) unsigned NOT NULL auto_increment,
96 `session_id` int(10) unsigned NOT NULL default '0',
97 `author` int(10) unsigned NOT NULL default '0',
98 `type` enum('jet_credits','jet_notes') NOT NULL default 'jet_notes',
100 `time_stamp` datetime NOT NULL default '2005-09-07 12:41:33',
102 KEY `session_id_idx` (`session_id`)
103 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
108 # Table structure for table 'known_users'
111 CREATE TABLE `known_users` (
112 `Id` int(10) unsigned NOT NULL auto_increment,
113 `owner` int(10) unsigned NOT NULL default '0',
114 `targer_user` int(10) unsigned NOT NULL default '0',
115 `targer_character` int(10) unsigned NOT NULL default '0',
116 `relation_type` enum('rt_friend','rt_banned','rt_friend_dm') NOT NULL default 'rt_friend',
117 `comments` varchar(255) NOT NULL default '',
119 KEY `user_index` (`owner`)
120 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
125 # Table structure for table 'mfs_erased_mail_series'
128 CREATE TABLE `mfs_erased_mail_series` (
129 `erased_char_id` int(11) unsigned NOT NULL default '0',
130 `erased_char_name` varchar(32) NOT NULL default '',
131 `erased_series` int(11) unsigned NOT NULL auto_increment,
132 `erase_date` datetime NOT NULL default '0000-00-00 00:00:00',
133 PRIMARY KEY (`erased_series`)
134 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
139 # Table structure for table 'mfs_guild_thread'
142 CREATE TABLE `mfs_guild_thread` (
143 `thread_id` int(11) NOT NULL auto_increment,
144 `guild_id` int(11) unsigned NOT NULL default '0',
145 `topic` varchar(255) NOT NULL default '',
146 `author_name` varchar(32) NOT NULL default '',
147 `last_post_date` datetime NOT NULL default '0000-00-00 00:00:00',
148 `post_count` int(11) unsigned NOT NULL default '0',
149 PRIMARY KEY (`thread_id`),
150 KEY `guild_index` (`guild_id`)
151 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
156 # Table structure for table 'mfs_guild_thread_message'
159 CREATE TABLE `mfs_guild_thread_message` (
160 `id` int(11) NOT NULL auto_increment,
161 `thread_id` int(11) unsigned NOT NULL default '0',
162 `author_name` varchar(32) NOT NULL default '',
163 `date` datetime NOT NULL default '0000-00-00 00:00:00',
164 `content` text NOT NULL,
166 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
171 # Table structure for table 'mfs_mail'
174 CREATE TABLE `mfs_mail` (
175 `id` int(11) NOT NULL auto_increment,
176 `sender_name` varchar(32) NOT NULL default '',
177 `subject` varchar(250) NOT NULL default '',
178 `date` datetime NOT NULL default '0000-00-00 00:00:00',
179 `status` enum('ms_new','ms_read','ms_erased') NOT NULL default 'ms_new',
180 `dest_char_id` int(11) unsigned NOT NULL default '0',
181 `erase_series` int(11) unsigned NOT NULL default '0',
182 `content` text NOT NULL,
184 KEY `dest_index` (`dest_char_id`)
185 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
190 # Table structure for table 'player_rating'
193 CREATE TABLE `player_rating` (
194 `Id` int(10) unsigned NOT NULL auto_increment,
195 `session_id` int(10) unsigned NOT NULL default '0',
196 `author` int(10) unsigned NOT NULL default '0',
197 `rating` int(10) NOT NULL default '0',
198 `comments` text NOT NULL,
199 `time_stamp` datetime NOT NULL default '2005-09-07 12:41:33',
201 KEY `session_id_idx` (`session_id`),
202 KEY `author_idx` (`author`)
203 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
208 # Table structure for table 'ring_users'
211 CREATE TABLE `ring_users` (
212 `user_id` int(10) unsigned NOT NULL default '0',
213 `user_name` varchar(20) NOT NULL default '',
214 `user_type` enum('ut_character','ut_pioneer') NOT NULL default 'ut_character',
215 `current_session` int(10) unsigned NOT NULL default '0',
216 `current_activity` enum('ca_none','ca_play','ca_edit','ca_anim') NOT NULL default 'ca_none',
217 `current_status` enum('cs_offline','cs_logged','cs_online') NOT NULL default 'cs_offline',
218 `public_level` enum('pl_none','pl_public') NOT NULL default 'pl_none',
219 `account_type` enum('at_normal','at_gold') NOT NULL default 'at_normal',
220 `content_access_level` varchar(20) NOT NULL default '',
221 `description` text NOT NULL,
222 `lang` enum('lang_en','lang_fr','lang_de') NOT NULL default 'lang_en',
223 `cookie` varchar(30) NOT NULL default '',
224 `current_domain_id` int(10) NOT NULL default '-1',
225 `pioneer_char_id` int(11) unsigned NOT NULL default '0',
226 PRIMARY KEY (`user_id`),
227 UNIQUE KEY `user_name_idx` (`user_name`),
228 KEY `cookie_idx` (`cookie`)
229 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
234 # Table structure for table 'scenario_desc'
237 CREATE TABLE `scenario_desc` (
238 `session_id` int(10) unsigned NOT NULL default '0',
239 `parent_scenario` int(10) unsigned NOT NULL default '0',
240 `description` text NOT NULL,
241 `relation_to_parent` enum('rtp_same','rtp_variant','rtp_different') NOT NULL default 'rtp_same',
242 `title` varchar(40) NOT NULL default '',
243 `num_player` int(10) unsigned NOT NULL default '0',
244 `content_access_level` varchar(20) NOT NULL default '',
245 PRIMARY KEY (`session_id`),
246 UNIQUE KEY `title_idx` (`title`),
247 KEY `parent_idx` (`parent_scenario`)
248 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
253 # Table structure for table 'session_participant'
256 CREATE TABLE `session_participant` (
257 `Id` int(10) unsigned NOT NULL auto_increment,
258 `session_id` int(10) unsigned NOT NULL default '0',
259 `char_id` int(10) unsigned NOT NULL default '0',
260 `status` enum('sps_play_subscribed','sps_play_invited','sps_edit_invited','sps_anim_invited','sps_playing','sps_editing','sps_animating') NOT NULL default 'sps_play_subscribed',
261 `kicked` tinyint(1) unsigned NOT NULL default '0',
262 `session_rated` tinyint(1) unsigned NOT NULL default '0',
264 KEY `session_idx` (`session_id`),
265 KEY `user_idx` (`char_id`)
266 ) TYPE=MyISAM ROW_FORMAT=FIXED;
271 # Table structure for table 'sessions'
274 CREATE TABLE `sessions` (
275 `session_id` int(10) unsigned NOT NULL auto_increment,
276 `session_type` enum('st_edit','st_anim','st_outland','st_mainland') NOT NULL default 'st_edit',
277 `title` varchar(40) NOT NULL default '',
278 `owner` int(10) unsigned NOT NULL default '0',
279 `plan_date` datetime NOT NULL default '2005-09-21 12:41:33',
280 `start_date` datetime NOT NULL default '2005-08-31 00:00:00',
281 `description` text NOT NULL,
282 `orientation` enum('so_newbie_training','so_story_telling','so_mistery','so_hack_slash','so_guild_training','so_other') NOT NULL default 'so_other',
283 `level` enum('sl_a','sl_b','sl_c','sl_d','sl_e') NOT NULL default 'sl_a',
284 `rule_type` enum('rt_strict','rt_liberal') NOT NULL default 'rt_strict',
285 `access_type` enum('at_public','at_private') NOT NULL default 'at_public',
286 `state` enum('ss_planned','ss_open','ss_locked','ss_closed') NOT NULL default 'ss_planned',
287 `host_shard_id` int(11) NOT NULL default '0',
288 `subscription_slots` int(11) unsigned NOT NULL default '0',
289 `reserved_slots` int(10) unsigned NOT NULL default '0',
290 `free_slots` int(10) unsigned NOT NULL default '0',
291 `estimated_duration` enum('et_short','et_medium','et_long') NOT NULL default 'et_short',
292 `final_duration` int(10) unsigned NOT NULL default '0',
293 `folder_id` int(10) unsigned NOT NULL default '0',
294 `lang` enum('lang_en','lang_fr','lang_de') NOT NULL default 'lang_en',
295 `icone` varchar(70) NOT NULL default '',
296 PRIMARY KEY (`session_id`),
297 KEY `owner_idx` (`owner`),
298 KEY `folder_idx` (`folder_id`)
299 ) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
304 # Table structure for table 'shard'
307 CREATE TABLE `shard` (
308 `shard_id` int(11) NOT NULL default '0',
309 PRIMARY KEY (`shard_id`)
310 ) TYPE=MyISAM ROW_FORMAT=FIXED;