forked from qbcore-redm-framework/txAdminRecipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqbrcore.sql
158 lines (147 loc) · 5.25 KB
/
qbrcore.sql
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
CREATE TABLE IF NOT EXISTS `bans` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
`license` varchar(50) DEFAULT NULL,
`discord` varchar(50) DEFAULT NULL,
`ip` varchar(50) DEFAULT NULL,
`reason` text DEFAULT NULL,
`expire` int(11) DEFAULT NULL,
`bannedby` varchar(255) NOT NULL DEFAULT 'Anticheat',
PRIMARY KEY (`id`),
KEY `license` (`license`),
KEY `discord` (`discord`),
KEY `ip` (`ip`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `bank_accounts` (
`record_id` bigint(255) NOT NULL AUTO_INCREMENT,
`citizenid` varchar(250) DEFAULT NULL,
`buisness` varchar(50) DEFAULT NULL,
`buisnessid` int(11) DEFAULT NULL,
`gangid` varchar(50) DEFAULT NULL,
`amount` bigint(255) NOT NULL DEFAULT 0,
`account_type` enum('Current','Savings','Buisness','Gang') NOT NULL DEFAULT 'Current',
PRIMARY KEY (`record_id`),
UNIQUE KEY `citizenid` (`citizenid`),
KEY `buisness` (`buisness`),
KEY `buisnessid` (`buisnessid`),
KEY `gangid` (`gangid`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `bank_statements` (
`record_id` bigint(255) NOT NULL AUTO_INCREMENT,
`citizenid` varchar(50) DEFAULT NULL,
`account` varchar(50) DEFAULT NULL,
`buisness` varchar(50) DEFAULT NULL,
`buisnessid` int(11) DEFAULT NULL,
`gangid` varchar(50) DEFAULT NULL,
`deposited` int(11) DEFAULT NULL,
`withdraw` int(11) DEFAULT NULL,
`balance` int(11) DEFAULT NULL,
`date` varchar(50) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`record_id`),
KEY `buisness` (`buisness`),
KEY `buisnessid` (`buisnessid`),
KEY `gangid` (`gangid`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `players` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`citizenid` varchar(255) NOT NULL,
`cid` int(11) DEFAULT NULL,
`license` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`money` text NOT NULL,
`charinfo` text DEFAULT NULL,
`job` text NOT NULL,
`gang` text DEFAULT NULL,
`position` text NOT NULL,
`metadata` text NOT NULL,
`inventory` longtext DEFAULT NULL,
`last_updated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`citizenid`),
KEY `id` (`id`),
KEY `last_updated` (`last_updated`),
KEY `license` (`license`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `playerskins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`citizenid` varchar(255) NOT NULL,
`model` varchar(255) NOT NULL,
`skin` text NOT NULL,
`clothes` text NOT NULL,
`active` tinyint(4) NOT NULL DEFAULT 1,
PRIMARY KEY (`id`),
KEY `citizenid` (`citizenid`),
KEY `active` (`active`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `player_outfits` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`citizenid` varchar(50) DEFAULT NULL,
`outfitname` varchar(50) NOT NULL,
`model` varchar(50) DEFAULT NULL,
`skin` text DEFAULT NULL,
`outfitId` varchar(50) NOT NULL,
PRIMARY KEY (`id`),
KEY `citizenid` (`citizenid`),
KEY `outfitId` (`outfitId`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `player_vehicles` (
`id` int(11) 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` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`plate` varchar(50) NOT NULL,
`fakeplate` varchar(50) DEFAULT NULL,
`garage` varchar(50) DEFAULT NULL,
`fuel` int(11) DEFAULT 100,
`engine` float DEFAULT 1000,
`body` float DEFAULT 1000,
`state` int(11) DEFAULT 1,
`depotprice` int(11) NOT NULL DEFAULT 0,
`drivingdistance` int(50) DEFAULT NULL,
`status` text DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `plate` (`plate`),
KEY `citizenid` (`citizenid`),
KEY `license` (`license`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `gloveboxitems` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`plate` varchar(255) NOT NULL DEFAULT '[]',
`items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
PRIMARY KEY (`plate`),
KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `stashitems` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`stash` varchar(255) NOT NULL DEFAULT '[]',
`items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
PRIMARY KEY (`stash`),
KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `trunkitems` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`plate` varchar(255) NOT NULL DEFAULT '[]',
`items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
PRIMARY KEY (`plate`),
KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `management_menu` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`job_name` VARCHAR(50) NOT NULL,
`amount` INT(100) NOT NULL,
`menu_type` ENUM('boss','gang') NOT NULL DEFAULT 'boss',
PRIMARY KEY (`id`),
UNIQUE KEY `job_name` (`job_name`),
KEY `menu_type` (`menu_type`)
) ENGINE=InnoDB AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `horses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cid` varchar(50) NOT NULL,
`selected` int(11) NOT NULL DEFAULT 0,
`model` varchar(50) NOT NULL,
`name` varchar(50) NOT NULL,
`components` varchar(5000) NOT NULL DEFAULT '{}',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1;