hms_artisan.Order

The ability for Artisans to have locally saved order data is also needed:

  • As an Artisan, I need to be able to create, manage, and store Order data so that I can fulfill orders when they are relayed to me, and flag them as fulfilled for the Central Office

Order data, though, is a bit different from the Artisan and Product data that we have explored so far at a structural level:

  • An Order, when it comes right down to it, is an association of one customer with one-to-many products.
  • There's no expected need for Artisans to keep track of individual customers, except as they relate to orders, so Artisans need Customer objects that aren't also data objects, in much the same way that Artisan objects have an Address associated ...

Get Hands-On Software Engineering with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.