DevOps2018-Promotions / promotions

The promotions resource is a representation of a special promotion or sale that is running against a product or perhaps the entire store. Some examples are "buy 1 get 1 free", "20% off" etc.
MIT License
2 stars 2 forks source link

Backend Database implementation #24

Closed guangylegend closed 6 years ago

guangylegend commented 6 years ago

Generally we should include following tables and columns in our databases, maybe in several tables:

Table promotion: (general)

PK # > 1 means discount by value, < 1 means discount by ratio. Just for now. Table promotion_user_group: PFK PFK PK Table promotion_code: PFK PFK PK Table promotion_bundle: PK PK