Advertisement
tinboye

exiledb

Mar 30th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.05 KB | None | 0 0
  1. -- --------------------------------------------------------
  2. -- Host: 127.0.0.1
  3. -- Server version: 5.6.26-log - MySQL Community Server (GPL)
  4. -- Server OS: Win64
  5. -- HeidiSQL Version: 9.2.0.4970
  6. -- --------------------------------------------------------
  7.  
  8. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  9. /*!40101 SET NAMES utf8mb4 */;
  10. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  11. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  12.  
  13. -- Dumping structure for table exile.account
  14. CREATE TABLE IF NOT EXISTS `account` (
  15. `uid` varchar(32) NOT NULL,
  16. `clan_id` int(11) unsigned DEFAULT NULL,
  17. `name` varchar(64) NOT NULL,
  18. `score` int(11) NOT NULL DEFAULT '0',
  19. `kills` int(11) unsigned NOT NULL DEFAULT '0',
  20. `deaths` int(11) unsigned NOT NULL DEFAULT '0',
  21. `locker` int(11) NOT NULL DEFAULT '0',
  22. `first_connect_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  23. `last_connect_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  24. `last_disconnect_at` datetime DEFAULT NULL,
  25. `total_connections` int(11) unsigned NOT NULL DEFAULT '1',
  26. PRIMARY KEY (`uid`),
  27. KEY `clan_id` (`clan_id`),
  28. CONSTRAINT `account_ibfk_1` FOREIGN KEY (`clan_id`) REFERENCES `clan` (`id`) ON DELETE SET NULL
  29. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  30.  
  31. -- Data exporting was unselected.
  32.  
  33.  
  34. -- Dumping structure for table exile.clan
  35. CREATE TABLE IF NOT EXISTS `clan` (
  36. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  37. `name` varchar(64) NOT NULL,
  38. `leader_uid` varchar(32) NOT NULL,
  39. `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  40. PRIMARY KEY (`id`),
  41. KEY `leader_uid` (`leader_uid`),
  42. CONSTRAINT `clan_ibfk_1` FOREIGN KEY (`leader_uid`) REFERENCES `account` (`uid`) ON DELETE CASCADE
  43. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  44.  
  45. -- Data exporting was unselected.
  46.  
  47.  
  48. -- Dumping structure for table exile.clan_map_marker
  49. CREATE TABLE IF NOT EXISTS `clan_map_marker` (
  50. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  51. `clan_id` int(11) unsigned NOT NULL,
  52. `markerType` tinyint(4) NOT NULL DEFAULT '-1',
  53. `positionArr` text NOT NULL,
  54. `color` varchar(255) NOT NULL,
  55. `icon` varchar(255) NOT NULL,
  56. `iconSize` float unsigned NOT NULL,
  57. `label` varchar(255) NOT NULL,
  58. `labelSize` float unsigned NOT NULL,
  59. PRIMARY KEY (`id`),
  60. KEY `clan_id` (`clan_id`),
  61. CONSTRAINT `clan_map_marker_ibfk_1` FOREIGN KEY (`clan_id`) REFERENCES `clan` (`id`) ON DELETE CASCADE
  62. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  63.  
  64. -- Data exporting was unselected.
  65.  
  66.  
  67. -- Dumping structure for table exile.construction
  68. CREATE TABLE IF NOT EXISTS `construction` (
  69. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  70. `class` varchar(64) NOT NULL,
  71. `account_uid` varchar(32) NOT NULL,
  72. `spawned_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  73. `position_x` double NOT NULL DEFAULT '0',
  74. `position_y` double NOT NULL DEFAULT '0',
  75. `position_z` double NOT NULL DEFAULT '0',
  76. `direction_x` double NOT NULL DEFAULT '0',
  77. `direction_y` double NOT NULL DEFAULT '0',
  78. `direction_z` double NOT NULL DEFAULT '0',
  79. `up_x` double NOT NULL DEFAULT '0',
  80. `up_y` double NOT NULL DEFAULT '0',
  81. `up_z` double NOT NULL DEFAULT '0',
  82. `is_locked` tinyint(1) NOT NULL DEFAULT '0',
  83. `pin_code` varchar(6) NOT NULL DEFAULT '000000',
  84. `damage` tinyint(1) unsigned NULL DEFAULT '0',
  85. `territory_id` int(11) unsigned DEFAULT NULL,
  86. `last_updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  87. `deleted_at` datetime DEFAULT NULL,
  88. PRIMARY KEY (`id`),
  89. KEY `account_uid` (`account_uid`),
  90. KEY `territory_id` (`territory_id`),
  91. CONSTRAINT `construction_ibfk_1` FOREIGN KEY (`account_uid`) REFERENCES `account` (`uid`) ON DELETE CASCADE,
  92. CONSTRAINT `construction_ibfk_2` FOREIGN KEY (`territory_id`) REFERENCES `territory` (`id`) ON DELETE CASCADE
  93. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  94.  
  95. -- Data exporting was unselected.
  96.  
  97.  
  98. -- Dumping structure for table exile.container
  99. CREATE TABLE IF NOT EXISTS `container` (
  100. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  101. `class` varchar(64) NOT NULL,
  102. `spawned_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  103. `account_uid` varchar(32) DEFAULT NULL,
  104. `is_locked` tinyint(1) NOT NULL DEFAULT '0',
  105. `position_x` double NOT NULL DEFAULT '0',
  106. `position_y` double NOT NULL DEFAULT '0',
  107. `position_z` double NOT NULL DEFAULT '0',
  108. `direction_x` double NOT NULL DEFAULT '0',
  109. `direction_y` double NOT NULL DEFAULT '0',
  110. `direction_z` double NOT NULL DEFAULT '0',
  111. `up_x` double NOT NULL DEFAULT '0',
  112. `up_y` double NOT NULL DEFAULT '0',
  113. `up_z` double NOT NULL DEFAULT '1',
  114. `cargo_items` text NOT NULL,
  115. `cargo_magazines` text NOT NULL,
  116. `cargo_weapons` text NOT NULL,
  117. `cargo_container` text NOT NULL,
  118. `last_updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  119. `pin_code` varchar(6) NOT NULL DEFAULT '000000',
  120. `territory_id` int(11) unsigned DEFAULT NULL,
  121. `deleted_at` datetime DEFAULT NULL,
  122. `money` int(11) unsigned NOT NULL DEFAULT '0',
  123. `abandoned` datetime DEFAULT NULL,
  124. PRIMARY KEY (`id`),
  125. KEY `account_uid` (`account_uid`),
  126. KEY `territory_id` (`territory_id`),
  127. CONSTRAINT `container_ibfk_1` FOREIGN KEY (`account_uid`) REFERENCES `account` (`uid`) ON DELETE CASCADE,
  128. CONSTRAINT `container_ibfk_2` FOREIGN KEY (`territory_id`) REFERENCES `territory` (`id`) ON DELETE CASCADE
  129. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  130.  
  131. -- Data exporting was unselected.
  132.  
  133.  
  134. -- Dumping structure for table exile.player
  135. CREATE TABLE IF NOT EXISTS `player` (
  136. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  137. `name` varchar(64) NOT NULL,
  138. `account_uid` varchar(32) NOT NULL,
  139. `money` int(11) unsigned NOT NULL DEFAULT '0',
  140. `damage` double unsigned NOT NULL DEFAULT '0',
  141. `hunger` double unsigned NOT NULL DEFAULT '100',
  142. `thirst` double unsigned NOT NULL DEFAULT '100',
  143. `alcohol` double unsigned NOT NULL DEFAULT '0',
  144. `temperature` double NOT NULL DEFAULT '37',
  145. `wetness` double unsigned NOT NULL DEFAULT '0',
  146. `oxygen_remaining` double unsigned NOT NULL DEFAULT '1',
  147. `bleeding_remaining` double unsigned NOT NULL DEFAULT '0',
  148. `hitpoints` varchar(255) NOT NULL DEFAULT '[]',
  149. `direction` double NOT NULL DEFAULT '0',
  150. `position_x` double NOT NULL DEFAULT '0',
  151. `position_y` double NOT NULL DEFAULT '0',
  152. `position_z` double NOT NULL DEFAULT '0',
  153. `spawned_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  154. `assigned_items` text NOT NULL,
  155. `backpack` varchar(64) NOT NULL,
  156. `backpack_items` text NOT NULL,
  157. `backpack_magazines` text NOT NULL,
  158. `backpack_weapons` text NOT NULL,
  159. `current_weapon` varchar(64) NOT NULL,
  160. `goggles` varchar(64) NOT NULL,
  161. `handgun_items` text NOT NULL,
  162. `handgun_weapon` varchar(64) NOT NULL,
  163. `headgear` varchar(64) NOT NULL,
  164. `binocular` varchar(64) NOT NULL,
  165. `loaded_magazines` text NOT NULL,
  166. `primary_weapon` varchar(64) NOT NULL,
  167. `primary_weapon_items` text NOT NULL,
  168. `secondary_weapon` varchar(64) NOT NULL,
  169. `secondary_weapon_items` text NOT NULL,
  170. `uniform` varchar(64) NOT NULL,
  171. `uniform_items` text NOT NULL,
  172. `uniform_magazines` text NOT NULL,
  173. `uniform_weapons` text NOT NULL,
  174. `vest` varchar(64) NOT NULL,
  175. `vest_items` text NOT NULL,
  176. `vest_magazines` text NOT NULL,
  177. `vest_weapons` text NOT NULL,
  178. `last_updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  179. PRIMARY KEY (`id`),
  180. KEY `player_uid` (`account_uid`),
  181. CONSTRAINT `player_ibfk_1` FOREIGN KEY (`account_uid`) REFERENCES `account` (`uid`) ON DELETE CASCADE
  182. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  183.  
  184. -- Data exporting was unselected.
  185.  
  186.  
  187. -- Dumping structure for table exile.player_history
  188. CREATE TABLE IF NOT EXISTS `player_history` (
  189. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  190. `account_uid` varchar(32) NOT NULL,
  191. `name` varchar(64) NOT NULL,
  192. `died_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  193. `position_x` double NOT NULL,
  194. `position_y` double NOT NULL,
  195. `position_z` double NOT NULL,
  196. PRIMARY KEY (`id`)
  197. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  198.  
  199. -- Data exporting was unselected.
  200.  
  201.  
  202. -- Dumping structure for table exile.territory
  203. CREATE TABLE IF NOT EXISTS `territory` (
  204. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  205. `owner_uid` varchar(32) NOT NULL,
  206. `name` varchar(64) NOT NULL,
  207. `position_x` double NOT NULL,
  208. `position_y` double NOT NULL,
  209. `position_z` double NOT NULL,
  210. `radius` double NOT NULL,
  211. `level` int(11) NOT NULL,
  212. `flag_texture` varchar(255) NOT NULL,
  213. `flag_stolen` tinyint(1) NOT NULL DEFAULT '0',
  214. `flag_stolen_by_uid` varchar(32) DEFAULT NULL,
  215. `flag_stolen_at` datetime DEFAULT NULL,
  216. `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  217. `last_paid_at` datetime DEFAULT CURRENT_TIMESTAMP,
  218. `xm8_protectionmoney_notified` tinyint(1) NOT NULL DEFAULT '0',
  219. `build_rights` varchar(640) NOT NULL DEFAULT '0',
  220. `moderators` varchar(320) NOT NULL DEFAULT '0',
  221. `deleted_at` datetime DEFAULT NULL,
  222. PRIMARY KEY (`id`),
  223. KEY `owner_uid` (`owner_uid`),
  224. KEY `flag_stolen_by_uid` (`flag_stolen_by_uid`),
  225. CONSTRAINT `territory_ibfk_1` FOREIGN KEY (`owner_uid`) REFERENCES `account` (`uid`) ON DELETE CASCADE,
  226. CONSTRAINT `territory_ibfk_2` FOREIGN KEY (`flag_stolen_by_uid`) REFERENCES `account` (`uid`) ON DELETE SET NULL
  227. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  228.  
  229. -- Data exporting was unselected.
  230.  
  231.  
  232. -- Dumping structure for table exile.vehicle
  233. CREATE TABLE IF NOT EXISTS `vehicle` (
  234. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  235. `class` varchar(64) NOT NULL,
  236. `spawned_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  237. `account_uid` varchar(32) DEFAULT NULL,
  238. `is_locked` tinyint(1) NOT NULL DEFAULT '0',
  239. `fuel` double unsigned NOT NULL DEFAULT '0',
  240. `damage` double unsigned NOT NULL DEFAULT '0',
  241. `hitpoints` text NOT NULL,
  242. `position_x` double NOT NULL DEFAULT '0',
  243. `position_y` double NOT NULL DEFAULT '0',
  244. `position_z` double NOT NULL DEFAULT '0',
  245. `direction_x` double NOT NULL DEFAULT '0',
  246. `direction_y` double NOT NULL DEFAULT '0',
  247. `direction_z` double NOT NULL DEFAULT '0',
  248. `up_x` double NOT NULL DEFAULT '0',
  249. `up_y` double NOT NULL DEFAULT '0',
  250. `up_z` double NOT NULL DEFAULT '1',
  251. `cargo_items` text NOT NULL,
  252. `cargo_magazines` text NOT NULL,
  253. `cargo_weapons` text NOT NULL,
  254. `cargo_container` text NOT NULL,
  255. `last_updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  256. `pin_code` varchar(6) NOT NULL DEFAULT '000000',
  257. `deleted_at` datetime DEFAULT NULL,
  258. `money` int(11) unsigned NOT NULL DEFAULT '0',
  259. `vehicle_texture` text NOT NULL,
  260. PRIMARY KEY (`id`),
  261. KEY `account_uid` (`account_uid`),
  262. CONSTRAINT `vehicle_ibfk_1` FOREIGN KEY (`account_uid`) REFERENCES `account` (`uid`) ON DELETE CASCADE
  263. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  264.  
  265. -- Data exporting was unselected.
  266. /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
  267. /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
  268. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement