Added reviews/test/bookshop
This commit is contained in:
13
reviews/test/bookshop/schema.cds
Normal file
13
reviews/test/bookshop/schema.cds
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// Extending Books with Reviews
|
||||
//
|
||||
|
||||
using { sap.capire.bookshop.Books } from '@capire/bookshop';
|
||||
using { ReviewsService.Reviews } from '@capire/reviews';
|
||||
|
||||
extend Books with {
|
||||
/** Access to detailed collection of Reviews */
|
||||
reviews : Composition of many Reviews on reviews.subject = $self.ID;
|
||||
/** Average rating */
|
||||
rating : Reviews.rating;
|
||||
}
|
||||
Reference in New Issue
Block a user