pdm config

This commit is contained in:
Wolfgang Koch
2020-11-11 16:34:55 +01:00
parent 3b274089c2
commit baa2b4eaf1
11 changed files with 272 additions and 47 deletions

26
gdpr/db/data-privacy.cds Normal file
View File

@@ -0,0 +1,26 @@
// Proxy for importing schema from bookshop sample
using { sap.capire.bookshop } from './schema';
// annotations for Data Privacy
annotate bookshop.Customers with @PersonalData.EntitySemantics: 'DataSubject'
{
ID @PersonalData.FieldSemantics: 'DataSubjectID';
emailAddress @PersonalData.IsPotentiallyPersonal;
firstName @PersonalData.IsPotentiallyPersonal;
lastName @PersonalData.IsPotentiallyPersonal;
creditCardNo @PersonalData.IsPotentiallySensitive;
}
annotate bookshop.CustomerPostalAddress with @PersonalData.EntitySemantics: 'DataSubjectDetails'
{
Customer @PersonalData.FieldSemantics: 'DataSubjectID';
street @PersonalData.IsPotentiallyPersonal;
town @PersonalData.IsPotentiallyPersonal;
country @PersonalData.IsPotentiallyPersonal;
}
// annotations for Audit Log
annotate bookshop.Customers with @AuditLog.Operation: {Read: true, Insert: true, Update: true, Delete: true};
annotate bookshop.CustomerPostalAddress with @AuditLog.Operation: {Read: true, Insert: true, Update: true, Delete: true};