mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
replace id PK with model
This commit is contained in:
+8
-3
@@ -427,12 +427,10 @@ CREATE TABLE `user_licenses` (
|
|||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `vehicles` (
|
CREATE TABLE `vehicles` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(60) NOT NULL,
|
`name` varchar(60) NOT NULL,
|
||||||
`model` varchar(60) NOT NULL,
|
`model` varchar(60) NOT NULL,
|
||||||
`price` int(11) NOT NULL,
|
`price` int(11) NOT NULL,
|
||||||
`category` varchar(60) DEFAULT NULL,
|
`category` varchar(60) DEFAULT NULL
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB;
|
) ENGINE=InnoDB;
|
||||||
|
|
||||||
--
|
--
|
||||||
@@ -823,6 +821,13 @@ ALTER TABLE `licenses`
|
|||||||
ALTER TABLE `owned_vehicles`
|
ALTER TABLE `owned_vehicles`
|
||||||
ADD PRIMARY KEY (`plate`);
|
ADD PRIMARY KEY (`plate`);
|
||||||
|
|
||||||
|
--
|
||||||
|
--
|
||||||
|
-- Indexes for table `vehicles`
|
||||||
|
--
|
||||||
|
ALTER TABLE `vehicles`
|
||||||
|
ADD PRIMARY KEY (`model`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indexes for table `rented_vehicles`
|
-- Indexes for table `rented_vehicles`
|
||||||
--
|
--
|
||||||
|
|||||||
Reference in New Issue
Block a user