I am building an ecommerce site and would like to offer discounts on certain items for a limited time.
My Product table (MySQL) looks like this:
Product -
I would add discountPrice,discountPercentage,endDiscountDate column to table Product and create table discount history to keep discount tracking
Then when select no need to join table you can choose the correct price by checking endDiscountDate