Files
cloud-cap-samples/bookshop/db/schema.cds
2021-04-14 19:38:38 +02:00

22 lines
522 B
Plaintext

using { Currency, managed, sap } from '@sap/cds/common';
namespace sap.capire.bookshop;
entity Books {
key ID : Integer;
title : localized String(111);
author : Association to Authors;
genre : Association to Genres;
}
entity Authors {
key ID : Integer;
name : String(111);
books : Association to many Books on books.author = $self;
}
entity Genres : sap.common.CodeList {
key ID : Integer;
parent : Association to Genres;
children : Composition of many Genres on children.parent = $self;
}