diff --git a/gdpr/db/data-privacy.cds b/gdpr/db/data-privacy.cds index 96501959..4c8326b5 100644 --- a/gdpr/db/data-privacy.cds +++ b/gdpr/db/data-privacy.cds @@ -28,8 +28,7 @@ annotate bookshop.Customers with @(Communication.Contact : { surname: lastName, given: firstName }, - bday: dateOfBirth, - email: emailAddress + bday: dateOfBirth }); // annotations for Audit Log diff --git a/gdpr/srv/pdm-service.cds b/gdpr/srv/pdm-service.cds index 2fe68a04..5e17e024 100644 --- a/gdpr/srv/pdm-service.cds +++ b/gdpr/srv/pdm-service.cds @@ -24,16 +24,13 @@ using { sap.capire.bookshop.OrderItems } from '@capire/orders'; Items.netAmount as Item_NetAmount}; // annotate new view - annotate PDMService.OrderItemView with @(PersonalData.EntitySemantics: 'LegalGround') + annotate PDMService.OrderItemView with @(PersonalData.EntitySemantics: 'ContractRelated') { Item_ID @PersonalData.FieldSemantics: 'LegalGroundID'; Customer_ID @PersonalData.FieldSemantics: 'DataSubjectID'; Customer_Email @PersonalData.IsPotentiallyPersonal; }; - annotate Customers with @PersonalData.DataSubjectRole: 'Customer'; - annotate CustomerPostalAddress with @PersonalData.DataSubjectRole: 'Customer'; - annotate PDMService.OrderItemView with @PersonalData.DataSubjectRole: 'Customer'; // Data Privacy annotations on 'Customers' and 'CustomerPostalAddress' are derived from original entity definitions }; \ No newline at end of file