CAA160 exercise 2 final state

This commit is contained in:
Marc Becker
2019-09-18 07:07:47 +00:00
parent be6d9a5975
commit 7b3f8ac974
10 changed files with 369 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
namespace sap.capire.products;
using { Currency, cuid, managed, sap.common.CodeList } from '@sap/cds/common';
entity Products : cuid, managed {
title : localized String(111);
descr : localized String(1111);
stock : Integer;
price : Decimal(9,2);
currency : Currency;
category : Association to Categories;
}
entity Categories : CodeList {
key ID : Integer;
parent : Association to Categories;
children : Composition of many Categories on children.parent = $self;
}