2 -- version 3.4.10.1deb1
3 -- http://www.phpmyadmin.net
6 -- Generation Time: Jul 14, 2014 at 10:07 AM
7 -- Server version: 5.5.37
8 -- PHP Version: 5.3.10-1ubuntu3.11
10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
11 SET time_zone = "+00:00";
14 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 /*!40101 SET NAMES utf8mb4 */;
20 -- Database: `ring_mini01`
23 -- --------------------------------------------------------
26 -- Table structure for table `characters`
29 CREATE TABLE IF NOT EXISTS `characters` (
30 `char_id` int(10) unsigned NOT NULL DEFAULT '0',
31 `char_name` varchar(20) NOT NULL DEFAULT '',
32 `user_id` int(10) unsigned NOT NULL DEFAULT '0',
33 `guild_id` int(10) unsigned NOT NULL DEFAULT '0',
34 `best_combat_level` int(10) unsigned NOT NULL DEFAULT '0',
35 `home_mainland_session_id` int(10) unsigned NOT NULL DEFAULT '0',
36 `ring_access` varchar(63) NOT NULL DEFAULT '',
37 `race` enum('r_fyros','r_matis','r_tryker','r_zorai') NOT NULL DEFAULT 'r_fyros',
38 `civilisation` enum('c_neutral','c_fyros','c_fyros','c_matis','c_tryker','c_zorai') NOT NULL DEFAULT 'c_neutral',
39 `cult` enum('c_neutral','c_kami','c_karavan') NOT NULL DEFAULT 'c_neutral',
40 `current_session` int(11) unsigned NOT NULL DEFAULT '0',
41 `rrp_am` int(11) unsigned NOT NULL DEFAULT '0',
42 `rrp_masterless` int(11) unsigned NOT NULL DEFAULT '0',
43 `rrp_author` int(11) unsigned NOT NULL DEFAULT '0',
44 `newcomer` tinyint(1) NOT NULL DEFAULT '1',
45 `creation_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
46 `last_played_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
47 PRIMARY KEY (`char_id`),
48 UNIQUE KEY `char_name_idx` (`char_name`,`home_mainland_session_id`),
49 KEY `user_id_idx` (`user_id`),
50 KEY `guild_idx` (`guild_id`),
51 KEY `guild_id_idx` (`guild_id`)
52 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
54 -- --------------------------------------------------------
57 -- Table structure for table `folder`
60 CREATE TABLE IF NOT EXISTS `folder` (
61 `Id` int(10) unsigned NOT NULL AUTO_INCREMENT,
62 `owner` int(10) unsigned NOT NULL DEFAULT '0',
63 `title` varchar(40) NOT NULL DEFAULT '',
64 `comments` text NOT NULL,
66 KEY `owner_idx` (`owner`),
67 KEY `title_idx` (`title`)
68 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
70 -- --------------------------------------------------------
73 -- Table structure for table `folder_access`
76 CREATE TABLE IF NOT EXISTS `folder_access` (
77 `Id` int(10) unsigned NOT NULL AUTO_INCREMENT,
78 `folder_id` int(10) unsigned NOT NULL DEFAULT '0',
79 `user_id` int(10) unsigned NOT NULL DEFAULT '0',
81 KEY `folder_id_idx` (`folder_id`),
82 KEY `user_idx` (`user_id`)
83 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=FIXED AUTO_INCREMENT=1 ;
85 -- --------------------------------------------------------
88 -- Table structure for table `guilds`
91 CREATE TABLE IF NOT EXISTS `guilds` (
92 `guild_id` int(10) unsigned NOT NULL DEFAULT '0',
93 `guild_name` varchar(50) NOT NULL DEFAULT '',
94 `shard_id` int(11) NOT NULL DEFAULT '0',
95 PRIMARY KEY (`guild_id`),
96 KEY `shard_id_idx` (`shard_id`),
97 KEY `guild_name_idx` (`guild_name`)
98 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
100 -- --------------------------------------------------------
103 -- Table structure for table `guild_invites`
106 CREATE TABLE IF NOT EXISTS `guild_invites` (
107 `Id` int(10) unsigned NOT NULL AUTO_INCREMENT,
108 `session_id` int(10) unsigned NOT NULL DEFAULT '0',
109 `guild_id` int(10) unsigned NOT NULL DEFAULT '0',
111 KEY `guild_id_idx` (`guild_id`),
112 KEY `session_id_idx` (`session_id`)
113 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=FIXED AUTO_INCREMENT=1 ;
115 -- --------------------------------------------------------
118 -- Table structure for table `journal_entry`
121 CREATE TABLE IF NOT EXISTS `journal_entry` (
122 `Id` int(10) unsigned NOT NULL AUTO_INCREMENT,
123 `session_id` int(10) unsigned NOT NULL DEFAULT '0',
124 `author` int(10) unsigned NOT NULL DEFAULT '0',
125 `type` enum('jet_credits','jet_notes') NOT NULL DEFAULT 'jet_notes',
126 `text` text NOT NULL,
127 `time_stamp` datetime NOT NULL DEFAULT '2005-09-07 12:41:33',
129 KEY `session_id_idx` (`session_id`)
130 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
132 -- --------------------------------------------------------
135 -- Table structure for table `known_users`
138 CREATE TABLE IF NOT EXISTS `known_users` (
139 `Id` int(10) unsigned NOT NULL AUTO_INCREMENT,
140 `owner` int(10) unsigned NOT NULL DEFAULT '0',
141 `targer_user` int(10) unsigned NOT NULL DEFAULT '0',
142 `targer_character` int(10) unsigned NOT NULL DEFAULT '0',
143 `relation_type` enum('rt_friend','rt_banned','rt_friend_dm') NOT NULL DEFAULT 'rt_friend',
144 `comments` varchar(255) NOT NULL DEFAULT '',
146 KEY `user_index` (`owner`)
147 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
149 -- --------------------------------------------------------
152 -- Table structure for table `mfs_erased_mail_series`
155 CREATE TABLE IF NOT EXISTS `mfs_erased_mail_series` (
156 `erased_char_id` int(11) unsigned NOT NULL DEFAULT '0',
157 `erased_char_name` varchar(32) NOT NULL DEFAULT '',
158 `erased_series` int(11) unsigned NOT NULL AUTO_INCREMENT,
159 `erase_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
160 PRIMARY KEY (`erased_series`)
161 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
163 -- --------------------------------------------------------
166 -- Table structure for table `mfs_guild_thread`
169 CREATE TABLE IF NOT EXISTS `mfs_guild_thread` (
170 `thread_id` int(11) NOT NULL AUTO_INCREMENT,
171 `guild_id` int(11) unsigned NOT NULL DEFAULT '0',
172 `topic` varchar(255) NOT NULL DEFAULT '',
173 `author_name` varchar(32) NOT NULL DEFAULT '',
174 `last_post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
175 `post_count` int(11) unsigned NOT NULL DEFAULT '0',
176 PRIMARY KEY (`thread_id`),
177 KEY `guild_index` (`guild_id`)
178 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
180 -- --------------------------------------------------------
183 -- Table structure for table `mfs_guild_thread_message`
186 CREATE TABLE IF NOT EXISTS `mfs_guild_thread_message` (
187 `id` int(11) NOT NULL AUTO_INCREMENT,
188 `thread_id` int(11) unsigned NOT NULL DEFAULT '0',
189 `author_name` varchar(32) NOT NULL DEFAULT '',
190 `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
191 `content` text NOT NULL,
193 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
195 -- --------------------------------------------------------
198 -- Table structure for table `mfs_mail`
201 CREATE TABLE IF NOT EXISTS `mfs_mail` (
202 `id` int(11) NOT NULL AUTO_INCREMENT,
203 `sender_name` varchar(32) NOT NULL DEFAULT '',
204 `subject` varchar(250) NOT NULL DEFAULT '',
205 `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
206 `status` enum('ms_new','ms_read','ms_erased') NOT NULL DEFAULT 'ms_new',
207 `dest_char_id` int(11) unsigned NOT NULL DEFAULT '0',
208 `erase_series` int(11) unsigned NOT NULL DEFAULT '0',
209 `content` text NOT NULL,
211 KEY `dest_index` (`dest_char_id`)
212 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
214 -- --------------------------------------------------------
217 -- Table structure for table `outlands`
220 CREATE TABLE IF NOT EXISTS `outlands` (
221 `session_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
222 `island_name` text NOT NULL,
223 `billing_instance_id` int(11) unsigned NOT NULL DEFAULT '0',
224 `anim_session_id` int(11) unsigned NOT NULL DEFAULT '0',
225 PRIMARY KEY (`session_id`)
226 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
228 -- --------------------------------------------------------
231 -- Table structure for table `player_rating`
234 CREATE TABLE IF NOT EXISTS `player_rating` (
235 `Id` int(10) unsigned NOT NULL AUTO_INCREMENT,
236 `scenario_id` int(10) unsigned NOT NULL DEFAULT '0',
237 `session_id` int(10) unsigned NOT NULL DEFAULT '0',
238 `rate_fun` tinyint(3) unsigned NOT NULL DEFAULT '0',
239 `rate_difficulty` tinyint(3) unsigned NOT NULL DEFAULT '0',
240 `rate_accessibility` tinyint(3) unsigned NOT NULL DEFAULT '0',
241 `rate_originality` tinyint(3) unsigned NOT NULL DEFAULT '0',
242 `rate_direction` tinyint(3) unsigned NOT NULL DEFAULT '0',
243 `author` int(10) unsigned NOT NULL DEFAULT '0',
244 `rating` int(10) NOT NULL DEFAULT '0',
245 `comments` text NOT NULL,
246 `time_stamp` datetime NOT NULL DEFAULT '2005-09-07 12:41:33',
248 KEY `session_id_idx` (`scenario_id`),
249 KEY `author_idx` (`author`)
250 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
252 -- --------------------------------------------------------
255 -- Table structure for table `ring_users`
258 CREATE TABLE IF NOT EXISTS `ring_users` (
259 `user_id` int(10) unsigned NOT NULL DEFAULT '0',
260 `user_name` varchar(20) NOT NULL DEFAULT '',
261 `user_type` enum('ut_character','ut_pioneer') NOT NULL DEFAULT 'ut_character',
262 `current_session` int(10) unsigned NOT NULL DEFAULT '0',
263 `current_activity` enum('ca_none','ca_play','ca_edit','ca_anim') NOT NULL DEFAULT 'ca_none',
264 `current_status` enum('cs_offline','cs_logged','cs_online') NOT NULL DEFAULT 'cs_offline',
265 `public_level` enum('pl_none','pl_public') NOT NULL DEFAULT 'pl_none',
266 `account_type` enum('at_normal','at_gold') NOT NULL DEFAULT 'at_normal',
267 `content_access_level` varchar(20) NOT NULL DEFAULT '',
268 `description` text NOT NULL,
269 `lang` enum('lang_en','lang_fr','lang_de') NOT NULL DEFAULT 'lang_en',
270 `cookie` varchar(30) NOT NULL DEFAULT '',
271 `current_domain_id` int(10) NOT NULL DEFAULT '-1',
272 `pioneer_char_id` int(11) unsigned NOT NULL DEFAULT '0',
273 `current_char` int(11) NOT NULL DEFAULT '0',
274 `add_privileges` varchar(64) NOT NULL DEFAULT '',
275 PRIMARY KEY (`user_id`),
276 UNIQUE KEY `user_name_idx` (`user_name`),
277 KEY `cookie_idx` (`cookie`),
278 KEY `current_session_idx` (`current_session`)
279 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
281 -- --------------------------------------------------------
284 -- Table structure for table `scenario`
287 CREATE TABLE IF NOT EXISTS `scenario` (
288 `id` int(11) NOT NULL AUTO_INCREMENT,
289 `md5` varchar(64) NOT NULL DEFAULT '',
290 `title` varchar(32) NOT NULL DEFAULT '',
291 `description` text NOT NULL,
292 `author` varchar(32) NOT NULL DEFAULT '',
293 `rrp_total` int(11) unsigned NOT NULL DEFAULT '0',
294 `anim_mode` enum('am_dm','am_autonomous') NOT NULL DEFAULT 'am_dm',
295 `language` varchar(11) NOT NULL DEFAULT '',
296 `orientation` enum('so_newbie_training','so_story_telling','so_mistery','so_hack_slash','so_guild_training','so_other') NOT NULL DEFAULT 'so_other',
297 `level` enum('sl_a','sl_b','sl_c','sl_d','sl_e','sl_f') NOT NULL DEFAULT 'sl_a',
298 `allow_free_trial` tinyint(1) NOT NULL DEFAULT '0',
300 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
302 -- --------------------------------------------------------
305 -- Table structure for table `scenario_desc`
308 CREATE TABLE IF NOT EXISTS `scenario_desc` (
309 `session_id` int(10) unsigned NOT NULL DEFAULT '0',
310 `parent_scenario` int(10) unsigned NOT NULL DEFAULT '0',
311 `description` text NOT NULL,
312 `relation_to_parent` enum('rtp_same','rtp_variant','rtp_different') NOT NULL DEFAULT 'rtp_same',
313 `title` varchar(40) NOT NULL DEFAULT '',
314 `num_player` int(10) unsigned NOT NULL DEFAULT '0',
315 `content_access_level` varchar(20) NOT NULL DEFAULT '',
316 PRIMARY KEY (`session_id`),
317 UNIQUE KEY `title_idx` (`title`),
318 KEY `parent_idx` (`parent_scenario`)
319 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
321 -- --------------------------------------------------------
324 -- Table structure for table `sessions`
327 CREATE TABLE IF NOT EXISTS `sessions` (
328 `session_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
329 `session_type` enum('st_edit','st_anim','st_outland','st_mainland') NOT NULL DEFAULT 'st_edit',
330 `title` varchar(40) NOT NULL DEFAULT '',
331 `owner` int(10) unsigned NOT NULL DEFAULT '0',
332 `plan_date` datetime NOT NULL DEFAULT '2005-09-21 12:41:33',
333 `start_date` datetime NOT NULL DEFAULT '2005-08-31 00:00:00',
334 `description` text NOT NULL,
335 `orientation` enum('so_newbie_training','so_story_telling','so_mistery','so_hack_slash','so_guild_training','so_other') NOT NULL DEFAULT 'so_other',
336 `level` enum('sl_a','sl_b','sl_c','sl_d','sl_e','sl_f') NOT NULL DEFAULT 'sl_a',
337 `rule_type` enum('rt_strict','rt_liberal') NOT NULL DEFAULT 'rt_strict',
338 `access_type` enum('at_public','at_private') NOT NULL DEFAULT 'at_private',
339 `state` enum('ss_planned','ss_open','ss_locked','ss_closed') NOT NULL DEFAULT 'ss_planned',
340 `host_shard_id` int(11) NOT NULL DEFAULT '0',
341 `subscription_slots` int(11) unsigned NOT NULL DEFAULT '0',
342 `reserved_slots` int(10) unsigned NOT NULL DEFAULT '0',
343 `free_slots` int(10) unsigned NOT NULL DEFAULT '0',
344 `estimated_duration` enum('et_short','et_medium','et_long') NOT NULL DEFAULT 'et_short',
345 `final_duration` int(10) unsigned NOT NULL DEFAULT '0',
346 `folder_id` int(10) unsigned NOT NULL DEFAULT '0',
347 `lang` varchar(20) NOT NULL DEFAULT '',
348 `icone` varchar(70) NOT NULL DEFAULT '',
349 `anim_mode` enum('am_dm','am_autonomous') NOT NULL DEFAULT 'am_dm',
350 `race_filter` set('rf_fyros','rf_matis','rf_tryker','rf_zorai') NOT NULL DEFAULT '',
351 `religion_filter` set('rf_kami','rf_karavan','rf_neutral') NOT NULL DEFAULT '',
352 `guild_filter` enum('gf_only_my_guild','gf_any_player') DEFAULT 'gf_only_my_guild',
353 `shard_filter` set('sf_shard00','sf_shard01','sf_shard02','sf_shard03','sf_shard04','sf_shard05','sf_shard06','sf_shard07','sf_shard08','sf_shard09','sf_shard10','sf_shard11','sf_shard12','sf_shard13','sf_shard14','sf_shard15','sf_shard16','sf_shard17','sf_shard18','sf_shard19','sf_shard20','sf_shard21','sf_shard22','sf_shard23','sf_shard24','sf_shard25','sf_shard26','sf_shard27','sf_shard28','sf_shard29','sf_shard30','sf_shard31') NOT NULL DEFAULT 'sf_shard00,sf_shard01,sf_shard02,sf_shard03,sf_shard04,sf_shard05,sf_shard06,sf_shard07,sf_shard08,sf_shard09,sf_shard10,sf_shard11,sf_shard12,sf_shard13,sf_shard14,sf_shard15,sf_shard16,sf_shard17,sf_shard18,sf_shard19,sf_shard20,sf_shard21,sf_shard22,sf_shard23,sf_shard24,sf_shard25,sf_shard26,sf_shard27,sf_shard28,sf_shard29,sf_shard30,sf_shard31',
354 `level_filter` set('lf_a','lf_b','lf_c','lf_d','lf_e','lf_f') NOT NULL DEFAULT 'lf_a,lf_b,lf_c,lf_d,lf_e,lf_f',
355 `subscription_closed` tinyint(1) NOT NULL DEFAULT '0',
356 `newcomer` tinyint(1) unsigned zerofill NOT NULL DEFAULT '0',
357 PRIMARY KEY (`session_id`),
358 KEY `owner_idx` (`owner`),
359 KEY `folder_idx` (`folder_id`),
360 KEY `state_type_idx` (`state`,`session_type`)
361 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1001 ;
363 -- --------------------------------------------------------
366 -- Table structure for table `session_log`
369 CREATE TABLE IF NOT EXISTS `session_log` (
370 `id` int(11) NOT NULL DEFAULT '0',
371 `scenario_id` int(11) unsigned NOT NULL DEFAULT '0',
372 `rrp_scored` int(11) unsigned NOT NULL DEFAULT '0',
373 `scenario_point_scored` int(11) unsigned NOT NULL DEFAULT '0',
374 `time_taken` int(11) unsigned NOT NULL DEFAULT '0',
375 `participants` text NOT NULL,
376 `launch_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
377 `owner` varchar(32) NOT NULL DEFAULT '0',
378 `guild_name` varchar(50) DEFAULT NULL,
380 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
382 -- --------------------------------------------------------
385 -- Table structure for table `session_participant`
388 CREATE TABLE IF NOT EXISTS `session_participant` (
389 `Id` int(10) unsigned NOT NULL AUTO_INCREMENT,
390 `session_id` int(10) unsigned NOT NULL DEFAULT '0',
391 `char_id` int(10) unsigned NOT NULL DEFAULT '0',
392 `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',
393 `kicked` tinyint(1) unsigned NOT NULL DEFAULT '0',
394 `session_rated` tinyint(1) unsigned NOT NULL DEFAULT '0',
396 KEY `session_idx` (`session_id`),
397 KEY `user_idx` (`char_id`)
398 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=FIXED AUTO_INCREMENT=1 ;
400 -- --------------------------------------------------------
403 -- Table structure for table `shard`
406 CREATE TABLE IF NOT EXISTS `shard` (
407 `shard_id` int(10) NOT NULL DEFAULT '0',
408 `WSOnline` tinyint(1) NOT NULL DEFAULT '0',
409 `MOTD` text NOT NULL,
410 `OldState` enum('ds_close','ds_dev','ds_restricted','ds_open') NOT NULL DEFAULT 'ds_restricted',
411 `RequiredState` enum('ds_close','ds_dev','ds_restricted','ds_open') NOT NULL DEFAULT 'ds_dev',
412 PRIMARY KEY (`shard_id`)
413 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=FIXED;
415 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
416 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
417 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;