DROP TABLE IF EXISTS `login_characters`; CREATE TABLE `login_characters` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL DEFAULT 0, `server_id` int(10) unsigned NOT NULL DEFAULT 0, `name` varchar(64) NOT NULL DEFAULT '', `race` tinyint(3) unsigned NOT NULL DEFAULT 0, `class` tinyint(3) unsigned NOT NULL DEFAULT 0, `gender` tinyint(3) unsigned NOT NULL DEFAULT 0, `deity` tinyint(3) unsigned NOT NULL DEFAULT 0, `body_size` float NOT NULL DEFAULT 0, `body_age` float NOT NULL DEFAULT 0, `current_zone` varchar(64) NOT NULL DEFAULT 'antonica', `current_zone_id` int(10) unsigned NOT NULL DEFAULT 0, `level` int(10) unsigned NOT NULL DEFAULT 1, `tradeskill_class` tinyint(3) unsigned NOT NULL DEFAULT 0, `tradeskill_level` int(10) unsigned NOT NULL DEFAULT 1, `soga_wing_type` mediumint(8) unsigned NOT NULL, `soga_chest_type` mediumint(8) unsigned NOT NULL, `soga_legs_type` mediumint(8) unsigned NOT NULL, `soga_hair_type` mediumint(8) unsigned NOT NULL, `soga_facial_hair_type` mediumint(8) unsigned NOT NULL DEFAULT 0, `legs_type` mediumint(8) unsigned NOT NULL, `chest_type` mediumint(8) unsigned NOT NULL, `wing_type` mediumint(8) unsigned NOT NULL, `hair_type` mediumint(8) unsigned NOT NULL, `facial_hair_type` mediumint(8) unsigned NOT NULL DEFAULT 0, `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, `unix_timestamp` int(10) NOT NULL DEFAULT 0, `created_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `last_played` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `char_id` int(11) NOT NULL DEFAULT 0, `soga_model_type` mediumint(8) NOT NULL DEFAULT 0, `model_type` mediumint(8) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `ServerIDX` (`account_id`,`server_id`,`char_id`) );