forked from renzuzu/renzu_vehicleshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
esx.sql
27 lines (22 loc) · 833 Bytes
/
esx.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
CREATE TABLE `owned_vehicles` (
`owner` VARCHAR(64) NOT NULL COLLATE 'utf8mb4_bin',
`plate` VARCHAR(12) NOT NULL COLLATE 'utf8mb4_bin',
`vehicle` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
`impound` INT(1) NOT NULL DEFAULT '0',
`stored` tinyint(1) NOT NULL DEFAULT '0',
`garage_type` VARCHAR(50) NULL DEFAULT 'car' COLLATE 'utf8mb4_bin',
`garage_id` VARCHAR(50) NULL DEFAULT 'A' COLLATE 'utf8mb4_bin',
PRIMARY KEY (`plate`) USING BTREE,
INDEX `vehsowned` (`owner`) USING BTREE
)
COLLATE='utf8mb4_bin'
ENGINE=InnoDB
;
ALTER TABLE owned_vehicles
ADD `garage_id` varchar(32) NOT NULL DEFAULT 'A';
ALTER TABLE owned_vehicles
ADD `job` varchar(32) NOT NULL DEFAULT 'civ';
ALTER TABLE owned_vehicles
ADD `stored` tinyint(1) NOT NULL DEFAULT 1;
ALTER TABLE owned_vehicles
ADDt `type` varchar(32) NOT NULL DEFAULT 'car';