Advertisement
Guest User

Untitled

a guest
Dec 20th, 2017
635
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.93 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.6.5.2
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: 127.0.0.1
  6. -- Generation Time: Dec 20, 2017 at 05:03 PM
  7. -- Server version: 10.1.21-MariaDB
  8. -- PHP Version: 5.6.30
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET time_zone = "+00:00";
  12.  
  13.  
  14. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  15. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  16. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  17. /*!40101 SET NAMES utf8mb4 */;
  18.  
  19. --
  20. -- Database: `l5rp_new`
  21. --
  22.  
  23. -- --------------------------------------------------------
  24.  
  25. --
  26. -- Table structure for table `accounts`
  27. --
  28.  
  29. CREATE TABLE `accounts` (
  30. `id` int(11) NOT NULL,
  31. `username` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
  32. `username_canonical` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
  33. `email` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
  34. `email_canonical` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
  35. `enabled` tinyint(1) NOT NULL,
  36. `salt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  37. `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  38. `last_login` datetime DEFAULT NULL,
  39. `confirmation_token` varchar(180) COLLATE utf8_unicode_ci DEFAULT NULL,
  40. `password_requested_at` datetime DEFAULT NULL,
  41. `roles` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)',
  42. `first_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  43. `last_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  44. `character_id` int(11) DEFAULT NULL
  45. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPACT;
  46.  
  47. --
  48. -- Dumping data for table `accounts`
  49. --
  50.  
  51. INSERT INTO `accounts` (
  52. `id`,
  53. `username`,
  54. `username_canonical`,
  55. `email`,
  56. `email_canonical`,
  57. `enabled`,
  58. `salt`,
  59. `password`,
  60. `last_login`,
  61. `confirmation_token`,
  62. `password_requested_at`,
  63. `roles`,
  64. `first_name`,
  65. `last_name`,
  66. `character_id`
  67. ) VALUES
  68. (1, 'test@gmail.com', 'test@gmail.com', 'test@gmail.com', 'test@gmail.com', 1, NULL, 'putmd5hashhere', NULL, NULL, NULL, '', 'Vardenis', 'Pavardenis', 3);
  69.  
  70. -- --------------------------------------------------------
  71.  
  72. --
  73. -- Table structure for table `action_history`
  74. --
  75.  
  76. CREATE TABLE `action_history` (
  77. `id` int(11) NOT NULL,
  78. `account_id` int(11) DEFAULT NULL,
  79. `time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  80. `action` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  81. `x` double NOT NULL,
  82. `y` double NOT NULL,
  83. `z` double NOT NULL
  84. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  85.  
  86. -- --------------------------------------------------------
  87.  
  88. --
  89. -- Table structure for table `characters`
  90. --
  91.  
  92. CREATE TABLE `characters` (
  93. `id` int(11) NOT NULL,
  94. `gender` tinyint(1) NOT NULL,
  95. `x` double NOT NULL,
  96. `y` double NOT NULL,
  97. `z` double NOT NULL,
  98. `xp` int(11) NOT NULL,
  99. `money` int(11) NOT NULL,
  100. `job` int(11) NOT NULL,
  101. `face` tinyint(1) NOT NULL,
  102. `skinCol` double NOT NULL,
  103. `hair` tinyint(1) NOT NULL,
  104. `hairCol` tinyint(1) NOT NULL,
  105. `hairHCol` tinyint(1) NOT NULL,
  106. `eyeBCol` tinyint(1) NOT NULL,
  107. `beardCol` tinyint(1) NOT NULL,
  108. `chestCol` tinyint(1) NOT NULL,
  109. `eyeCol` tinyint(1) NOT NULL,
  110. `top` int(11) NOT NULL,
  111. `legs` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  112. `shoes` int(11) NOT NULL
  113. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  114.  
  115. -- --------------------------------------------------------
  116.  
  117. --
  118. -- Table structure for table `character_face_features`
  119. --
  120.  
  121. CREATE TABLE `character_face_features` (
  122. `character_id` int(11) NOT NULL,
  123. `offset` tinyint(11) UNSIGNED NOT NULL,
  124. `value` float NOT NULL
  125. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  126.  
  127. -- --------------------------------------------------------
  128.  
  129. --
  130. -- Table structure for table `character_head_overlays`
  131. --
  132.  
  133. CREATE TABLE `character_head_overlays` (
  134. `character_id` int(11) NOT NULL,
  135. `offset` tinyint(3) UNSIGNED NOT NULL,
  136. `value` tinyint(3) UNSIGNED NOT NULL
  137. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  138.  
  139. -- --------------------------------------------------------
  140.  
  141. --
  142. -- Table structure for table `vehicles`
  143. --
  144.  
  145. CREATE TABLE `vehicles` (
  146. `id` int(11) NOT NULL,
  147. `model` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  148. `x` double NOT NULL,
  149. `y` double NOT NULL,
  150. `z` double NOT NULL,
  151. `rx` double NOT NULL,
  152. `ry` double NOT NULL,
  153. `rz` double NOT NULL,
  154. `job` int(11) NOT NULL,
  155. `color_r1` tinyint(1) NOT NULL,
  156. `color_g1` tinyint(1) NOT NULL,
  157. `color_b1` tinyint(1) NOT NULL,
  158. `color_r2` tinyint(1) NOT NULL,
  159. `color_g2` tinyint(1) NOT NULL,
  160. `color_b2` tinyint(1) NOT NULL,
  161. `neon_r` tinyint(1) NOT NULL,
  162. `neon_g` tinyint(1) NOT NULL,
  163. `neon_b` tinyint(1) NOT NULL,
  164. `numberPlate` varchar(8) COLLATE utf8_unicode_ci NOT NULL
  165. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  166.  
  167. --
  168. -- Indexes for table `accounts`
  169. --
  170. ALTER TABLE `accounts`
  171. ADD PRIMARY KEY (`id`),
  172. ADD UNIQUE KEY `UNIQ_7D3656A492FC23A8` (`username_canonical`),
  173. ADD UNIQUE KEY `UNIQ_7D3656A4A0D96FBF` (`email_canonical`),
  174. ADD UNIQUE KEY `UNIQ_7D3656A4C05FB297` (`confirmation_token`),
  175. ADD UNIQUE KEY `UNIQ_7D3656A41136BE75` (`character_id`);
  176.  
  177. --
  178. -- Indexes for table `action_history`
  179. --
  180. ALTER TABLE `action_history`
  181. ADD PRIMARY KEY (`id`),
  182. ADD KEY `IDX_FD18F8AA9B6B5FBA` (`account_id`);
  183.  
  184. --
  185. -- Indexes for table `characters`
  186. --
  187. ALTER TABLE `characters`
  188. ADD PRIMARY KEY (`id`);
  189.  
  190. --
  191. -- Indexes for table `character_face_features`
  192. --
  193. ALTER TABLE `character_face_features`
  194. ADD UNIQUE KEY `player` (`character_id`,`offset`);
  195.  
  196. --
  197. -- Indexes for table `character_head_overlays`
  198. --
  199. ALTER TABLE `character_head_overlays`
  200. ADD UNIQUE KEY `player` (`character_id`,`offset`);
  201.  
  202. --
  203. -- Indexes for table `vehicles`
  204. --
  205. ALTER TABLE `vehicles`
  206. ADD PRIMARY KEY (`id`);
  207.  
  208. --
  209. -- AUTO_INCREMENT for dumped tables
  210. --
  211.  
  212. --
  213. -- AUTO_INCREMENT for table `accounts`
  214. --
  215. ALTER TABLE `accounts`
  216. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  217. --
  218. -- AUTO_INCREMENT for table `action_history`
  219. --
  220. ALTER TABLE `action_history`
  221. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2236;
  222. --
  223. -- AUTO_INCREMENT for table `characters`
  224. --
  225. ALTER TABLE `characters`
  226. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  227. --
  228. -- AUTO_INCREMENT for table `vehicles`
  229. --
  230. ALTER TABLE `vehicles`
  231. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  232. --
  233. -- Constraints for dumped tables
  234. --
  235.  
  236. --
  237. -- Constraints for table `accounts`
  238. --
  239. ALTER TABLE `accounts`
  240. ADD CONSTRAINT `FK_7D3656A41136BE75` FOREIGN KEY (`character_id`) REFERENCES `characters` (`id`);
  241.  
  242. --
  243. -- Constraints for table `action_history`
  244. --
  245. ALTER TABLE `action_history`
  246. ADD CONSTRAINT `FK_FD18F8AA9B6B5FBA` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`);
  247.  
  248. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  249. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  250. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement