Skip to content

Project suggestion for example #7

@yvoyer

Description

@yvoyer

Here is what I thought could represent a good use case to start an example of ddd with all types of relations (one to many, many to many), while being not too complex.

I will make a draft with tests to start a domain model (without symfony, doctrine or command bus). From there, we'll be able to start doing infrastructure, and application context.

Domain requirements:

Mr. Smith is the proud owner of the restaurant Smith's Pizzeria. He wish to have a site to manage it's company and promote it's products on the Web. Here are the requirement he wishes you to implement.

  • The owner is the only employee granted to create new or delete recipes.
  • Recipes have ingredients that can be categorized with allergens
  • a cashier takes the orders of phone, drive through or take out customers
  • a delivery boy (or girl) delivers prepared meals to the customers who ordered by phone
  • a waitress takes orders to seated clients
  • waitress serve the meals to in house customers.
  • performance bonus are alloted to each trimester based on waiting time of customers. Lower it is greater the bonus.
  • bonus are calculated according to the following chart, based on type of client and average time to serve clients (todo)
  • recipes are not available to customers as long as they have not been released.
  • recipes can be back ordered which means that no customers can order them.
  • retired recipes no longer appears on the menu, they have been removed from production.
  • front desk, drive through and in house customers do not keep order history, they are considered anonymous customer, while Web and phone customers are identified with their phone number to track their orders.
  • delivery boy pickup the customer order at an hour, and are expected to deliver it in order of priority based on ordered at time.
  • Waitress should serve all meals of the customer table at the same time, but for bonus reason, the clock start ticking when the first table customer order is entered to the last meal served
  • cashier make the customer pay on order, while delivery boy make them pay when order delivered, and waitress make them pay at end of diner.

@webdevilopers Any other cases you would need that could represent the domain?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions