zmieniono dim_store

This commit is contained in:
Paweł Skurzyński 2023-12-16 12:01:27 +01:00
parent d7117a232d
commit 6e84f742b1
2 changed files with 21 additions and 10 deletions

1
Hurtownie_Danych Submodule

@ -0,0 +1 @@
Subproject commit 53df1a85b6f517016358f522fedb5e4a012d5531

View File

@ -9,13 +9,13 @@ CREATE TABLE `fact_service` (
CREATE TABLE `dim_customer` (
`customer_id` int PRIMARY KEY,
`name` varchar(64) ,
`birth_date` DATE ,
`email` varchar(64) ,
`address` varchar(64) ,
`city` varchar(64) ,
`country` varchar(64) ,
`postal_code` varchar(64)
`customer_name` varchar(64) ,
`customer_birth_date` DATE ,
`customer_email` varchar(64) ,
`customer_address` varchar(64) ,
`customer_city` varchar(64) ,
`customer_country` varchar(64) ,
`customer_postal_code` varchar(64)
);
CREATE TABLE `dim_calendar` (
@ -28,7 +28,7 @@ CREATE TABLE `dim_calendar` (
`calendar_year` int ,
`calendar_month_year` int ,
`is_weekend` BOOLEAN ,
`month_end` BOOLEAN ,
`is_month_end` BOOLEAN ,
`week_num` int
);
@ -56,14 +56,15 @@ CREATE TABLE `dim_equipment` (
CREATE TABLE `dim_store` (
`store_id` int PRIMARY KEY,
`store_key` int ,
`is_active` varchar(64) ,
`store_address` varchar(64) ,
`store_postal_code` varchar(64) ,
`store_city` varchar(64) ,
`store_country` varchar(64)
`store_manager_name varchar(64) ,
`valid_from` DATE ,
`valid_to` DATE
`valid_to` DATE,
`is_active` varchar(64)
);
CREATE TABLE `bridge_equipment` (
@ -78,12 +79,21 @@ CREATE TABLE `dim_service_type` (
CREATE TABLE `dim_staff` (
`staff_id` int PRIMARY KEY,
<<<<<<< HEAD
`staff_full_name` varchar(64) , -- zawiera first_name i last_name
`staff_address` varchar(64) , -- złączenie address oraz address2
`staff_city` varchar(64) ,
`staff_country` varchar(64) ,
`staff_email` varchar(64) ,
`staff_manager_name` varchar(64)
=======
`full_name` varchar(64) ,
`address` varchar(64) ,
`city` varchar(64) ,
`country` varchar(64) ,
`manager_id` int ,
`email` varchar(64)
>>>>>>> 53df1a85b6f517016358f522fedb5e4a012d5531
);
CREATE TABLE `dim_car` (