Cafe
version: working
This is a demonstration Domain for modelling a Cafe that takes orders for drinks.
Data Model of jargon/Cafe

Data Definitions of jargon/Cafe
Store
A Cafe, that sells a limited range of drinks
Property |
Definition |
Type |
id |
All Stores are uniquely identified by a numerical identifier. |
Numeric |
orders |
Cafes store a list of their Orders, both historic and current. Orders that are complete have an Order.status value of 'Completed'. For more information see the Order Status Lifecycle. |
Order |
address |
The address of the Cafe |
Address |
Order
An order for a single drink
Property |
Definition |
Type |
id |
A unique identifier for an Order.This identifier is also used to make a Payment for this Order. |
Numeric |
milk |
The type of milk |
Code (MilkType) |
size |
The size of the cup |
Code (CupSize) |
type |
The type of drink |
Code (DrinkType) |
status |
|
Code (OrderStatus) |
Payment
Details of the payment for an order
Property |
Definition |
Type |
status |
Identifies if the payment was valid or not. |
Code (PaymentStatus) |
order |
|
Order |
Code Tables of jargon/Cafe
MilkType
CupSize
DrinkType
OrderStatus
Code values for this table are derrived from the state lifecycle chart: Order lifecycle
value |
Placed |
Preparing |
Cancelled |
Ready |
Completed |
PaymentStatus
State Diagram of Order lifecycle

Open API Specification of jargon/Cafe
This specification is available in different forms:
Imported Domains