zmieniono dim_car

This commit is contained in:
Paweł Skurzyński 2023-12-16 10:12:08 +01:00
parent 6bd4a3a70b
commit d0046a1559

View File

@ -91,7 +91,7 @@ CREATE TABLE `dim_staff` (
`email` varchar(64)
);
CREATE TABLE `dim_cars` (
CREATE TABLE `dim_car` (
`inventory_id` int PRIMARY KEY,
`production_year` int ,
`model` varchar(64) ,
@ -99,10 +99,8 @@ CREATE TABLE `dim_cars` (
`fuel_type` varchar(64) ,
`license_plate` varchar(64) ,
`store_id` int ,
`purchase_price` DECIMAL ,
`sell_price` DECIMAL ,
`availability` varchar(64) ,
`sold` BOOLEAN
`is_rented` varchar(64) ,
`is_sold` varchar(64)
);
ALTER TABLE `fact_service` ADD CONSTRAINT `fact_service_fk0` FOREIGN KEY (`inventory_id`) REFERENCES `dim_cars`(`inventory_id`);