This commit is contained in:
Daniel
2020-03-02 01:22:59 +01:00
parent 26d7fc767c
commit 9921b2f3de
56 changed files with 34 additions and 66 deletions

View File

@@ -0,0 +1,18 @@
namespace sap.capire.bookstore;
// We reuse Products, which are Books in our domain
using { sap.capire.products.Products as Books } from '@sap/capire-products';
extend Books with {
author : Association to Authors;
rating : Decimal(2,1);
}
// We reuse aspect Person to define Authors
using { sap.capire.contacts.Person } from '@sap/capire-contacts';
entity Authors : Person {
key ID : UUID;
books : Association to many Books on books.author = $self;
}
// we use enhanced currencies code lists
using from '@sap/capire-currencies';