Add code for unit 2

This commit is contained in:
Elena Oresharova
2020-02-10 16:26:31 +01:00
parent 13480ad99e
commit b7aee4e0e0
64 changed files with 2467 additions and 1606 deletions

View File

@@ -1,6 +1,8 @@
namespace sap.capire.bookshop;
using { Currency, managed, cuid } from '@sap/cds/common';
using { sap.capire.bookshop.Products } from './products';
/*
entity Books : managed {
key ID : Integer;
title : localized String(111);
@@ -9,6 +11,14 @@ entity Books : managed {
stock : Integer;
price : Decimal(9,2);
currency : Currency;
} */
entity Books : Products {
author : Association to Authors;
}
entity Magazines : Products {
publisher : String;
}
entity Authors : managed {