Spaces:
Runtime error
Runtime error
Commit ·
61a5edc
1
Parent(s): df58d60
added product style table and zip distance table
Browse files- constants.py +11 -2
constants.py
CHANGED
|
@@ -25,12 +25,19 @@ browse_category_col = ['category_id', 'category_code', 'category']
|
|
| 25 |
style_col = ["sku", "style", "source_file", "load_date"]
|
| 26 |
email_col = ['event_id', 'customer_id', 'time_id', 'date_id', 'email_key']
|
| 27 |
event_col = ['event_id', 'event_type', 'event_description', 'event_detail', 'start_date', 'end_date', 'event_code', 'event_category']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
DEFAULT_TABLES_COLS = {"tbl_d_customer":customer_col, "tbl_d_product":product_col, "tbl_f_sales":sales_col,
|
| 31 |
"tbl_d_store":store_col, "tbl_d_channel":channel_col, "tbl_d_lineaction_code":lineaction_col,
|
| 32 |
"tbl_d_calendar":calendar_col, 'tbl_f_browse':browse_col, 'tbl_d_time': time_col, 'tbl_d_browse_action': browse_action_col,
|
| 33 |
-
'tbl_d_browse_category':browse_category_col, 'tbl_d_style':style_col, 'tbl_f_emailing': email_col, 'tbl_d_event':event_col
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
TABLE_RELATIONS = """tbl_d_store and tbl_f_sales on store_id
|
|
@@ -65,4 +72,6 @@ tbl_d_time and tbl_f_activity on time_id
|
|
| 65 |
tbl_d_customer and tbl_f_activity on customer_id
|
| 66 |
tbl_d_customer and tbl_f_opt_out on customer_id
|
| 67 |
tbl_d_calender and tbl_f_opt_out on date_id
|
| 68 |
-
tbl_d_time and tbl_f_opt_out on time_id
|
|
|
|
|
|
|
|
|
| 25 |
style_col = ["sku", "style", "source_file", "load_date"]
|
| 26 |
email_col = ['event_id', 'customer_id', 'time_id', 'date_id', 'email_key']
|
| 27 |
event_col = ['event_id', 'event_type', 'event_description', 'event_detail', 'start_date', 'end_date', 'event_code', 'event_category']
|
| 28 |
+
tbl_d_product_style_flags = ["product_id", "contemp_style_flag", "trad_style_flag", "country_style_flag", "trans_style_flag",
|
| 29 |
+
"mc_style_flag", "farm_style_flag", "wi_style_flag","iron_style_flag","crystal_style_flag","coast_style_flag","rustic_style_flag","ind_style_flag",
|
| 30 |
+
"glam_style_flag","ac_style_flag","kids_style_flag","asian_style_flag","tiff_style_flag","trop_style_flag","um_style_flag",
|
| 31 |
+
"sw_style_flag", "themed_style_flag", "west_style_flag", "style", "sku#"]
|
| 32 |
+
|
| 33 |
+
zip_distance = ["zip", "store_number", "mi_from_nearest_store"]
|
| 34 |
|
| 35 |
|
| 36 |
DEFAULT_TABLES_COLS = {"tbl_d_customer":customer_col, "tbl_d_product":product_col, "tbl_f_sales":sales_col,
|
| 37 |
"tbl_d_store":store_col, "tbl_d_channel":channel_col, "tbl_d_lineaction_code":lineaction_col,
|
| 38 |
"tbl_d_calendar":calendar_col, 'tbl_f_browse':browse_col, 'tbl_d_time': time_col, 'tbl_d_browse_action': browse_action_col,
|
| 39 |
+
'tbl_d_browse_category':browse_category_col, 'tbl_d_style':style_col, 'tbl_f_emailing': email_col, 'tbl_d_event':event_col,
|
| 40 |
+
"tbl_d_product_style_flags":tbl_d_product_style_flags, "zip_distance":zip_distance}
|
| 41 |
|
| 42 |
|
| 43 |
TABLE_RELATIONS = """tbl_d_store and tbl_f_sales on store_id
|
|
|
|
| 72 |
tbl_d_customer and tbl_f_activity on customer_id
|
| 73 |
tbl_d_customer and tbl_f_opt_out on customer_id
|
| 74 |
tbl_d_calender and tbl_f_opt_out on date_id
|
| 75 |
+
tbl_d_time and tbl_f_opt_out on time_id
|
| 76 |
+
tbl_d_product and tbl_d_product_style_flags on product_id
|
| 77 |
+
tbl_d_store and zip_distance on store_number"""
|