logs.sql 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. --
  2. -- Table structure for table `atcommandlog`
  3. --
  4. CREATE TABLE IF NOT EXISTS `atcommandlog` (
  5. `atcommand_id` mediumint(9) unsigned NOT NULL auto_increment,
  6. `atcommand_date` datetime NOT NULL,
  7. `account_id` int(11) unsigned NOT NULL default '0',
  8. `char_id` int(11) unsigned NOT NULL default '0',
  9. `char_name` varchar(25) NOT NULL default '',
  10. `map` varchar(11) NOT NULL default '',
  11. `command` varchar(255) NOT NULL default '',
  12. PRIMARY KEY (`atcommand_id`),
  13. INDEX (`account_id`),
  14. INDEX (`char_id`)
  15. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  16. --
  17. -- Table structure for table `branchlog`
  18. --
  19. CREATE TABLE IF NOT EXISTS `branchlog` (
  20. `branch_id` mediumint(9) unsigned NOT NULL auto_increment,
  21. `branch_date` datetime NOT NULL,
  22. `account_id` int(11) NOT NULL default '0',
  23. `char_id` int(11) NOT NULL default '0',
  24. `char_name` varchar(25) NOT NULL default '',
  25. `map` varchar(11) NOT NULL default '',
  26. PRIMARY KEY (`branch_id`),
  27. INDEX (`account_id`),
  28. INDEX (`char_id`)
  29. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  30. --
  31. -- Table structure for table `cashlog`
  32. --
  33. CREATE TABLE IF NOT EXISTS `cashlog` (
  34. `id` int(11) NOT NULL AUTO_INCREMENT,
  35. `time` datetime NOT NULL,
  36. `char_id` int(11) NOT NULL DEFAULT '0',
  37. `type` enum('T','V','P','M','S','N','D','C','A','E','I','B','$') NOT NULL DEFAULT 'S',
  38. `cash_type` enum('O','K','C') NOT NULL DEFAULT 'O',
  39. `amount` int(11) NOT NULL DEFAULT '0',
  40. `map` varchar(11) NOT NULL DEFAULT '',
  41. PRIMARY KEY (`id`),
  42. INDEX `type` (`type`)
  43. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  44. --
  45. -- Table structure for table `chatlog`
  46. --
  47. # ChatLog types
  48. # Gl(O)bal
  49. # (W)hisper
  50. # (P)arty
  51. # (G)uild
  52. # (M)ain chat
  53. # (C)lan
  54. CREATE TABLE IF NOT EXISTS `chatlog` (
  55. `id` bigint(20) NOT NULL auto_increment,
  56. `time` datetime NOT NULL,
  57. `type` enum('O','W','P','G','M','C') NOT NULL default 'O',
  58. `type_id` int(11) NOT NULL default '0',
  59. `src_charid` int(11) NOT NULL default '0',
  60. `src_accountid` int(11) NOT NULL default '0',
  61. `src_map` varchar(11) NOT NULL default '',
  62. `src_map_x` smallint(4) NOT NULL default '0',
  63. `src_map_y` smallint(4) NOT NULL default '0',
  64. `dst_charname` varchar(25) NOT NULL default '',
  65. `message` varchar(150) NOT NULL default '',
  66. PRIMARY KEY (`id`),
  67. INDEX (`src_accountid`),
  68. INDEX (`src_charid`)
  69. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  70. --
  71. -- Table structure for table `feedinglog`
  72. --
  73. CREATE TABLE IF NOT EXISTS `feedinglog` (
  74. `id` INT(11) NOT NULL AUTO_INCREMENT,
  75. `time` DATETIME NOT NULL,
  76. `char_id` INT(11) NOT NULL,
  77. `target_id` INT(11) NOT NULL,
  78. `target_class` SMALLINT(11) NOT NULL,
  79. `type` ENUM('P','H','O') NOT NULL, -- P: Pet, H: Homunculus, O: Other
  80. `intimacy` INT(11) UNSIGNED NOT NULL,
  81. `item_id` int(10) UNSIGNED NOT NULL,
  82. `map` VARCHAR(11) NOT NULL,
  83. `x` SMALLINT(5) UNSIGNED NOT NULL,
  84. `y` SMALLINT(5) UNSIGNED NOT NULL,
  85. PRIMARY KEY (`id`)
  86. ) ENGINE = MyISAM AUTO_INCREMENT = 1;
  87. --
  88. -- Table structure for table `loginlog`
  89. --
  90. CREATE TABLE IF NOT EXISTS `loginlog` (
  91. `time` datetime NOT NULL,
  92. `ip` varchar(15) NOT NULL default '',
  93. `user` varchar(23) NOT NULL default '',
  94. `rcode` tinyint(4) NOT NULL default '0',
  95. `log` varchar(255) NOT NULL default '',
  96. INDEX (`ip`)
  97. ) ENGINE=MyISAM ;
  98. --
  99. -- Table structure for table `mvplog`
  100. --
  101. CREATE TABLE IF NOT EXISTS `mvplog` (
  102. `mvp_id` mediumint(9) unsigned NOT NULL auto_increment,
  103. `mvp_date` datetime NOT NULL,
  104. `kill_char_id` int(11) NOT NULL default '0',
  105. `monster_id` smallint(6) NOT NULL default '0',
  106. `prize` int(10) unsigned NOT NULL default '0',
  107. `mvpexp` bigint(20) unsigned NOT NULL default '0',
  108. `map` varchar(11) NOT NULL default '',
  109. PRIMARY KEY (`mvp_id`)
  110. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  111. --
  112. -- Table structure for table `npclog`
  113. --
  114. CREATE TABLE IF NOT EXISTS `npclog` (
  115. `npc_id` mediumint(9) unsigned NOT NULL auto_increment,
  116. `npc_date` datetime NOT NULL,
  117. `account_id` int(11) unsigned NOT NULL default '0',
  118. `char_id` int(11) unsigned NOT NULL default '0',
  119. `char_name` varchar(25) NOT NULL default '',
  120. `map` varchar(11) NOT NULL default '',
  121. `mes` varchar(255) NOT NULL default '',
  122. PRIMARY KEY (`npc_id`),
  123. INDEX (`account_id`),
  124. INDEX (`char_id`)
  125. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  126. --
  127. -- Table structure for table `picklog`
  128. --
  129. # PickLog types
  130. # (M)onsters Drop
  131. # (P)layers Drop/Take
  132. # Mobs Drop (L)oot Drop/Take
  133. # Players (T)rade Give/Take
  134. # Players (V)ending Sell/Take
  135. # (S)hop Sell/Take
  136. # (N)PC Give/Take
  137. # (C)onsumable Items
  138. # (A)dministrators Create/Delete
  139. # Sto(R)age
  140. # (G)uild Storage
  141. # (E)mail attachment
  142. # (B)uying Store
  143. # Pr(O)duced Items/Ingredients
  144. # Auct(I)oned Items
  145. # (X) Other
  146. # (D) Stolen from mobs
  147. # (U) MVP Prizes
  148. # ($) Cash
  149. # (F) Guild/Party Bound retrieval
  150. # Lotter(Y)
  151. # (Z) Merged Items
  152. # (Q)uest
  153. # Private Airs(H)ip
  154. # Barter Shop (J)
  155. # Laphine systems (W)
  156. # Enchantgrade UI (0)
  157. # Reform UI (1)
  158. # Enchant UI (2)
  159. CREATE TABLE IF NOT EXISTS `picklog` (
  160. `id` int(11) NOT NULL auto_increment,
  161. `time` datetime NOT NULL,
  162. `char_id` int(11) NOT NULL default '0',
  163. `type` enum('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X','D','U','$','F','Y','Z','Q','H','J','W','0','1','2','3') NOT NULL default 'P',
  164. `nameid` int(10) unsigned NOT NULL default '0',
  165. `amount` int(11) NOT NULL default '1',
  166. `refine` tinyint(3) unsigned NOT NULL default '0',
  167. `card0` int(10) unsigned NOT NULL default '0',
  168. `card1` int(10) unsigned NOT NULL default '0',
  169. `card2` int(10) unsigned NOT NULL default '0',
  170. `card3` int(10) unsigned NOT NULL default '0',
  171. `option_id0` smallint(5) NOT NULL default '0',
  172. `option_val0` smallint(5) NOT NULL default '0',
  173. `option_parm0` tinyint(3) NOT NULL default '0',
  174. `option_id1` smallint(5) NOT NULL default '0',
  175. `option_val1` smallint(5) NOT NULL default '0',
  176. `option_parm1` tinyint(3) NOT NULL default '0',
  177. `option_id2` smallint(5) NOT NULL default '0',
  178. `option_val2` smallint(5) NOT NULL default '0',
  179. `option_parm2` tinyint(3) NOT NULL default '0',
  180. `option_id3` smallint(5) NOT NULL default '0',
  181. `option_val3` smallint(5) NOT NULL default '0',
  182. `option_parm3` tinyint(3) NOT NULL default '0',
  183. `option_id4` smallint(5) NOT NULL default '0',
  184. `option_val4` smallint(5) NOT NULL default '0',
  185. `option_parm4` tinyint(3) NOT NULL default '0',
  186. `unique_id` bigint(20) unsigned NOT NULL default '0',
  187. `map` varchar(11) NOT NULL default '',
  188. `bound` tinyint(1) unsigned NOT NULL default '0',
  189. `enchantgrade` tinyint unsigned NOT NULL default '0',
  190. PRIMARY KEY (`id`),
  191. INDEX (`type`)
  192. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  193. --
  194. -- Table structure for table `zenylog`
  195. --
  196. # ZenyLog types
  197. # (T)rade
  198. # (V)ending Sell/Buy
  199. # (P)layers Drop/Take
  200. # (M)onsters
  201. # (S)hop Sell/Buy
  202. # (N)PC Change amount
  203. # (D) Stolen from mobs
  204. # (C)onsumable Items
  205. # (A)dministrators
  206. # (E)Mail
  207. # Auct(I)on
  208. # (B)uying Store
  209. # Ban(K) Transactions
  210. # Barter Shop (J)
  211. # (X) Other
  212. # Enchantgrade UI (0)
  213. # Enchant UI (2)
  214. CREATE TABLE IF NOT EXISTS `zenylog` (
  215. `id` int(11) NOT NULL auto_increment,
  216. `time` datetime NOT NULL,
  217. `char_id` int(11) NOT NULL default '0',
  218. `src_id` int(11) NOT NULL default '0',
  219. `type` enum('T','V','P','M','S','N','D','C','A','E','I','B','K','J','X','0','2') NOT NULL default 'S',
  220. `amount` int(11) NOT NULL default '0',
  221. `map` varchar(11) NOT NULL default '',
  222. PRIMARY KEY (`id`),
  223. INDEX (`type`)
  224. ) ENGINE=MyISAM AUTO_INCREMENT=1;