namespace my.bookshop;
using
{
cuid,
managed,
temporal
}
from '@sap/cds/common';
entity Books : cuid, managed, temporal
{
title : String;
stock : Integer;
chapters : Composition of many Chapters on chapters.book = $self;
pages : Composition of many Pages on pages.book = $self;
author : Association to one Authors;
backgrounds : Composition of many Backgrounds on backgrounds.book = $self;
bookInfo : Composition of one BookInfos on bookInfo.book = $self;
covers : Composition of many Covers on covers.book = $self;
}
entity Chapters : cuid, managed, temporal
{
book : Association to one Books;
}
entity Pages : cuid, managed, temporal
{
book : Association to one Books;
}
entity Authors : cuid, managed, temporal
{
}
entity Covers : cuid, managed
{
book : Association to one Books;
}
entity Backgrounds : cuid, managed
{
book : Association to one Books;
}
entity BookInfos : cuid, managed, temporal
{
book : Association to one Books;
}






You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 47 | |
| 38 | |
| 37 | |
| 30 | |
| 30 | |
| 28 | |
| 26 | |
| 26 | |
| 24 | |
| 24 |