Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.17 KB

discount_codes.md

File metadata and controls

26 lines (18 loc) · 1.17 KB

logo discount_codes

Start>discount_codes

Description

Discount Codes Used for Each Order

Columns 5

Key Name Data Type Length Precision Scale Not Null Description
Primary Key PK_DiscountCodesCluster Key PK_DiscountCodes order_id bigint 8 19 0 True Order ID discount code applied to
Indexes IDX_DiscountCodes_order_id processed_at datetime 8 23 3 True Date the order was processed
Primary Key PK_DiscountCodesCluster Key PK_DiscountCodes code nvarchar 255 0 0 True Discount code
amount money 8 19 4 True Amount of discount code
type nvarchar 255 0 0 True Type of Discount Code

Indexes

Key Name Columns Unique
IDX_DiscountCodes_order_id processed_at False
Primary Key PK_DiscountCodesCluster Key PK_DiscountCodes PK_DiscountCodes order_id, code True