Preparing your design workspace

Loading the problem and your saved attempt…

Design a Restaurant Ordering Domain

Model authenticated menu browsing, carts, orders, payment, and role-based restaurant operations.

For this exercise, assume customers authenticate, browse one restaurant's active menu, build a cart, place an order, and pay. Restaurant staff may change menu availability and advance only orders owned by their restaurant; administrators manage restaurant membership.

A cart belongs to one customer and one restaurant, an unavailable item cannot be ordered, payment callbacks may be duplicated, and every order transition must be authorized and legal. Design the domain objects, persistence boundaries, APIs, interaction flow, and extension points.

Exclude delivery routing and recommendation ranking.