Windows NT KAMIDAKI 10.0 build 19045 (Windows 10) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.9
Server IP : 192.168.3.16 & Your IP : 216.73.216.204
Domains :
Cant Read [ /etc/named.conf ]
User : SISTEMA
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
C: /
Servidor Aion - OLD CLASS /
game-server /
sql /
Delete
Unzip
Name
Size
Permission
Date
Action
aion_gs.sql
37.93
KB
-rw-rw-rw-
2025-01-01 22:47
ranking_ffa.sql
413
B
-rw-rw-rw-
2024-10-21 16:08
update.sql
1.24
KB
-rw-rw-rw-
2025-01-20 20:35
Save
Rename
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `abyss_rank` -- ---------------------------- CREATE TABLE `abyss_rank` ( `player_id` int(11) NOT NULL, `daily_ap` int(11) NOT NULL, `weekly_ap` int(11) NOT NULL, `ap` int(11) NOT NULL, `rank` tinyint(4) NOT NULL DEFAULT '1', `max_rank` tinyint(4) NOT NULL DEFAULT '1', `rank_pos` smallint(6) NOT NULL DEFAULT '0', `old_rank_pos` smallint(6) NOT NULL DEFAULT '0', `daily_kill` int(5) NOT NULL, `weekly_kill` int(5) NOT NULL, `all_kill` int(4) NOT NULL DEFAULT '0', `last_kill` int(5) NOT NULL, `last_ap` int(11) NOT NULL, `last_update` decimal(20, 0) NOT NULL, `rank_ap` int(11) NOT NULL DEFAULT '0', `daily_gp` int(11) NOT NULL DEFAULT '0', `weekly_gp` int(11) NOT NULL DEFAULT '0', `gp` int(11) NOT NULL DEFAULT '0', `last_gp` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`player_id`), KEY `rank` (`rank`), KEY `rank_pos` (`rank_pos`), KEY `gp` (`gp`), CONSTRAINT `abyss_rank_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `account_passports` -- ---------------------------- CREATE TABLE `account_passports` ( `account_id` int(11) NOT NULL, `passport_id` int(11) NOT NULL, `rewarded` int(11) NOT NULL, `arrive_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`account_id`,`passport_id`,`arrive_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `account_stamps` -- ---------------------------- CREATE TABLE `account_stamps` ( `account_id` int(11) NOT NULL, `stamps` tinyint(2) NOT NULL DEFAULT '0', `last_stamp` timestamp NULL DEFAULT NULL, PRIMARY KEY (`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `announcements` -- ---------------------------- CREATE TABLE `announcements` ( `id` int(3) NOT NULL AUTO_INCREMENT, `announce` text NOT NULL, `faction` enum('ALL','ASMODIANS','ELYOS') NOT NULL DEFAULT 'ALL', `type` enum('SHOUT','ORANGE','YELLOW','WHITE','SYSTEM') NOT NULL DEFAULT 'SYSTEM', `delay` int(4) NOT NULL DEFAULT '1800', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `blocks` -- ---------------------------- CREATE TABLE `blocks` ( `player` int(11) NOT NULL, `blocked_player` int(11) NOT NULL, `reason` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`player`,`blocked_player`), KEY `blocked_player` (`blocked_player`), CONSTRAINT `blocks_ibfk_1` FOREIGN KEY (`player`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `blocks_ibfk_2` FOREIGN KEY (`blocked_player`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `bonus_packs` -- ---------------------------- CREATE TABLE `bonus_packs` ( `account_id` int(11) NOT NULL, `receiving_player` int(11) NOT NULL, PRIMARY KEY (`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `bookmark` -- ---------------------------- CREATE TABLE `bookmark` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, `char_id` int(11) NOT NULL, `x` float NOT NULL, `y` float NOT NULL, `z` float NOT NULL, `world_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `broker` -- ---------------------------- CREATE TABLE `broker` ( `id` int(11) NOT NULL AUTO_INCREMENT, `item_pointer` int(11) NOT NULL DEFAULT '0', `item_id` int(11) NOT NULL, `item_count` bigint(20) NOT NULL, `item_creator` varchar(50) DEFAULT NULL, `price` bigint(20) NOT NULL DEFAULT '0', `broker_race` enum('ELYOS','ASMODIAN') NOT NULL, `expire_time` timestamp NOT NULL DEFAULT '2010-01-01 02:00:00', `settle_time` timestamp NOT NULL DEFAULT '2010-01-01 02:00:00', `seller_id` int(11) NOT NULL, `is_sold` tinyint(1) NOT NULL, `is_settled` tinyint(1) NOT NULL, `splitting_available` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `seller_id` (`seller_id`), CONSTRAINT `broker_ibfk_1` FOREIGN KEY (`seller_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `challenge_tasks` -- ---------------------------- CREATE TABLE `challenge_tasks` ( `task_id` int(11) NOT NULL, `quest_id` int(10) NOT NULL, `owner_id` int(11) NOT NULL, `owner_type` enum('LEGION','TOWN') NOT NULL, `complete_count` int(3) unsigned NOT NULL DEFAULT '0', `complete_time` timestamp NULL DEFAULT NULL, PRIMARY KEY (`task_id`,`quest_id`,`owner_id`,`owner_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `commands_access` -- ---------------------------- CREATE TABLE `commands_access` ( `player_id` int(11) NOT NULL, `command` varchar(40) NOT NULL, PRIMARY KEY (`player_id`,`command`), CONSTRAINT `commands_access_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `craft_cooldowns` -- ---------------------------- CREATE TABLE `craft_cooldowns` ( `player_id` int(11) NOT NULL, `delay_id` int(11) unsigned NOT NULL, `reuse_time` bigint(13) unsigned NOT NULL, PRIMARY KEY (`player_id`,`delay_id`), CONSTRAINT `craft_cooldowns_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `custom_instance` -- ---------------------------- DROP TABLE IF EXISTS `custom_instance`; CREATE TABLE `custom_instance` ( `player_id` int(11) NOT NULL, `rank` int(11) NOT NULL, `last_entry` timestamp NOT NULL, `max_rank` int(11) NOT NULL, `dps` int(11) NOT NULL, PRIMARY KEY (`player_id`), KEY `rank` (`rank`), KEY `last_entry` (`last_entry`), CONSTRAINT `custom_instance_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `custom_instance_records` -- ---------------------------- DROP TABLE IF EXISTS `custom_instance_records`; CREATE TABLE `custom_instance_records` ( `player_id` int NOT NULL, `timestamp` TIMESTAMP NOT NULL, `skill_id` int NOT NULL, `player_class_id` int NOT NULL, `player_hp_percentage` float NOT NULL, `player_mp_percentage` float NOT NULL, `player_is_rooted` tinyint(1) NOT NULL, `player_is_silenced` tinyint(1) NOT NULL, `player_is_bound` tinyint(1) NOT NULL, `player_is_stunned` tinyint(1) NOT NULL, `player_is_aetherhold` tinyint(1) NOT NULL, `player_buff_count` int NOT NULL, `player_debuff_count` int NOT NULL, `player_is_shielded` tinyint(1) NOT NULL, `target_hp_percentage` float NULL, `target_mp_percentage` float NULL, `target_focuses_player` tinyint(1) NULL, `distance` float NULL, `target_is_rooted` tinyint(1) NULL, `target_is_silenced` tinyint(1) NULL, `target_is_bound` tinyint(1) NULL, `target_is_stunned` tinyint(1) NULL, `target_is_aetherhold` tinyint(1) NULL, `target_buff_count` int NULL, `target_debuff_count` int NULL, `target_is_shielded` tinyint(1) NULL, CONSTRAINT `custom_instance_records_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `event` -- ---------------------------- CREATE TABLE `event` ( `event_name` varchar(255) NOT NULL, `buff_index` int(11) NOT NULL, `buff_active_pool_ids` varchar(255) DEFAULT NULL, `buff_allowed_days` varchar(255) DEFAULT NULL, `last_change` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`event_name`,`buff_index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `faction_packs` -- ---------------------------- CREATE TABLE `faction_packs` ( `account_id` int(11) NOT NULL, `receiving_player` int(11) NOT NULL, PRIMARY KEY (`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `friends` -- ---------------------------- CREATE TABLE `friends` ( `player` int(11) NOT NULL, `friend` int(11) NOT NULL, `memo` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`player`,`friend`), KEY `friend` (`friend`), CONSTRAINT `friends_ibfk_1` FOREIGN KEY (`player`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `friends_ibfk_2` FOREIGN KEY (`friend`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `guides` -- ---------------------------- CREATE TABLE `guides` ( `guide_id` int(11) NOT NULL AUTO_INCREMENT, `player_id` int(11) NOT NULL, `title` varchar(80) NOT NULL, PRIMARY KEY (`guide_id`), KEY `player_id` (`player_id`), CONSTRAINT `guides_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `headhunting` -- ---------------------------- CREATE TABLE `headhunting` ( `hunter_id` int(11) NOT NULL, `accumulated_kills` int(11) NOT NULL, `last_update` timestamp NULL DEFAULT NULL, PRIMARY KEY (`hunter_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `house_bids` -- ---------------------------- CREATE TABLE `house_bids` ( `player_id` int(10) NOT NULL, `house_id` int(10) NOT NULL, `bid` bigint(20) NOT NULL, `bid_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`player_id`,`house_id`,`bid`), KEY `house_id_ibfk_1` (`house_id`), CONSTRAINT `house_id_ibfk_1` FOREIGN KEY (`house_id`) REFERENCES `houses` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `house_object_cooldowns` -- ---------------------------- CREATE TABLE `house_object_cooldowns` ( `player_id` int(11) NOT NULL, `object_id` int(11) NOT NULL, `reuse_time` bigint(20) NOT NULL, PRIMARY KEY (`player_id`,`object_id`), CONSTRAINT `house_object_cooldowns_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `house_object_cooldowns_ibfk_2` FOREIGN KEY (`object_id`) REFERENCES `player_registered_items` (`item_unique_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `house_scripts` -- ---------------------------- CREATE TABLE `house_scripts` ( `house_id` int(11) NOT NULL, `script_id` tinyint(4) NOT NULL, `script` mediumtext NOT NULL, `date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`house_id`,`script_id`), CONSTRAINT `houses_id_ibfk_1` FOREIGN KEY (`house_id`) REFERENCES `houses` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=16; -- ---------------------------- -- Table structure for `houses` -- ---------------------------- CREATE TABLE `houses` ( `id` int(10) NOT NULL, `player_id` int(10) NOT NULL DEFAULT '0', `building_id` int(10) NOT NULL, `address` int(10) NOT NULL, `acquire_time` timestamp NULL DEFAULT NULL, `settings` int(11) NOT NULL DEFAULT '0', `next_pay` timestamp NULL DEFAULT NULL, `sign_notice` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `address` (`address`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `ingameshop` -- ---------------------------- CREATE TABLE `ingameshop` ( `object_id` int(11) NOT NULL AUTO_INCREMENT, `item_id` int(11) NOT NULL, `item_count` bigint(13) NOT NULL DEFAULT '0', `item_price` bigint(13) NOT NULL DEFAULT '0', `category` tinyint(1) NOT NULL DEFAULT '0', `sub_category` tinyint(1) NOT NULL DEFAULT '0', `list` int(11) NOT NULL DEFAULT '0', `sales_ranking` int(11) NOT NULL DEFAULT '0', `item_type` tinyint(1) NOT NULL DEFAULT '0', `gift` tinyint(1) NOT NULL DEFAULT '0', `title_description` varchar(20) NOT NULL, `description` varchar(20) NOT NULL, PRIMARY KEY (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `ingameshop_log` -- ---------------------------- CREATE TABLE `ingameshop_log` ( `transaction_id` int(11) NOT NULL AUTO_INCREMENT, `transaction_type` enum('BUY','GIFT') NOT NULL, `transaction_date` timestamp NULL DEFAULT NULL, `payer_name` varchar(50) NOT NULL, `payer_account_name` varchar(50) NOT NULL, `receiver_name` varchar(50) NOT NULL, `item_id` int(11) NOT NULL, `item_count` bigint(13) NOT NULL DEFAULT '0', `item_price` bigint(13) NOT NULL DEFAULT '0', PRIMARY KEY (`transaction_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `inventory` -- ---------------------------- CREATE TABLE `inventory` ( `item_unique_id` int(11) NOT NULL, `item_id` int(11) NOT NULL, `item_count` bigint(20) NOT NULL DEFAULT '0', `item_color` mediumint(8) unsigned DEFAULT NULL, `color_expires` int(11) NOT NULL DEFAULT '0', `item_creator` varchar(50) DEFAULT NULL, `expire_time` int(11) NOT NULL DEFAULT '0', `activation_count` int(11) NOT NULL DEFAULT '0', `item_owner` int(11) NOT NULL, `is_equipped` tinyint(1) NOT NULL DEFAULT '0', `is_soul_bound` tinyint(1) NOT NULL DEFAULT '0', `slot` bigint(20) NOT NULL DEFAULT '0', `item_location` tinyint(1) DEFAULT '0', `enchant` tinyint unsigned NOT NULL DEFAULT '0', `enchant_bonus` tinyint(1) NOT NULL DEFAULT '0', `item_skin` int(11) NOT NULL DEFAULT '0', `fusioned_item` int(11) NOT NULL DEFAULT '0', `optional_socket` tinyint unsigned NOT NULL DEFAULT '0', `optional_fusion_socket` tinyint unsigned NOT NULL DEFAULT '0', `charge` mediumint(9) NOT NULL DEFAULT '0', `tune_count` smallint(6) NOT NULL DEFAULT '0', `rnd_bonus` smallint(6) NOT NULL DEFAULT '0', `fusion_rnd_bonus` smallint(6) NOT NULL DEFAULT '0', `tempering` tinyint unsigned NOT NULL DEFAULT '0', `pack_count` smallint(6) NOT NULL DEFAULT '0', `is_amplified` tinyint(1) NOT NULL DEFAULT '0', `buff_skill` int(11) NOT NULL DEFAULT '0', `rnd_plume_bonus` smallint NOT NULL DEFAULT '0', PRIMARY KEY (`item_unique_id`), KEY `item_location` (`item_location`) USING HASH, KEY `index3` (`item_owner`,`item_location`,`is_equipped`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `item_cooldowns` -- ---------------------------- CREATE TABLE `item_cooldowns` ( `player_id` int(11) NOT NULL, `delay_id` int(11) NOT NULL, `use_delay` int(10) unsigned NOT NULL, `reuse_time` bigint(13) NOT NULL, PRIMARY KEY (`player_id`,`delay_id`), CONSTRAINT `item_cooldowns_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `item_stones` -- ---------------------------- CREATE TABLE `item_stones` ( `item_unique_id` int(11) NOT NULL, `item_id` int(11) NOT NULL, `slot` int(2) NOT NULL, `category` int(2) NOT NULL DEFAULT '0', `polishNumber` int(11) NOT NULL, `polishCharge` int(11) NOT NULL, `proc_count` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`item_unique_id`,`slot`,`category`), CONSTRAINT `item_stones_ibfk_1` FOREIGN KEY (`item_unique_id`) REFERENCES `inventory` (`item_unique_id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `legion_announcement_list` -- ---------------------------- CREATE TABLE `legion_announcement_list` ( `legion_id` int(11) NOT NULL, `announcement` varchar(256) NOT NULL, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, KEY `legion_id` (`legion_id`), CONSTRAINT `legion_announcement_list_ibfk_1` FOREIGN KEY (`legion_id`) REFERENCES `legions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `legion_dominion_locations` -- ---------------------------- CREATE TABLE `legion_dominion_locations` ( `id` int(11) NOT NULL DEFAULT '0', `legion_id` int(11) NOT NULL DEFAULT '0', `occupied_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `legion_dominion_participants` -- ---------------------------- CREATE TABLE `legion_dominion_participants` ( `legion_dominion_id` int(11) NOT NULL DEFAULT '0', `legion_id` int(11) NOT NULL DEFAULT '0', `points` int(11) NOT NULL DEFAULT '0', `survived_time` int(11) NOT NULL DEFAULT '0', `participated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`legion_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `legion_emblems` -- ---------------------------- CREATE TABLE `legion_emblems` ( `legion_id` int(11) NOT NULL, `emblem_id` tinyint(3) NOT NULL DEFAULT '0', `color_a` tinyint(3) NOT NULL DEFAULT '0', `color_r` tinyint(3) NOT NULL DEFAULT '0', `color_g` tinyint(3) NOT NULL DEFAULT '0', `color_b` tinyint(3) NOT NULL DEFAULT '0', `emblem_type` enum('DEFAULT','CUSTOM') NOT NULL DEFAULT 'DEFAULT', `emblem_data` longblob, PRIMARY KEY (`legion_id`), CONSTRAINT `legion_emblems_ibfk_1` FOREIGN KEY (`legion_id`) REFERENCES `legions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `legion_history` -- ---------------------------- CREATE TABLE `legion_history` ( `id` int(11) NOT NULL AUTO_INCREMENT, `legion_id` int(11) NOT NULL, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `history_type` enum('CREATE','JOIN','KICK','APPOINTED','EMBLEM_REGISTER','EMBLEM_MODIFIED','ITEM_DEPOSIT','ITEM_WITHDRAW','KINAH_DEPOSIT','KINAH_WITHDRAW','LEVEL_UP','DEFENSE','OCCUPATION','LEGION_RENAME','CHARACTER_RENAME') NOT NULL, `name` varchar(50) NOT NULL, `description` varchar(30) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `legion_id` (`legion_id`), CONSTRAINT `legion_history_ibfk_1` FOREIGN KEY (`legion_id`) REFERENCES `legions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `legion_members` -- ---------------------------- CREATE TABLE `legion_members` ( `legion_id` int(11) NOT NULL, `player_id` int(11) NOT NULL, `nickname` varchar(10) NOT NULL DEFAULT '', `rank` enum('BRIGADE_GENERAL','CENTURION','LEGIONARY','DEPUTY','VOLUNTEER') NOT NULL DEFAULT 'VOLUNTEER', `selfintro` varchar(32) DEFAULT '', `challenge_score` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`player_id`), KEY `player_id` (`player_id`), KEY `legion_id` (`legion_id`), CONSTRAINT `legion_members_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `legion_members_ibfk_2` FOREIGN KEY (`legion_id`) REFERENCES `legions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `legions` -- ---------------------------- CREATE TABLE `legions` ( `id` int(11) NOT NULL, `name` varchar(32) NOT NULL, `level` int(1) NOT NULL DEFAULT '1', `contribution_points` bigint(20) NOT NULL DEFAULT '0', `deputy_permission` int(11) NOT NULL DEFAULT '7692', `centurion_permission` int(11) NOT NULL DEFAULT '7176', `legionary_permission` int(11) NOT NULL DEFAULT '6144', `volunteer_permission` int(11) NOT NULL DEFAULT '2048', `disband_time` int(11) NOT NULL DEFAULT '0', `rank_pos` smallint(6) NOT NULL DEFAULT '0', `old_rank_pos` smallint(6) NOT NULL DEFAULT '0', `occupied_legion_dominion` int(11) NOT NULL DEFAULT '0', `last_legion_dominion` int(11) NOT NULL DEFAULT '0', `current_legion_dominion` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `name_unique` (`name`), KEY `rank_pos` (`rank_pos`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `mail` -- ---------------------------- CREATE TABLE `mail` ( `mail_unique_id` int(11) NOT NULL, `mail_recipient_id` int(11) NOT NULL, `sender_name` varchar(20) NOT NULL, `mail_title` varchar(20) NOT NULL, `mail_message` varchar(1000) NOT NULL, `unread` tinyint(4) NOT NULL DEFAULT '1', `attached_item_id` int(11) NOT NULL, `attached_kinah_count` bigint(20) NOT NULL, `express` tinyint(4) NOT NULL DEFAULT '0', `recieved_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`mail_unique_id`), KEY `mail_recipient_id` (`mail_recipient_id`), CONSTRAINT `FK_mail` FOREIGN KEY (`mail_recipient_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `old_names` -- ---------------------------- CREATE TABLE `old_names` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `player_id` int(11) NOT NULL, `old_name` varchar(50) NOT NULL, `new_name` varchar(50) NOT NULL, `renamed_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `player_id` (`player_id`), KEY `renamed_date` (`renamed_date`), CONSTRAINT `old_names_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_appearance` -- ---------------------------- CREATE TABLE `player_appearance` ( `player_id` int(11) NOT NULL, `face` int(11) NOT NULL, `hair` int(11) NOT NULL, `deco` int(11) NOT NULL, `tattoo` int(11) NOT NULL, `face_contour` int(11) NOT NULL, `expression` int(11) NOT NULL, `jaw_line` int(11) NOT NULL, `skin_rgb` int(11) NOT NULL, `hair_rgb` int(11) NOT NULL, `lip_rgb` int(11) NOT NULL, `eye_rgb` int(11) NOT NULL, `face_shape` int(11) NOT NULL, `forehead` int(11) NOT NULL, `eye_height` int(11) NOT NULL, `eye_space` int(11) NOT NULL, `eye_width` int(11) NOT NULL, `eye_size` int(11) NOT NULL, `eye_shape` int(11) NOT NULL, `eye_angle` int(11) NOT NULL, `brow_height` int(11) NOT NULL, `brow_angle` int(11) NOT NULL, `brow_shape` int(11) NOT NULL, `nose` int(11) NOT NULL, `nose_bridge` int(11) NOT NULL, `nose_width` int(11) NOT NULL, `nose_tip` int(11) NOT NULL, `cheek` int(11) NOT NULL, `lip_height` int(11) NOT NULL, `mouth_size` int(11) NOT NULL, `lip_size` int(11) NOT NULL, `smile` int(11) NOT NULL, `lip_shape` int(11) NOT NULL, `jaw_height` int(11) NOT NULL, `chin_jut` int(11) NOT NULL, `ear_shape` int(11) NOT NULL, `head_size` int(11) NOT NULL, `neck` int(11) NOT NULL, `neck_length` int(11) NOT NULL, `shoulders` int(11) NOT NULL, `shoulder_size` int(11) NOT NULL, `torso` int(11) NOT NULL, `chest` int(11) NOT NULL, `waist` int(11) NOT NULL, `hips` int(11) NOT NULL, `arm_thickness` int(11) NOT NULL, `arm_length` int(11) NOT NULL, `hand_size` int(11) NOT NULL, `leg_thickness` int(11) NOT NULL, `leg_length` int(11) NOT NULL, `foot_size` int(11) NOT NULL, `facial_rate` int(11) NOT NULL, `voice` int(11) NOT NULL, `height` float NOT NULL, PRIMARY KEY (`player_id`), CONSTRAINT `player_id_fk` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_bind_point` -- ---------------------------- CREATE TABLE `player_bind_point` ( `player_id` int(11) NOT NULL, `map_id` int(11) NOT NULL, `x` float NOT NULL, `y` float NOT NULL, `z` float NOT NULL, `heading` int(3) NOT NULL, PRIMARY KEY (`player_id`), CONSTRAINT `player_bind_point_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_cooldowns` -- ---------------------------- CREATE TABLE `player_cooldowns` ( `player_id` int(11) NOT NULL, `cooldown_id` int(6) NOT NULL, `reuse_delay` bigint(13) NOT NULL, PRIMARY KEY (`player_id`,`cooldown_id`), CONSTRAINT `player_cooldowns_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_effects` -- ---------------------------- CREATE TABLE `player_effects` ( `player_id` int(11) NOT NULL, `skill_id` int(11) NOT NULL, `skill_lvl` tinyint(4) NOT NULL, `remaining_time` int(11) NOT NULL, `end_time` bigint(13) NOT NULL, `force_type` varchar(255) DEFAULT NULL, PRIMARY KEY (`player_id`,`skill_id`), CONSTRAINT `player_effects_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_emotions` -- ---------------------------- CREATE TABLE `player_emotions` ( `player_id` int(11) NOT NULL, `emotion` int(11) NOT NULL, `remaining` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`player_id`,`emotion`), CONSTRAINT `player_emotions_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_life_stats` -- ---------------------------- CREATE TABLE `player_life_stats` ( `player_id` int(11) NOT NULL, `hp` int(11) NOT NULL DEFAULT '1', `mp` int(11) NOT NULL DEFAULT '1', `fp` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`player_id`), CONSTRAINT `FK_player_life_stats` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_macrosses` -- ---------------------------- CREATE TABLE `player_macrosses` ( `player_id` int(11) NOT NULL, `order` int(3) NOT NULL, `macro` text NOT NULL, UNIQUE KEY `main` (`player_id`,`order`), CONSTRAINT `player_macrosses_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_motions` -- ---------------------------- CREATE TABLE `player_motions` ( `player_id` int(11) NOT NULL, `motion_id` int(3) NOT NULL, `time` int(11) NOT NULL DEFAULT '0', `active` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`player_id`,`motion_id`) USING BTREE, CONSTRAINT `motions_player_id_fk` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_npc_factions` -- ---------------------------- CREATE TABLE `player_npc_factions` ( `player_id` int(11) NOT NULL, `faction_id` int(2) NOT NULL, `active` tinyint(1) NOT NULL, `time` int(11) NOT NULL, `state` enum('NOTING','START','COMPLETE') NOT NULL DEFAULT 'NOTING', `quest_id` int(6) NOT NULL DEFAULT '0', PRIMARY KEY (`player_id`,`faction_id`), CONSTRAINT `player_npc_factions_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_passkey` -- ---------------------------- CREATE TABLE `player_passkey` ( `account_id` int(11) NOT NULL, `passkey` varchar(32) NOT NULL DEFAULT '', PRIMARY KEY (`account_id`,`passkey`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_pets` -- ---------------------------- CREATE TABLE `player_pets` ( `id` int(11) NOT NULL, `player_id` int(11) NOT NULL, `template_id` int(11) NOT NULL, `decoration` int(11) NOT NULL, `name` varchar(255) NOT NULL, `hungry_level` tinyint(4) NOT NULL DEFAULT '0', `feed_progress` int(11) NOT NULL DEFAULT '0', `reuse_time` bigint(20) NOT NULL DEFAULT '0', `birthday` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `mood_started` bigint(20) NOT NULL DEFAULT '0', `counter` int(11) NOT NULL DEFAULT '0', `mood_cd_started` bigint(20) NOT NULL DEFAULT '0', `gift_cd_started` bigint(20) NOT NULL DEFAULT '0', `dopings` varchar(80) CHARACTER SET ascii DEFAULT NULL, `despawn_time` timestamp NULL DEFAULT NULL, `expire_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `player_id` (`player_id`), CONSTRAINT `FK_player_pets` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_punishments` -- ---------------------------- CREATE TABLE `player_punishments` ( `player_id` int(11) NOT NULL, `punishment_type` enum('PRISON','GATHER','CHARBAN') NOT NULL, `start_time` int(10) unsigned DEFAULT '0', `duration` int(10) unsigned DEFAULT '0', `reason` text, PRIMARY KEY (`player_id`,`punishment_type`), CONSTRAINT `player_punishments_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_quests` -- ---------------------------- CREATE TABLE `player_quests` ( `player_id` int(11) NOT NULL, `quest_id` int(10) unsigned NOT NULL DEFAULT '0', `status` enum('LOCKED','START','REWARD','COMPLETE') NOT NULL, `quest_vars` int(10) unsigned NOT NULL DEFAULT '0', `flags` int(10) unsigned NOT NULL DEFAULT '0', `complete_count` int(3) unsigned NOT NULL DEFAULT '0', `next_repeat_time` timestamp NULL DEFAULT NULL, `reward` smallint(3) DEFAULT NULL, `complete_time` timestamp NULL DEFAULT NULL, PRIMARY KEY (`player_id`,`quest_id`), CONSTRAINT `player_quests_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_recipes` -- ---------------------------- CREATE TABLE `player_recipes` ( `player_id` int(11) NOT NULL, `recipe_id` int(11) NOT NULL, PRIMARY KEY (`player_id`,`recipe_id`), CONSTRAINT `player_recipes_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_registered_items` -- ---------------------------- CREATE TABLE `player_registered_items` ( `player_id` int(10) NOT NULL, `item_unique_id` int(10) NOT NULL, `item_id` int(10) NOT NULL, `expire_time` int(20) DEFAULT NULL, `color` int(11) DEFAULT NULL, `color_expires` int(11) NOT NULL DEFAULT '0', `owner_use_count` int(10) NOT NULL DEFAULT '0', `visitor_use_count` int(10) NOT NULL DEFAULT '0', `x` float NOT NULL DEFAULT '0', `y` float NOT NULL DEFAULT '0', `z` float NOT NULL DEFAULT '0', `h` smallint(3) DEFAULT NULL, `area` enum('NONE','INTERIOR','EXTERIOR','ALL','DECOR') NOT NULL DEFAULT 'NONE', `room` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`player_id`,`item_unique_id`,`item_id`), UNIQUE KEY `item_unique_id` (`item_unique_id`), CONSTRAINT `player_regitems_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_settings` -- ---------------------------- CREATE TABLE `player_settings` ( `player_id` int(11) NOT NULL, `settings_type` tinyint(1) NOT NULL, `settings` blob NOT NULL, PRIMARY KEY (`player_id`,`settings_type`), CONSTRAINT `ps_pl_fk` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_skills` -- ---------------------------- CREATE TABLE `player_skills` ( `player_id` int(11) NOT NULL, `skill_id` int(11) NOT NULL, `skill_level` int(3) NOT NULL DEFAULT '1', PRIMARY KEY (`player_id`,`skill_id`), CONSTRAINT `player_skills_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_titles` -- ---------------------------- CREATE TABLE `player_titles` ( `player_id` int(11) NOT NULL, `title_id` int(11) NOT NULL, `remaining` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`player_id`,`title_id`), CONSTRAINT `player_titles_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_veteran_rewards` -- ---------------------------- CREATE TABLE `player_veteran_rewards` ( `player_id` int(11) NOT NULL, `received_months` tinyint unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`player_id`), CONSTRAINT `player_veteran_rewards_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `player_web_rewards` -- ---------------------------- CREATE TABLE `player_web_rewards` ( `entry_id` int(11) NOT NULL AUTO_INCREMENT, `player_id` int(11) NOT NULL, `item_id` int(9) NOT NULL, `item_count` bigint(20) NOT NULL DEFAULT '1', `added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `received` timestamp NULL DEFAULT NULL, `order_id` varchar(10) NULL DEFAULT NULL, PRIMARY KEY (`entry_id`), KEY `item_owner` (`player_id`), UNIQUE (`order_id`), CONSTRAINT `player_web_rewards_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `players` -- ---------------------------- CREATE TABLE `players` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `account_id` int(11) NOT NULL, `account_name` varchar(50) NOT NULL, `exp` bigint(20) NOT NULL DEFAULT '0', `recoverexp` bigint(20) NOT NULL DEFAULT '0', `old_level` tinyint(4) NOT NULL DEFAULT '0', `x` float NOT NULL, `y` float NOT NULL, `z` float NOT NULL, `heading` int(11) NOT NULL, `world_id` int(11) NOT NULL, `world_owner` int(11) NOT NULL DEFAULT '0', `gender` enum('MALE','FEMALE') NOT NULL, `race` enum('ASMODIANS','ELYOS') NOT NULL, `player_class` enum('WARRIOR','GLADIATOR','TEMPLAR','SCOUT','ASSASSIN','RANGER','MAGE','SORCERER','SPIRIT_MASTER','PRIEST','CLERIC','CHANTER','ENGINEER','GUNNER','ARTIST','BARD','RIDER','ALL') NOT NULL, `creation_date` timestamp NULL DEFAULT NULL, `deletion_date` timestamp NULL DEFAULT NULL, `last_online` timestamp NULL DEFAULT NULL, `quest_expands` tinyint(1) NOT NULL DEFAULT '0', `npc_expands` tinyint(1) NOT NULL DEFAULT '0', `item_expands` tinyint(1) NOT NULL DEFAULT '0', `wh_npc_expands` tinyint(1) NOT NULL DEFAULT '0', `wh_bonus_expands` tinyint(1) NOT NULL DEFAULT '0', `mailbox_letters` tinyint(4) unsigned NOT NULL DEFAULT '0', `title_id` int(3) NOT NULL DEFAULT '-1', `bonus_title_id` int(3) NOT NULL DEFAULT '-1', `dp` int(3) NOT NULL DEFAULT '0', `soul_sickness` tinyint(1) unsigned NOT NULL DEFAULT '0', `reposte_energy` bigint(20) NOT NULL DEFAULT '0', `online` tinyint(1) NOT NULL DEFAULT '0', `note` text, `mentor_flag_time` int(11) NOT NULL DEFAULT '0', `last_transfer_time` decimal(20,0) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `name_unique` (`name`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `portal_cooldowns` -- ---------------------------- CREATE TABLE `portal_cooldowns` ( `player_id` int(11) NOT NULL, `world_id` int(11) NOT NULL, `reuse_time` bigint(13) NOT NULL, `entry_count` int(11) NOT NULL, PRIMARY KEY (`player_id`,`world_id`), CONSTRAINT `portal_cooldowns_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `server_variables` -- ---------------------------- CREATE TABLE `server_variables` ( `key` varchar(30) NOT NULL, `value` varchar(30) NOT NULL, PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `siege_locations` -- ---------------------------- CREATE TABLE `siege_locations` ( `id` int(11) NOT NULL, `race` enum('ELYOS','ASMODIANS','BALAUR') NOT NULL, `legion_id` int(11) NOT NULL, `occupy_count` tinyint(4) NOT NULL DEFAULT '0', `faction_balance` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `surveys` -- ---------------------------- CREATE TABLE `surveys` ( `unique_id` int(11) NOT NULL AUTO_INCREMENT, `owner_id` int(11) NOT NULL, `item_id` int(11) NOT NULL, `item_count` decimal(20,0) NOT NULL DEFAULT '1', `html_text` text NOT NULL, `html_radio` varchar(100) NOT NULL DEFAULT 'accept', `used` tinyint(1) NOT NULL DEFAULT '0', `used_time` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`unique_id`), KEY `owner_id` (`owner_id`), CONSTRAINT `surveys_ibfk_1` FOREIGN KEY (`owner_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Table structure for `towns` -- ---------------------------- CREATE TABLE `towns` ( `id` int(11) NOT NULL, `level` int(11) NOT NULL DEFAULT '1', `points` int(10) NOT NULL DEFAULT '0', `race` enum('ELYOS','ASMODIANS') NOT NULL, `level_up_date` timestamp NOT NULL DEFAULT '1970-01-01 07:00:01', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;