The following is the structural relationship of the business data tables involved in this e-commerce data warehouse system. These 34 tables center on the order table, user table, SKU product table, activity table and coupon table, and extend the coupon collection table, payment flow table, activity order table, order details table, order status table, product Comment table, coding dictionary table, refund table, SPU product table, etc. The user table provides detailed information of the user, the payment flow table provides the payment details of the order, the order details table provides the quantity of goods in the order, etc., and the product table provides the order details table Provide details about the item. This explanation takes 34 tables as an example. In actual projects, there are far more tables in the business database.
6.1.1 Activity information table (activity_info)
field name
field description
id
activity id
activity_name
Event name
activity_type
Activity type (1: full discount, 2: discount)
activity_desc
activity description
start_time
Starting time
end_time
End Time
create_time
creation time
6.1.2 Activity rule table (activity_rule)
field name
field description
id
serial number
activity_id
Activity ID
activity_type
type of activity
condition_amount
Full discount amount
condition_num
full reduction
benefit_amount
Discounted price
benefit_discount
Discount
benefit_level
preferential level
6.1.3 Activity product association table (activity_sku)
field name
field description
id
serial number
activity_id
activity id
sku_id
sku_id
create_time
creation time
6.1.4 Platform attribute table (base_attr_info)
field name
field description
id
serial number
attr_name
attribute name
category_id
category id
category_level
classification level
6.1.5 Platform attribute value table (base_attr_value)