SAP Community Call

This commit is contained in:
sjvans
2022-02-24 08:30:26 +01:00
parent b13ed5cc8d
commit d53d4de105
8 changed files with 62 additions and 2763 deletions

View File

@@ -1,4 +1,7 @@
using {managed} from '@sap/cds/common';
using {
cuid,
managed
} from '@sap/cds/common';
using {sap.capire.bookshop} from '@capire/bookshop';
namespace sap.capire.graphql;
@@ -13,3 +16,11 @@ entity Chapters : managed {
key number : Integer;
title : String;
}
entity Orders : cuid, managed {
@mandatory
book : Association to bookshop.Books;
@mandatory
@assert.range : [ 1, 5 ]
quantity : Integer;
}