eq2_login.sql 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. # HeidiSQL Dump
  2. #
  3. # --------------------------------------------------------
  4. # Host: 69.60.121.221
  5. # Database: eq2_login
  6. # Server version: 5.0.27
  7. # Server OS: redhat-linux-gnu
  8. # Target-Compatibility: Standard ANSI SQL
  9. # HeidiSQL version: 3.2 Revision: 1129
  10. # --------------------------------------------------------
  11. /*!40100 SET CHARACTER SET latin1;*/
  12. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ANSI';*/
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;*/
  14. DROP TABLE IF EXISTS "account";
  15. #
  16. # Table structure for table 'account'
  17. #
  18. CREATE TABLE "account" (
  19. "id" int(10) unsigned NOT NULL auto_increment,
  20. "name" varchar(64) NOT NULL default '',
  21. "passwd" varchar(64) NOT NULL default '',
  22. "ip_address" varchar(50) NOT NULL default '0',
  23. "email_address" varchar(50) NOT NULL default 'Unknown',
  24. PRIMARY KEY ("id"),
  25. UNIQUE KEY "Name" ("name")
  26. ) AUTO_INCREMENT=3633 /*!40100 DEFAULT CHARSET=latin1*/;
  27. DROP TABLE IF EXISTS "appearances";
  28. #
  29. # Table structure for table 'appearances'
  30. #
  31. CREATE TABLE "appearances" (
  32. "id" int(10) unsigned NOT NULL auto_increment,
  33. "appearance_id" int(10) unsigned NOT NULL,
  34. "name" varchar(250) default NULL,
  35. "table_data_version" smallint(5) unsigned NOT NULL default '1',
  36. PRIMARY KEY ("id"),
  37. UNIQUE KEY "AppID" ("appearance_id")
  38. ) AUTO_INCREMENT=15933 /*!40100 DEFAULT CHARSET=latin1*/;
  39. DROP TABLE IF EXISTS "bugs";
  40. #
  41. # Table structure for table 'bugs'
  42. #
  43. CREATE TABLE "bugs" (
  44. "id" int(10) unsigned NOT NULL auto_increment,
  45. "Status" enum('New','Invalid','Fixed') NOT NULL default 'New',
  46. "world_id" int(10) unsigned NOT NULL default '0',
  47. "account_id" int(10) unsigned NOT NULL default '0',
  48. "player" varchar(64) NOT NULL default ' ',
  49. "category" varchar(64) NOT NULL default ' ',
  50. "subcategory" varchar(64) NOT NULL default ' ',
  51. "causes_crash" varchar(64) NOT NULL default ' ',
  52. "reproducible" varchar(64) NOT NULL default ' ',
  53. "summary" varchar(128) NOT NULL default ' ',
  54. "description" text NOT NULL,
  55. "version" varchar(32) NOT NULL default ' ',
  56. "spawn_name" varchar(64) NOT NULL default 'N/A',
  57. "spawn_id" int(10) unsigned NOT NULL default '0',
  58. "bug_datetime" timestamp NOT NULL default CURRENT_TIMESTAMP,
  59. "zone_id" int(10) unsigned NOT NULL default '0',
  60. PRIMARY KEY ("id")
  61. ) AUTO_INCREMENT=38 /*!40100 DEFAULT CHARSET=latin1*/;
  62. DROP TABLE IF EXISTS "command_list";
  63. #
  64. # Table structure for table 'command_list'
  65. #
  66. CREATE TABLE "command_list" (
  67. "id" int(10) unsigned NOT NULL auto_increment,
  68. "type" enum('NPC','OBJECT','PLAYER') NOT NULL default 'NPC',
  69. "sub_type" enum('NORMAL','DEFAULT','DEFAULT_ATTACKABLE') NOT NULL default 'NORMAL',
  70. "spawn_id" int(10) unsigned NOT NULL default '0',
  71. "distance" float NOT NULL default '0',
  72. "command_text" varchar(32) NOT NULL default '',
  73. "command" varchar(32) NOT NULL default '',
  74. "comment" varchar(255) NOT NULL default '',
  75. "table_data_version" smallint(5) unsigned NOT NULL default '1',
  76. PRIMARY KEY ("id")
  77. ) AUTO_INCREMENT=6 /*!40100 DEFAULT CHARSET=latin1*/;
  78. DROP TABLE IF EXISTS "commands";
  79. #
  80. # Table structure for table 'commands'
  81. #
  82. CREATE TABLE "commands" (
  83. "id" int(10) unsigned NOT NULL auto_increment,
  84. "name" varchar(64) NOT NULL default '',
  85. "subcommand" varchar(64) NOT NULL,
  86. "handler" int(10) unsigned NOT NULL default '0',
  87. "required_status" smallint(5) NOT NULL default '0',
  88. "table_data_version" smallint(5) unsigned NOT NULL default '1',
  89. PRIMARY KEY ("id"),
  90. UNIQUE KEY "NewIndex" ("name","subcommand")
  91. ) AUTO_INCREMENT=217 /*!40100 DEFAULT CHARSET=latin1*/;
  92. DROP TABLE IF EXISTS "download_limits";
  93. #
  94. # Table structure for table 'download_limits'
  95. #
  96. CREATE TABLE "download_limits" (
  97. "id" int(10) unsigned NOT NULL auto_increment,
  98. "username" varchar(64) default NULL,
  99. "ip_address" varchar(20) default NULL,
  100. "table_name" varchar(64) default NULL,
  101. "table_version" int(10) unsigned NOT NULL default '0',
  102. "data_version" int(10) unsigned NOT NULL default '0',
  103. "num_data_downloads" tinyint(3) unsigned NOT NULL default '0',
  104. "num_table_downloads" tinyint(3) unsigned NOT NULL default '0',
  105. "update_time" timestamp NOT NULL default CURRENT_TIMESTAMP,
  106. PRIMARY KEY ("id"),
  107. UNIQUE KEY "id" ("id"),
  108. KEY "id_2" ("id")
  109. ) /*!40100 DEFAULT CHARSET=latin1*/;
  110. DROP TABLE IF EXISTS "download_tables";
  111. #
  112. # Table structure for table 'download_tables'
  113. #
  114. CREATE TABLE "download_tables" (
  115. "id" int(3) unsigned NOT NULL auto_increment,
  116. "table_name" varchar(64) NOT NULL default '',
  117. PRIMARY KEY ("id")
  118. ) AUTO_INCREMENT=32 /*!40100 DEFAULT CHARSET=latin1*/;
  119. DROP TABLE IF EXISTS "factions";
  120. #
  121. # Table structure for table 'factions'
  122. #
  123. CREATE TABLE "factions" (
  124. "id" int(10) unsigned NOT NULL auto_increment,
  125. "name" varchar(64) NOT NULL default '',
  126. "type" varchar(32) NOT NULL default '',
  127. "description" text NOT NULL,
  128. "default_level" mediumint(9) NOT NULL default '0',
  129. "negative_change" smallint(5) unsigned NOT NULL default '1',
  130. "positive_change" smallint(5) unsigned NOT NULL default '75',
  131. "table_data_version" smallint(5) unsigned NOT NULL default '1',
  132. PRIMARY KEY ("id")
  133. ) AUTO_INCREMENT=154 /*!40100 DEFAULT CHARSET=latin1*/;
  134. DROP TABLE IF EXISTS "log_messages";
  135. #
  136. # Table structure for table 'log_messages'
  137. #
  138. CREATE TABLE "log_messages" (
  139. "id" int(10) unsigned NOT NULL auto_increment,
  140. "time" timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  141. "type" varchar(64) NOT NULL,
  142. "message" text NOT NULL,
  143. "name" varchar(64) NOT NULL default '',
  144. "version" int(10) unsigned NOT NULL default '0',
  145. PRIMARY KEY ("id")
  146. ) AUTO_INCREMENT=20293 /*!40100 DEFAULT CHARSET=latin1*/;
  147. DROP TABLE IF EXISTS "login_char_colors";
  148. #
  149. # Table structure for table 'login_char_colors'
  150. #
  151. CREATE TABLE "login_char_colors" (
  152. "id" bigint(20) unsigned NOT NULL auto_increment,
  153. "char_id" int(10) unsigned NOT NULL,
  154. "signed_value" tinyint(4) NOT NULL default '0',
  155. "type" varchar(32) NOT NULL,
  156. "red" smallint(6) NOT NULL default '0',
  157. "green" smallint(6) NOT NULL default '0',
  158. "blue" smallint(6) NOT NULL default '0',
  159. PRIMARY KEY ("id"),
  160. UNIQUE KEY "id" ("id"),
  161. KEY "id_2" ("id"),
  162. KEY "CharID" ("char_id")
  163. ) AUTO_INCREMENT=320162 /*!40100 DEFAULT CHARSET=latin1*/;
  164. DROP TABLE IF EXISTS "login_characters";
  165. #
  166. # Table structure for table 'login_characters'
  167. #
  168. CREATE TABLE "login_characters" (
  169. "id" int(10) unsigned NOT NULL auto_increment,
  170. "account_id" int(10) unsigned NOT NULL default '0',
  171. "server_id" int(10) unsigned NOT NULL default '0',
  172. "name" varchar(64) NOT NULL default '',
  173. "race" tinyint(3) unsigned NOT NULL default '0',
  174. "class" tinyint(3) unsigned NOT NULL default '0',
  175. "gender" tinyint(3) unsigned NOT NULL default '0',
  176. "diety" tinyint(3) unsigned NOT NULL default '0',
  177. "body_size" float NOT NULL default '0',
  178. "body_age" float NOT NULL default '0',
  179. "current_zone" varchar(64) NOT NULL default 'antonica',
  180. "level" int(10) unsigned NOT NULL default '1',
  181. "tradeskill_level" int(10) unsigned NOT NULL default '1',
  182. "soga_wing_type" mediumint(8) unsigned NOT NULL,
  183. "soga_chest_type" mediumint(8) unsigned NOT NULL,
  184. "soga_legs_type" mediumint(8) unsigned NOT NULL,
  185. "soga_hair_type" mediumint(8) unsigned NOT NULL,
  186. "soga_race_type" mediumint(8) unsigned NOT NULL,
  187. "legs_type" mediumint(8) unsigned NOT NULL,
  188. "chest_type" mediumint(8) unsigned NOT NULL,
  189. "wing_type" mediumint(8) unsigned NOT NULL,
  190. "hair_type" mediumint(8) unsigned NOT NULL,
  191. "race_type" mediumint(8) unsigned NOT NULL,
  192. "deleted" tinyint(3) unsigned NOT NULL default '0',
  193. "unix_timestamp" int(10) NOT NULL default '0',
  194. "created_date" timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  195. "last_played" datetime NOT NULL default '0000-00-00 00:00:00',
  196. "char_id" int(11) NOT NULL default '0',
  197. PRIMARY KEY ("id")
  198. ) AUTO_INCREMENT=6880 /*!40100 DEFAULT CHARSET=latin1*/;
  199. DROP TABLE IF EXISTS "login_equipment";
  200. #
  201. # Table structure for table 'login_equipment'
  202. #
  203. CREATE TABLE "login_equipment" (
  204. "id" int(10) unsigned NOT NULL auto_increment,
  205. "char_id" int(10) unsigned NOT NULL default '0',
  206. "item_type" smallint(5) unsigned NOT NULL default '0',
  207. "color1" tinyint(3) unsigned NOT NULL default '255',
  208. "color2" tinyint(3) unsigned NOT NULL default '255',
  209. "color3" tinyint(3) unsigned NOT NULL default '255',
  210. "highlight1" tinyint(3) unsigned NOT NULL default '255',
  211. "highlight2" tinyint(3) unsigned NOT NULL default '255',
  212. "highlight3" tinyint(3) unsigned NOT NULL default '255',
  213. PRIMARY KEY ("id")
  214. ) AUTO_INCREMENT=26 /*!40100 DEFAULT CHARSET=latin1*/;
  215. DROP TABLE IF EXISTS "login_versions";
  216. #
  217. # Table structure for table 'login_versions'
  218. #
  219. CREATE TABLE "login_versions" (
  220. "id" smallint(5) unsigned NOT NULL auto_increment,
  221. "version" varchar(30) NOT NULL default '',
  222. PRIMARY KEY ("id"),
  223. UNIQUE KEY "NewIndex" ("version")
  224. ) AUTO_INCREMENT=7 /*!40100 DEFAULT CHARSET=latin1*/;
  225. DROP TABLE IF EXISTS "login_worldservers";
  226. #
  227. # Table structure for table 'login_worldservers'
  228. #
  229. CREATE TABLE "login_worldservers" (
  230. "id" int(11) unsigned NOT NULL auto_increment,
  231. "name" varchar(250) NOT NULL default '',
  232. "disabled" tinyint(3) unsigned NOT NULL default '0',
  233. "account" varchar(30) NOT NULL default '',
  234. "chat_shortname" varchar(20) NOT NULL default '',
  235. "description" text NOT NULL,
  236. "server_type" varchar(15) NOT NULL default '0',
  237. "password" varchar(32) NOT NULL,
  238. "serverop" varchar(64) NOT NULL default '',
  239. "lastseen" int(10) unsigned NOT NULL default '0',
  240. "admin_id" int(11) unsigned NOT NULL default '0',
  241. "greenname" tinyint(1) unsigned NOT NULL default '0',
  242. "showdown" tinyint(4) NOT NULL default '0',
  243. "chat" varchar(20) NOT NULL default '0',
  244. "note" tinytext NOT NULL,
  245. "ip_address" varchar(50) NOT NULL default '0',
  246. "reset_needed" tinyint(3) unsigned NOT NULL default '0',
  247. PRIMARY KEY ("id"),
  248. UNIQUE KEY "account" ("account")
  249. ) AUTO_INCREMENT=1425 /*!40100 DEFAULT CHARSET=latin1*/;
  250. DROP TABLE IF EXISTS "login_worldstats";
  251. #
  252. # Table structure for table 'login_worldstats'
  253. #
  254. CREATE TABLE "login_worldstats" (
  255. "id" int(11) unsigned NOT NULL auto_increment,
  256. "world_id" int(11) unsigned NOT NULL default '0',
  257. "world_status" int(11) NOT NULL default '-1',
  258. "current_players" int(11) unsigned NOT NULL default '0',
  259. "current_zones" int(11) unsigned NOT NULL default '0',
  260. "connected_time" timestamp NOT NULL default CURRENT_TIMESTAMP,
  261. "last_update" timestamp NOT NULL default '0000-00-00 00:00:00',
  262. PRIMARY KEY ("id"),
  263. UNIQUE KEY "NewIndex" ("world_id")
  264. ) AUTO_INCREMENT=6037 /*!40100 DEFAULT CHARSET=latin1*/;
  265. DROP TABLE IF EXISTS "opcodes";
  266. #
  267. # Table structure for table 'opcodes'
  268. #
  269. CREATE TABLE "opcodes" (
  270. "id" int(10) unsigned NOT NULL auto_increment,
  271. "version_range1" smallint(5) unsigned NOT NULL default '0',
  272. "version_range2" smallint(5) unsigned NOT NULL default '0',
  273. "name" varchar(255) NOT NULL default '',
  274. "opcode" smallint(5) unsigned NOT NULL default '0',
  275. "table_data_version" smallint(5) unsigned NOT NULL default '0',
  276. PRIMARY KEY ("id"),
  277. UNIQUE KEY "newindex" ("version_range1","name","version_range2")
  278. ) AUTO_INCREMENT=6168 /*!40100 DEFAULT CHARSET=latin1*/;
  279. DROP TABLE IF EXISTS "variables";
  280. #
  281. # Table structure for table 'variables'
  282. #
  283. CREATE TABLE "variables" (
  284. "variable_name" varchar(64) NOT NULL default '',
  285. "variable_value" varchar(256) NOT NULL default '',
  286. "table_data_version" smallint(5) unsigned NOT NULL default '1',
  287. PRIMARY KEY ("variable_name")
  288. ) /*!40100 DEFAULT CHARSET=latin1*/;
  289. DROP TABLE IF EXISTS "visual_states";
  290. #
  291. # Table structure for table 'visual_states'
  292. #
  293. CREATE TABLE "visual_states" (
  294. "id" int(10) unsigned NOT NULL auto_increment,
  295. "name" varchar(64) NOT NULL default 'None',
  296. "table_data_version" smallint(5) unsigned NOT NULL default '1',
  297. PRIMARY KEY ("id")
  298. ) AUTO_INCREMENT=48398 /*!40100 DEFAULT CHARSET=latin1*/;
  299. DROP TABLE IF EXISTS "zones";
  300. #
  301. # Table structure for table 'zones'
  302. #
  303. CREATE TABLE "zones" (
  304. "id" int(11) unsigned NOT NULL auto_increment,
  305. "name" varchar(64) NOT NULL default '',
  306. "file" varchar(64) NOT NULL default '',
  307. "description" varchar(255) NOT NULL default 'Describe me in the zones table! :)',
  308. "safe_x" float NOT NULL default '0',
  309. "safe_y" float NOT NULL default '0',
  310. "safe_z" float NOT NULL default '0',
  311. "underworld" float NOT NULL default '-1e+06',
  312. "table_data_version" smallint(5) unsigned NOT NULL default '1',
  313. PRIMARY KEY ("id"),
  314. UNIQUE KEY "NewIndex" ("name")
  315. ) AUTO_INCREMENT=276 /*!40100 DEFAULT CHARSET=latin1*/;
  316. /*!40101 SET SQL_MODE=@OLD_SQL_MODE;*/
  317. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;*/