Sha256: af6637fc24a0949a956c05889e8abf86b6a5da400333cc1b1396136412377f0e

Contents?: true

Size: 658 Bytes

Versions: 1

Compression:

Stored size: 658 Bytes

Contents

vocabulary WaiterTips;

/*
 * Value Types
 */
AUDValue is written as Money;
MealId is written as Auto Counter;
WaiterNr is written as Signed Integer(32);

/*
 * Entity Types
 */
Amount is identified by AUDValue where
	Amount has one AUDValue,
	AUDValue is of at most one Amount;

Meal is identified by its Id;

Waiter is identified by its Nr;

WaiterTip is where
	Waiter for serving Meal reported a tip of at most one Amount;

Service is where
	Waiter served Meal;
Service earned a tip of at most one Amount;

/*
 * Constraints:
 */
Service (where Waiter served Meal) earned a tip of Amount
	if and only if
	Waiter for serving Meal reported a tip of Amount;

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activefacts-0.8.8 examples/CQL/WaiterTips.cql