· 8 years ago · Aug 15, 2018, 09:58 PM
1-- Export de la structure de la base pour prisonrp
2DROP DATABASE IF EXISTS `prisonrp`;
3CREATE DATABASE IF NOT EXISTS `prisonrp` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
4USE `prisonrp`;
5
6-- Les données exportées n'étaient pas sélectionnées.
7-- Export de la structure de la table prisonrp. players
8DROP TABLE IF EXISTS `players`;
9CREATE TABLE IF NOT EXISTS `players` (
10 `uid` int(6) NOT NULL AUTO_INCREMENT,
11 `pid` varchar(17) NOT NULL,
12 `civ_name` varchar(32) NOT NULL,
13 `mat_name` varchar(32) NOT NULL,
14 `cash` int(100) NOT NULL DEFAULT '0',
15 `bank` int(100) NOT NULL DEFAULT '0',
16 `mat_bank` int(100) NOT NULL DEFAULT '0',
17 `mat_cash` int(100) NOT NULL DEFAULT '0',
18 `civ_licences` text NOT NULL,
19 `mat_licences` text NOT NULL,
20 `civ_carteid` text NOT NULL,
21 `mat_carteid` text NOT NULL,
22 `civ_casier` text NOT NULL,
23 `civ_inv` text NOT NULL,
24 `mat_inv` text NOT NULL,
25 `civ_virinv` text NOT NULL,
26 `mat_virinv` text NOT NULL,
27 `civ_survie` varchar(32) NOT NULL DEFAULT '"[100,100,100,0]"',
28 `mat_survie` varchar(32) NOT NULL DEFAULT '"[100,100,100,0]"',
29 `adminlvl` enum('0','1','2','3') NOT NULL DEFAULT '0',
30 `civ_blacklist` tinyint(1) NOT NULL DEFAULT '0',
31 `mat_blacklist` tinyint(1) NOT NULL DEFAULT '0',
32 `civ_alive` tinyint(1) NOT NULL DEFAULT '0',
33 `mat_alive` tinyint(1) NOT NULL DEFAULT '0',
34 `civ_position` varchar(64) NOT NULL DEFAULT '"[]"',
35 `mat_position` varchar(64) NOT NULL DEFAULT '"[]"',
36 `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
37 `last_seen` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
38 PRIMARY KEY (`uid`),
39 UNIQUE KEY `pid` (`pid`),
40 KEY `civ_name` (`civ_name`),
41 KEY `mat_name` (`mat_name`)
42) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4;
43
44-- Les données exportées n'étaient pas sélectionnées.
45-- Export de la structure de la table prisonrp. vehicles
46DROP TABLE IF EXISTS `vehicles`;
47CREATE TABLE IF NOT EXISTS `vehicles` (
48 `id` int(6) NOT NULL AUTO_INCREMENT,
49 `pid` varchar(17) NOT NULL,
50 `side` varchar(16) NOT NULL,
51 `classname` varchar(64) NOT NULL,
52 `type` varchar(16) NOT NULL,
53 `alive` tinyint(1) NOT NULL DEFAULT '1',
54 `blacklist` tinyint(1) NOT NULL DEFAULT '0',
55 `active` tinyint(1) NOT NULL DEFAULT '0',
56 `plate` int(20) NOT NULL,
57 `color` int(20) NOT NULL,
58 `inventory` text NOT NULL,
59 `gear` text NOT NULL,
60 `fuel` double NOT NULL DEFAULT '1',
61 `damage` varchar(256) NOT NULL,
62 `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
63 PRIMARY KEY (`id`),
64 KEY `side` (`side`),
65 KEY `pid` (`pid`),
66 KEY `type` (`type`)
67) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
68
69-- Les données exportées n'étaient pas sélectionnées.
70-- Export de la structure de la table prisonrp. gangs
71DROP TABLE IF EXISTS `gangs`;
72CREATE TABLE IF NOT EXISTS `gangs` (
73 `id` int(6) NOT NULL AUTO_INCREMENT,
74 `chef` varchar(32) DEFAULT NULL,
75 `nomchef` varchar(32) DEFAULT NULL,
76 `membres` text,
77 `maxmembres` int(3) DEFAULT '10',
78 `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
79 PRIMARY KEY (`id`),
80 UNIQUE KEY `name_UNIQUE` (`nomchef`)
81) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
82
83-- Export de la structure de la table prisonrp. containers
84DROP TABLE IF EXISTS `containers`;
85CREATE TABLE IF NOT EXISTS `containers` (
86 `id` int(6) NOT NULL AUTO_INCREMENT,
87 `pid` varchar(17) NOT NULL,
88 `classname` varchar(32) NOT NULL,
89 `inventory` text NOT NULL,
90 `gear` text NOT NULL,
91 `dir` varchar(128) DEFAULT NULL,
92 `pos` varchar(64) DEFAULT NULL,
93 `active` tinyint(1) NOT NULL DEFAULT '0',
94 `owned` tinyint(1) DEFAULT '0',
95 `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
96 PRIMARY KEY (`id`,`pid`)
97) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;
98
99-- Les données exportées n'étaient pas sélectionnées.
100/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
101/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
102/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;