|
id
|
bigint(20) unsigned
|
|
|
|
|
code
|
varchar(40)
|
|
|
|
|
description
|
varchar(255)
|
|
|
|
|
type
|
varchar(20)
|
|
|
|
|
is_active
|
tinyint(1)
|
|
|
1
|
|
discount_type
|
varchar(20)
|
|
|
|
|
discount_value
|
decimal(10,2)
|
|
|
0.00
|
|
max_discount
|
decimal(10,2)
|
|
|
|
|
scope
|
varchar(20)
|
|
|
all
|
|
category_ids
|
longtext
|
|
|
|
|
product_ids
|
longtext
|
|
|
|
|
apply_to_sale_items
|
tinyint(1)
|
|
|
1
|
|
shipping_mode
|
varchar(20)
|
|
|
|
|
shipping_value
|
decimal(10,2)
|
|
|
0.00
|
|
shipping_methods
|
longtext
|
|
|
|
|
min_subtotal
|
decimal(10,2)
|
|
|
|
|
starts_at
|
timestamp
|
|
|
|
|
expires_at
|
timestamp
|
|
|
|
|
usage_limit
|
int(10) unsigned
|
|
|
|
|
usage_limit_per_user
|
int(10) unsigned
|
|
|
|
|
times_used
|
int(10) unsigned
|
|
|
0
|
|
created_at
|
timestamp
|
|
|
|
|
updated_at
|
timestamp
|
|
|
|