Files
cloud-cap-samples/graphql/db/schema.cds
2021-11-04 17:31:57 +01:00

16 lines
363 B
Plaintext

using {managed} from '@sap/cds/common';
using {sap.capire.bookshop} from '@capire/bookshop';
namespace sap.capire.graphql;
extend bookshop.Books with {
chapters : Composition of many Chapters
on chapters.book = $self;
}
entity Chapters : managed {
key book : Association to bookshop.Books;
key number : Integer;
title : String;
}