Do these stories one by one.
- Save a customer into a collection.
- Make sure you can couple a loyalty card with a customer. This contains a barcode and bonus points.
- Make sure you can find you customer by a loyalty card barcode.
- Make sure you can save the groceries by day.
- Make sure you can search for the item that a specific customer bought the most.
- Make sure you can search for the items that a specific customer bought only once.
- Make sure you can guess the items a customer is going to buy based on the day of the week. For instance 9/10 times they bought a fish on friday.
- Make sure you can export a report on amount bought per item. This should be a report for each customer and not for just a single customer.
- Search for customers that haven't shoped within a year.
- When you add groceries to a customer, a customer will receive a bonus point for each item they bought 2 consecutive times.
- For each consecutive time a item get bought the amount of bonus points will double. For instance a customer bought bananas 4 times in a row, that customer will receive 8 bonus points.
- Limit the previous item to 10 bonus points.
- When a customer reached 50 bonus points a coupon for 5 euro will appear.
- Bonus points have a limited lifetime of a year.