landsandboat/sql/char_stats.sql
WinterSolstice8 cb0c7607d0 [core] [lua] [sql] Destroy nameflags and replace with a more sane system
Co-authored-by: atom0s <atom0s@live.com>
2024-04-19 20:53:02 -06:00

33 lines
1.3 KiB
SQL

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!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 */;
--
-- Structure de la table `char_stats`
--
DROP TABLE IF EXISTS `char_stats`;
CREATE TABLE IF NOT EXISTS `char_stats` (
`charid` int(10) unsigned NOT NULL,
`hp` smallint(4) unsigned NOT NULL DEFAULT '50',
`mp` smallint(4) unsigned NOT NULL DEFAULT '50',
`mhflag` smallint(4) unsigned NOT NULL DEFAULT '0',
`mjob` tinyint(2) unsigned NOT NULL DEFAULT '0',
`sjob` tinyint(2) unsigned NOT NULL DEFAULT '0',
`death` int(10) unsigned NOT NULL DEFAULT '0',
`2h` int(10) unsigned NOT NULL DEFAULT '0',
`title` smallint(4) unsigned NOT NULL DEFAULT '0',
`bazaar_message` BLOB,
`zoning` tinyint(1) unsigned NOT NULL DEFAULT '0',
`mlvl` tinyint(2) unsigned NOT NULL DEFAULT '1',
`slvl` tinyint(2) unsigned NOT NULL DEFAULT '1',
`pet_id` smallint(3) unsigned NOT NULL DEFAULT '0',
`pet_type` smallint(3) unsigned NOT NULL DEFAULT '0',
`pet_level` smallint(3) unsigned NOT NULL DEFAULT '0',
`pet_hp` smallint(4) unsigned NOT NULL DEFAULT '0',
`pet_mp` smallint(4) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`charid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;