2012-05-16 23:04:39 +00:00
|
|
|
-- phpMyAdmin SQL Dump
|
2012-08-20 13:52:35 +00:00
|
|
|
-- version 3.5.1
|
2012-05-16 23:04:39 +00:00
|
|
|
-- http://www.phpmyadmin.net
|
|
|
|
--
|
|
|
|
-- Host: localhost
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Generation Time: Aug 20, 2012 at 01:48 PM
|
|
|
|
-- Server version: 5.5.24-log
|
|
|
|
-- PHP Version: 5.4.3
|
2012-05-16 23:04:39 +00:00
|
|
|
|
|
|
|
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
2012-08-20 13:52:35 +00:00
|
|
|
SET time_zone = "+00:00";
|
2012-05-16 23:04:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
|
|
/*!40101 SET NAMES utf8 */;
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Database: `app_achievements_test`
|
2012-05-16 23:04:39 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_achievement`
|
2012-05-16 23:04:39 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_achievement` (
|
|
|
|
`aa_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`aa_category` bigint(20) unsigned NOT NULL,
|
|
|
|
`aa_parent` bigint(20) unsigned DEFAULT NULL,
|
|
|
|
`aa_tie_race` varchar(64) COLLATE utf8_bin DEFAULT NULL,
|
|
|
|
`aa_tie_cult` varchar(64) COLLATE utf8_bin DEFAULT NULL,
|
|
|
|
`aa_tie_civ` varchar(64) COLLATE utf8_bin DEFAULT NULL,
|
2012-05-27 19:08:28 +00:00
|
|
|
`aa_image` varchar(64) COLLATE utf8_bin NOT NULL,
|
2012-08-20 13:52:35 +00:00
|
|
|
`aa_dev` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
|
|
|
`aa_sticky` tinyint(1) unsigned NOT NULL,
|
2012-05-16 23:04:39 +00:00
|
|
|
PRIMARY KEY (`aa_id`)
|
2012-08-20 13:52:35 +00:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=346 ;
|
2012-05-16 23:04:39 +00:00
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_achievement_lang`
|
2012-05-16 23:04:39 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_achievement_lang` (
|
|
|
|
`aal_achievement` bigint(20) unsigned NOT NULL,
|
|
|
|
`aal_lang` varchar(2) COLLATE utf8_bin NOT NULL,
|
|
|
|
`aal_name` varchar(255) COLLATE utf8_bin NOT NULL,
|
2012-08-20 13:52:35 +00:00
|
|
|
`aal_template` varchar(255) COLLATE utf8_bin DEFAULT NULL,
|
2012-05-16 23:04:39 +00:00
|
|
|
PRIMARY KEY (`aal_achievement`,`aal_lang`)
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_atom`
|
2012-05-16 23:04:39 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_atom` (
|
|
|
|
`atom_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`atom_objective` bigint(20) unsigned NOT NULL,
|
|
|
|
`atom_mandatory` tinyint(1) unsigned NOT NULL,
|
|
|
|
`atom_ruleset` blob NOT NULL,
|
2012-08-20 13:52:35 +00:00
|
|
|
`atom_ruleset_parsed` blob NOT NULL,
|
2012-05-16 23:04:39 +00:00
|
|
|
PRIMARY KEY (`atom_id`)
|
2012-08-20 13:52:35 +00:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=25 ;
|
2012-05-16 23:04:39 +00:00
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_category`
|
2012-05-16 23:04:39 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_category` (
|
|
|
|
`ac_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`ac_parent` bigint(20) unsigned DEFAULT NULL,
|
2012-05-27 19:08:28 +00:00
|
|
|
`ac_order` smallint(5) unsigned NOT NULL,
|
2012-08-20 13:52:35 +00:00
|
|
|
`ac_image` varchar(64) COLLATE utf8_bin DEFAULT NULL,
|
|
|
|
`ac_dev` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
|
|
|
`ac_heroic` tinyint(1) unsigned NOT NULL,
|
2012-05-16 23:04:39 +00:00
|
|
|
PRIMARY KEY (`ac_id`)
|
2012-08-20 13:52:35 +00:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=50 ;
|
2012-05-16 23:04:39 +00:00
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_category_lang`
|
2012-05-16 23:04:39 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_category_lang` (
|
|
|
|
`acl_category` bigint(20) unsigned NOT NULL,
|
|
|
|
`acl_lang` varchar(2) COLLATE utf8_bin NOT NULL,
|
|
|
|
`acl_name` varchar(255) COLLATE utf8_bin NOT NULL,
|
|
|
|
PRIMARY KEY (`acl_category`,`acl_lang`)
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_fb_token`
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_fb_token` (
|
|
|
|
`aft_player` bigint(20) unsigned NOT NULL,
|
|
|
|
`aft_token` varchar(255) NOT NULL,
|
|
|
|
`aft_date` bigint(20) unsigned NOT NULL,
|
|
|
|
`aft_allow` tinyint(1) unsigned NOT NULL,
|
|
|
|
PRIMARY KEY (`aft_player`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Table structure for table `ach_objective`
|
2012-05-16 23:04:39 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_objective` (
|
|
|
|
`ao_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
2012-08-20 13:52:35 +00:00
|
|
|
`ao_task` bigint(20) unsigned NOT NULL,
|
2012-05-16 23:04:39 +00:00
|
|
|
`ao_condition` enum('all','any','value') COLLATE utf8_bin NOT NULL,
|
2012-08-20 13:52:35 +00:00
|
|
|
`ao_value` bigint(20) unsigned DEFAULT NULL,
|
2012-05-27 19:08:28 +00:00
|
|
|
`ao_display` enum('simple','meta','value','hidden') COLLATE utf8_bin NOT NULL DEFAULT 'hidden',
|
2012-08-20 13:52:35 +00:00
|
|
|
`ao_metalink` bigint(20) unsigned DEFAULT NULL,
|
2012-05-16 23:04:39 +00:00
|
|
|
PRIMARY KEY (`ao_id`)
|
2012-08-20 13:52:35 +00:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=2026 ;
|
2012-05-16 23:04:39 +00:00
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_objective_lang`
|
2012-05-16 23:04:39 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_objective_lang` (
|
|
|
|
`aol_objective` bigint(20) unsigned NOT NULL,
|
|
|
|
`aol_lang` varchar(2) COLLATE utf8_bin NOT NULL,
|
2012-08-20 13:52:35 +00:00
|
|
|
`aol_name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
|
2012-05-16 23:04:39 +00:00
|
|
|
PRIMARY KEY (`aol_objective`,`aol_lang`)
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_player_atom`
|
2012-05-16 23:48:51 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_player_atom` (
|
|
|
|
`apa_atom` bigint(20) unsigned NOT NULL,
|
|
|
|
`apa_player` bigint(20) unsigned NOT NULL,
|
|
|
|
`apa_date` bigint(20) unsigned NOT NULL,
|
2012-08-20 13:52:35 +00:00
|
|
|
`apa_expire` blob,
|
|
|
|
`apa_state` enum('GRANT','DENY') COLLATE utf8_bin NOT NULL,
|
|
|
|
`apa_value` bigint(20) unsigned NOT NULL,
|
2012-05-27 19:08:28 +00:00
|
|
|
KEY `apa_atom` (`apa_atom`,`apa_player`)
|
2012-05-16 23:48:51 +00:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_player_objective`
|
2012-05-16 23:48:51 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_player_objective` (
|
|
|
|
`apo_objective` bigint(20) unsigned NOT NULL,
|
|
|
|
`apo_player` bigint(20) unsigned NOT NULL,
|
|
|
|
`apo_date` bigint(20) unsigned NOT NULL,
|
|
|
|
PRIMARY KEY (`apo_objective`,`apo_player`)
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_player_task`
|
2012-05-16 23:48:51 +00:00
|
|
|
--
|
|
|
|
|
2012-08-20 13:52:35 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS `ach_player_task` (
|
|
|
|
`apt_task` bigint(20) unsigned NOT NULL,
|
|
|
|
`apt_player` bigint(20) unsigned NOT NULL,
|
|
|
|
`apt_date` bigint(20) unsigned NOT NULL,
|
|
|
|
`apt_fb` tinyint(1) unsigned NOT NULL,
|
|
|
|
PRIMARY KEY (`apt_task`,`apt_player`)
|
2012-05-16 23:48:51 +00:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
2012-08-20 13:52:35 +00:00
|
|
|
-- Table structure for table `ach_player_valuecache`
|
2012-05-16 23:48:51 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_player_valuecache` (
|
|
|
|
`apv_name` bigint(20) unsigned NOT NULL,
|
|
|
|
`apv_player` bigint(20) unsigned NOT NULL,
|
|
|
|
`apv_value` varchar(255) COLLATE utf8_bin NOT NULL,
|
|
|
|
`apv_date` bigint(20) unsigned NOT NULL,
|
|
|
|
PRIMARY KEY (`apv_name`,`apv_player`)
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
2012-08-20 13:52:35 +00:00
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Table structure for table `ach_task`
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_task` (
|
|
|
|
`at_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`at_achievement` bigint(20) unsigned NOT NULL,
|
|
|
|
`at_parent` bigint(20) unsigned DEFAULT NULL,
|
|
|
|
`at_value` int(10) unsigned NOT NULL,
|
|
|
|
`at_condition` enum('all','any','value') COLLATE utf8_bin NOT NULL DEFAULT 'all',
|
|
|
|
`at_condition_value` int(10) unsigned DEFAULT NULL,
|
|
|
|
`at_dev` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
|
|
|
`at_torder` smallint(5) unsigned NOT NULL,
|
|
|
|
PRIMARY KEY (`at_id`),
|
|
|
|
UNIQUE KEY `ap_parent` (`at_parent`)
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=635 ;
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Table structure for table `ach_task_lang`
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `ach_task_lang` (
|
|
|
|
`atl_task` bigint(20) unsigned NOT NULL,
|
|
|
|
`atl_lang` varchar(2) COLLATE utf8_bin NOT NULL,
|
|
|
|
`atl_name` varchar(255) COLLATE utf8_bin NOT NULL,
|
|
|
|
`atl_template` varchar(255) COLLATE utf8_bin DEFAULT NULL,
|
|
|
|
PRIMARY KEY (`atl_task`,`atl_lang`)
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
|
|
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|