characters.sql 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. -- ---------------------------
  2. -- Table structure for characters
  3. -- ---------------------------
  4. CREATE TABLE IF NOT EXISTS `characters` (
  5. `account_name` VARCHAR(45) DEFAULT NULL,
  6. `charId` INT UNSIGNED NOT NULL DEFAULT 0,
  7. `char_name` VARCHAR(35) NOT NULL,
  8. `level` TINYINT UNSIGNED DEFAULT NULL,
  9. `maxHp` MEDIUMINT UNSIGNED DEFAULT NULL,
  10. `curHp` MEDIUMINT UNSIGNED DEFAULT NULL,
  11. `maxCp` MEDIUMINT UNSIGNED DEFAULT NULL,
  12. `curCp` MEDIUMINT UNSIGNED DEFAULT NULL,
  13. `maxMp` MEDIUMINT UNSIGNED DEFAULT NULL,
  14. `curMp` MEDIUMINT UNSIGNED DEFAULT NULL,
  15. `face` TINYINT UNSIGNED DEFAULT NULL,
  16. `hairStyle` TINYINT UNSIGNED DEFAULT NULL,
  17. `hairColor` TINYINT UNSIGNED DEFAULT NULL,
  18. `sex` TINYINT UNSIGNED DEFAULT NULL,
  19. `heading` MEDIUMINT DEFAULT NULL,
  20. `x` MEDIUMINT DEFAULT NULL,
  21. `y` MEDIUMINT DEFAULT NULL,
  22. `z` MEDIUMINT DEFAULT NULL,
  23. `exp` BIGINT UNSIGNED DEFAULT 0,
  24. `expBeforeDeath` BIGINT UNSIGNED DEFAULT 0,
  25. `sp` INT UNSIGNED NOT NULL DEFAULT 0,
  26. `karma` INT UNSIGNED DEFAULT NULL,
  27. `fame` MEDIUMINT UNSIGNED NOT NULL default 0,
  28. `pvpkills` SMALLINT UNSIGNED DEFAULT NULL,
  29. `pkkills` SMALLINT UNSIGNED DEFAULT NULL,
  30. `clanid` INT UNSIGNED DEFAULT NULL,
  31. `race` TINYINT UNSIGNED DEFAULT NULL,
  32. `classid` TINYINT UNSIGNED DEFAULT NULL,
  33. `base_class` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  34. `transform_id` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
  35. `deletetime` BIGINT DEFAULT NULL,
  36. `cancraft` TINYINT UNSIGNED DEFAULT NULL,
  37. `title` VARCHAR(16) DEFAULT NULL,
  38. `rec_have` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  39. `rec_left` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  40. `accesslevel` MEDIUMINT DEFAULT 0,
  41. `online` TINYINT UNSIGNED DEFAULT NULL,
  42. `onlinetime` INT DEFAULT NULL,
  43. `char_slot` TINYINT UNSIGNED DEFAULT NULL,
  44. `newbie` MEDIUMINT UNSIGNED DEFAULT 1,
  45. `lastAccess` BIGINT UNSIGNED DEFAULT NULL,
  46. `clan_privs` MEDIUMINT UNSIGNED DEFAULT 0,
  47. `wantspeace` TINYINT UNSIGNED DEFAULT 0,
  48. `isin7sdungeon` TINYINT UNSIGNED NOT NULL default 0,
  49. `punish_level` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  50. `punish_timer` INT UNSIGNED NOT NULL DEFAULT 0,
  51. `power_grade` TINYINT UNSIGNED DEFAULT NULL,
  52. `nobless` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  53. `subpledge` SMALLINT NOT NULL DEFAULT 0,
  54. `last_recom_date` BIGINT UNSIGNED NOT NULL DEFAULT 0,
  55. `lvl_joined_academy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  56. `apprentice` INT UNSIGNED NOT NULL DEFAULT 0,
  57. `sponsor` INT UNSIGNED NOT NULL DEFAULT 0,
  58. `varka_ketra_ally` TINYINT NOT NULL DEFAULT 0,
  59. `clan_join_expiry_time` BIGINT UNSIGNED NOT NULL DEFAULT 0,
  60. `clan_create_expiry_time` BIGINT UNSIGNED NOT NULL DEFAULT 0,
  61. `death_penalty_level` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
  62. PRIMARY KEY (`charId`),
  63. KEY `clanid` (`clanid`)
  64. );