Files
cloud-cap-samples/_attic/orders-service/db/schema.cds
Daniel 9921b2f3de .
2020-03-02 01:22:59 +01:00

16 lines
396 B
Plaintext

namespace sap.capire.orders;
using { Currency, cuid, managed } from '@sap/cds/common';
entity Orders : cuid, managed {
OrderNo : String @title:'Order Number'; //> readable key
Items : Composition of many OrderItems on Items.parent = $self;
currency : Currency;
}
entity OrderItems : cuid {
parent : Association to Orders not null;
article : String;
amount : Integer;
}