zmieniono dim_car
This commit is contained in:
parent
6bd4a3a70b
commit
d0046a1559
@ -91,7 +91,7 @@ CREATE TABLE `dim_staff` (
|
|||||||
`email` varchar(64)
|
`email` varchar(64)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE `dim_cars` (
|
CREATE TABLE `dim_car` (
|
||||||
`inventory_id` int PRIMARY KEY,
|
`inventory_id` int PRIMARY KEY,
|
||||||
`production_year` int ,
|
`production_year` int ,
|
||||||
`model` varchar(64) ,
|
`model` varchar(64) ,
|
||||||
@ -99,10 +99,8 @@ CREATE TABLE `dim_cars` (
|
|||||||
`fuel_type` varchar(64) ,
|
`fuel_type` varchar(64) ,
|
||||||
`license_plate` varchar(64) ,
|
`license_plate` varchar(64) ,
|
||||||
`store_id` int ,
|
`store_id` int ,
|
||||||
`purchase_price` DECIMAL ,
|
`is_rented` varchar(64) ,
|
||||||
`sell_price` DECIMAL ,
|
`is_sold` varchar(64)
|
||||||
`availability` varchar(64) ,
|
|
||||||
`sold` BOOLEAN
|
|
||||||
);
|
);
|
||||||
|
|
||||||
ALTER TABLE `fact_service` ADD CONSTRAINT `fact_service_fk0` FOREIGN KEY (`inventory_id`) REFERENCES `dim_cars`(`inventory_id`);
|
ALTER TABLE `fact_service` ADD CONSTRAINT `fact_service_fk0` FOREIGN KEY (`inventory_id`) REFERENCES `dim_cars`(`inventory_id`);
|
||||||
|
Loading…
Reference in New Issue
Block a user