logs.sql 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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` SMALLINT(5) 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` smallint(5) 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. # (F) Guild/Party Bound retrieval
  149. # Lotter(Y)
  150. # (Z) Merged Items
  151. # (Q)uest
  152. # Private Airs(H)ip
  153. CREATE TABLE IF NOT EXISTS `picklog` (
  154. `id` int(11) NOT NULL auto_increment,
  155. `time` datetime NOT NULL,
  156. `char_id` int(11) NOT NULL default '0',
  157. `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') NOT NULL default 'P',
  158. `nameid` smallint(5) unsigned NOT NULL default '0',
  159. `amount` int(11) NOT NULL default '1',
  160. `refine` tinyint(3) unsigned NOT NULL default '0',
  161. `card0` smallint(5) unsigned NOT NULL default '0',
  162. `card1` smallint(5) unsigned NOT NULL default '0',
  163. `card2` smallint(5) unsigned NOT NULL default '0',
  164. `card3` smallint(5) unsigned NOT NULL default '0',
  165. `option_id0` smallint(5) NOT NULL default '0',
  166. `option_val0` smallint(5) NOT NULL default '0',
  167. `option_parm0` tinyint(3) NOT NULL default '0',
  168. `option_id1` smallint(5) NOT NULL default '0',
  169. `option_val1` smallint(5) NOT NULL default '0',
  170. `option_parm1` tinyint(3) NOT NULL default '0',
  171. `option_id2` smallint(5) NOT NULL default '0',
  172. `option_val2` smallint(5) NOT NULL default '0',
  173. `option_parm2` tinyint(3) NOT NULL default '0',
  174. `option_id3` smallint(5) NOT NULL default '0',
  175. `option_val3` smallint(5) NOT NULL default '0',
  176. `option_parm3` tinyint(3) NOT NULL default '0',
  177. `option_id4` smallint(5) NOT NULL default '0',
  178. `option_val4` smallint(5) NOT NULL default '0',
  179. `option_parm4` tinyint(3) NOT NULL default '0',
  180. `unique_id` bigint(20) unsigned NOT NULL default '0',
  181. `map` varchar(11) NOT NULL default '',
  182. `bound` tinyint(1) unsigned NOT NULL default '0',
  183. PRIMARY KEY (`id`),
  184. INDEX (`type`)
  185. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  186. --
  187. -- Table structure for table `zenylog`
  188. --
  189. # ZenyLog types
  190. # (M)onsters
  191. # (T)rade
  192. # (V)ending Sell/Buy
  193. # (S)hop Sell/Buy
  194. # (N)PC Change amount
  195. # (A)dministrators
  196. # (E)Mail
  197. # (B)uying Store
  198. # Ban(K) Transactions
  199. CREATE TABLE IF NOT EXISTS `zenylog` (
  200. `id` int(11) NOT NULL auto_increment,
  201. `time` datetime NOT NULL,
  202. `char_id` int(11) NOT NULL default '0',
  203. `src_id` int(11) NOT NULL default '0',
  204. `type` enum('T','V','P','M','S','N','D','C','A','E','I','B','K') NOT NULL default 'S',
  205. `amount` int(11) NOT NULL default '0',
  206. `map` varchar(11) NOT NULL default '',
  207. PRIMARY KEY (`id`),
  208. INDEX (`type`)
  209. ) ENGINE=MyISAM AUTO_INCREMENT=1;