Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
discount_coupons

Usage of Discount Coupon depends on the pricing policy of the company.
If the pricing policy is 'free + pay per course', then the discount coupons can be used while purchasing a product.
If the pricing policy is 'free + paid membership subscription', then the coupon can be used for the membership subscription.

A Discount Coupon will have the following properties Coupon code, discount, quantity, redeemed count, created date and expiry date

DB schema for discount coupon

Table Name: coupons

Column_name type Description
id integer primary key
code varchar A unique value
quantity integer Number of times the coupon can be used
redeemed_count varchar number of times the coupon is used
discount varchar discount in percentage
expiry_date date_time date on which the coupon will expire
created_at date_time date of which the coupon was created
updated_at date_time coupon properties updated date
deleted_at date_time when this coupon was deleted

Table Name: product_coupons

Column_name type Description
id integer primary key
coupon_id varchar A unique value
product_type integer type of the product. this can be 'Course', 'Certification', 'LiveEvent', or Subscription
product_id varchar On which product, this coupon can be used
created_at date_time date of which the coupon was created
updated_at date_time coupon properties updated date

Table Name: coupon_usages

Column_name type Description
id integer primary key
user_id integer id of the user who used the coupon
coupon_id integer references the coupon.
product_id integer On which product, this coupon was used
product_type varchar type of the product, this can be 'Course', 'Certification', 'LiveEvent', or Subscription
order_id integer Order id
created_at date_time date of which the coupon was created
updated_at date_time
discount_coupons.txt · Last modified: 2018/08/31 16:16 (external edit)