From d612a560aa16980871c8d59ef2f971aab38491e1 Mon Sep 17 00:00:00 2001 From: Pierre Fritsch Date: Tue, 6 Jun 2023 09:06:55 +0200 Subject: [PATCH] Manage Books, Manage Authors: Make `name` mandatory (#519) --- bookshop/db/schema.cds | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bookshop/db/schema.cds b/bookshop/db/schema.cds index ec8b119a..ff7017ca 100644 --- a/bookshop/db/schema.cds +++ b/bookshop/db/schema.cds @@ -3,9 +3,9 @@ namespace sap.capire.bookshop; entity Books : managed { key ID : Integer; - title : localized String(111); + @mandatory title : localized String(111); descr : localized String(1111); - author : Association to Authors; + @mandatory author : Association to Authors; genre : Association to Genres; stock : Integer; price : Decimal; @@ -15,7 +15,7 @@ entity Books : managed { entity Authors : managed { key ID : Integer; - name : String(111); + @mandatory name : String(111); dateOfBirth : Date; dateOfDeath : Date; placeOfBirth : String;