petshop-00-model.spp
petshop/catalogue/petshop-00-model.spp
Download original file · Petstore source contents
1domain petshop;23Role Goods {4business("Goods number used for selection, inventory and settled order lines") String sku;5String category;6String name;7String description;8BigDecimal(19, 2) price;9boolean active;10}1112Reference StockLine from inventory.StockLine {13Goods goods;14quantum int available;15quantum int reserved;16quantum int sold;17}1819Reference StockSupply from inventory.StockSupply {20Goods goods;21quantum int balance;22}2324Contract StockReceiptAgreement {25Goods goods;26StockLine stock;27StockSupply source;28int quantity;29}3031Contract StoreOpeningAgreement {32String tradingName;33String shopName;34}