Compare commits
5 Commits
53df1a85b6
...
d7117a232d
Author | SHA1 | Date | |
---|---|---|---|
|
d7117a232d | ||
|
3a5281a186 | ||
|
200c65905b | ||
|
6a39be8b8e | ||
|
a1c8bf875c |
@ -9,13 +9,13 @@ CREATE TABLE `fact_service` (
|
||||
|
||||
CREATE TABLE `dim_customer` (
|
||||
`customer_id` int PRIMARY KEY,
|
||||
`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)
|
||||
`name` varchar(64) ,
|
||||
`birth_date` DATE ,
|
||||
`email` varchar(64) ,
|
||||
`address` varchar(64) ,
|
||||
`city` varchar(64) ,
|
||||
`country` varchar(64) ,
|
||||
`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 ,
|
||||
`is_month_end` BOOLEAN ,
|
||||
`month_end` BOOLEAN ,
|
||||
`week_num` int
|
||||
);
|
||||
|
||||
@ -54,17 +54,16 @@ CREATE TABLE `dim_equipment` (
|
||||
);
|
||||
|
||||
CREATE TABLE `dim_store` (
|
||||
`sk_store_id` int PRIMARY KEY,
|
||||
`nk_store_id` int ,
|
||||
`store_manager_id` int ,
|
||||
`store_manager_start_date` DATE ,
|
||||
`store_manager_end_date` DATE ,
|
||||
`active_manager` varchar(64) ,
|
||||
`store_id` int PRIMARY KEY,
|
||||
`store_key` int ,
|
||||
`is_active` varchar(64) ,
|
||||
`store_address` varchar(64) ,
|
||||
`store_address2` 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
|
||||
);
|
||||
|
||||
CREATE TABLE `bridge_equipment` (
|
||||
@ -79,12 +78,12 @@ CREATE TABLE `dim_service_type` (
|
||||
|
||||
CREATE TABLE `dim_staff` (
|
||||
`staff_id` int PRIMARY KEY,
|
||||
`full_name` varchar(64) ,
|
||||
`address` varchar(64) ,
|
||||
`city` varchar(64) ,
|
||||
`country` varchar(64) ,
|
||||
`manager_id` int ,
|
||||
`email` varchar(64)
|
||||
`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)
|
||||
);
|
||||
|
||||
CREATE TABLE `dim_car` (
|
||||
|
Loading…
Reference in New Issue
Block a user