How to design a database of red envelopes (coupons)?

Source: Internet
Author: User
I want to design a red envelopes database, how to design the great God under the guidance of the idea. Red envelopes are the kind of full 5 yuan minus one yuan, seven days of use expires in the void.
is the mall system, redeem coupons.

Reply content:

I want to design a red envelopes database, how to design the great God under the guidance of the idea. Red envelopes are the kind of full 5 yuan minus one yuan, seven days of use expires in the void.
is the mall system, redeem coupons.

Is it a mall system? This should be a coupon, type is full minus coupon

This needs to be designed with a set of promotional rules engines.

rules Programme
X-dollar reduction of X-yuan
Include X products to send points
Free shipping with no X items

                    送赠品                   送优惠券

They are a one-to-many relationship, and any rule should have multiple scenarios
This is I have seen Huizhoushangpaicopyright Ecstore mall inside the promotion design, the complex is very
I am 3 years of PHP experience, they this set of source, I do not fully understand

Database fields

ID (self-increment ID) name (coupon name) rule (rule) Soule (scheme) start_time (start time) end_time (end time) status (whether enabled)
This data sheet is enough for a small mall to use

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.