landsandboat/sql/chars.sql

55 lines
2.3 KiB
MySQL
Raw Permalink Normal View History

2015-08-07 01:16:16 -04:00
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for chars
-- ----------------------------
DROP TABLE IF EXISTS `chars`;
CREATE TABLE `chars` (
`charid` int(10) unsigned NOT NULL,
`accid` int(10) unsigned NOT NULL,
`original_accid` int(10) unsigned NOT NULL DEFAULT '0',
`charname` varchar(15) NOT NULL,
`nation` tinyint(1) unsigned NOT NULL DEFAULT '0',
2013-03-31 19:22:04 +00:00
`pos_zone` smallint(3) unsigned NOT NULL,
`pos_prevzone` smallint(3) unsigned NOT NULL DEFAULT '0',
2025-10-21 18:40:40 +01:00
`pos_prevzonelineid` int(10) unsigned NOT NULL DEFAULT '0',
`pos_rot` tinyint(3) unsigned NOT NULL DEFAULT '0',
`pos_x` float(7,3) NOT NULL DEFAULT '0.000',
`pos_y` float(7,3) NOT NULL DEFAULT '0.000',
`pos_z` float(7,3) NOT NULL DEFAULT '0.000',
`moghouse` int(10) unsigned NOT NULL DEFAULT '0',
`boundary` smallint(5) unsigned NOT NULL DEFAULT '0',
`home_zone` smallint(5) unsigned NOT NULL DEFAULT '0',
`home_rot` tinyint(3) unsigned NOT NULL DEFAULT '0',
`home_x` float(7,3) NOT NULL DEFAULT '0.000',
`home_y` float(7,3) NOT NULL DEFAULT '0.000',
`home_z` float(7,3) NOT NULL DEFAULT '0.000',
2015-08-07 01:16:16 -04:00
`missions` blob,
`assault` blob,
`campaign` blob,
`eminence` blob,
`quests` blob,
`keyitems` blob,
`set_blue_spells` blob,
`abilities` blob,
2016-07-07 19:28:54 -06:00
`weaponskills` blob,
2012-10-13 18:44:06 +00:00
`titles` blob,
`zones` blob,
2012-10-25 15:15:09 +00:00
`playtime` int(10) unsigned NOT NULL DEFAULT '0',
2015-08-07 01:16:16 -04:00
`unlocked_weapons` blob,
`gmlevel` smallint(3) unsigned NOT NULL DEFAULT '0',
`languages` tinyint(1) unsigned NULL DEFAULT '0',
2015-08-07 01:16:16 -04:00
`mentor` smallint(3) NOT NULL DEFAULT '0',
`job_master` tinyint(1) unsigned NOT NULL DEFAULT '1',
2015-08-07 01:16:16 -04:00
`campaign_allegiance` tinyint(1) unsigned NOT NULL DEFAULT '0',
`isstylelocked` tinyint(1) NOT NULL DEFAULT '0',
`settings` bigint(20) unsigned NOT NULL DEFAULT '0',
`chatfilters_1` bigint(20) unsigned NOT NULL DEFAULT '0',
`chatfilters_2` bigint(20) unsigned NOT NULL DEFAULT '0',
`moghancement` smallint(4) unsigned NOT NULL DEFAULT '0',
`timecreated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
2025-07-24 23:14:14 -06:00
`last_logout` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastupdate` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`charid`),
FULLTEXT KEY `charname` (`charname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;