forked from qbcore-framework/qb-inventory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqb-inventory.sql
More file actions
50 lines (47 loc) · 1.56 KB
/
qb-inventory.sql
File metadata and controls
50 lines (47 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
CREATE TABLE IF NOT EXISTS `gloveboxitems` (
`id` int NOT NULL AUTO_INCREMENT,
`plate` varchar(255) DEFAULT NULL,
`items` json DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `plate` (`plate`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS `stashitems` (
`id` int NOT NULL AUTO_INCREMENT,
`stash` varchar(255) DEFAULT NULL,
`items` json DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `stash` (`stash`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS `trunkitems` (
`id` int NOT NULL AUTO_INCREMENT,
`plate` varchar(255) DEFAULT NULL,
`items` json DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `plate` (`plate`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS `player_vehicles` (
`id` int NOT NULL AUTO_INCREMENT,
`license` varchar(50) DEFAULT NULL,
`citizenid` varchar(50) DEFAULT NULL,
`vehicle` varchar(50) DEFAULT NULL,
`hash` varchar(50) DEFAULT NULL,
`mods` json DEFAULT NULL,
`plate` varchar(50) NOT NULL,
`fakeplate` varchar(50) DEFAULT NULL,
`garage` varchar(50) DEFAULT NULL,
`fuel` int DEFAULT 100,
`engine` float DEFAULT 1000,
`body` float DEFAULT 1000,
`state` int DEFAULT 1,
`depotprice` int NOT NULL DEFAULT 0,
`drivingdistance` int DEFAULT NULL,
`status` text DEFAULT NULL,
`balance` int NOT NULL DEFAULT 0,
`paymentamount` int NOT NULL DEFAULT 0,
`paymentsleft` int NOT NULL DEFAULT 0,
`financetime` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `plate` (`plate`),
KEY `citizenid` (`citizenid`),
KEY `license` (`license`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;