audit log
This commit is contained in:
@@ -26,6 +26,13 @@ annotate bookshop.CustomerPostalAddress with @PersonalData : {
|
||||
country @PersonalData.IsPotentiallyPersonal;
|
||||
}
|
||||
|
||||
annotate bookshop.Orders with @PersonalData.EntitySemantics : 'Other'
|
||||
{
|
||||
ID @PersonalData.FieldSemantics : 'ContractRelatedID';
|
||||
Customer @PersonalData.FieldSemantics : 'DataSubjectID';
|
||||
personalComment @PersonalData.IsPotentiallyPersonal;
|
||||
}
|
||||
|
||||
// annotations for Audit Log
|
||||
annotate bookshop.Customers with @AuditLog.Operation : {
|
||||
Read : true,
|
||||
@@ -34,9 +41,18 @@ annotate bookshop.Customers with @AuditLog.Operation : {
|
||||
Delete : true
|
||||
};
|
||||
|
||||
// annotations for Audit Log
|
||||
annotate bookshop.CustomerPostalAddress with @AuditLog.Operation : {
|
||||
Read : true,
|
||||
Insert : true,
|
||||
Update : true,
|
||||
Delete : true
|
||||
};
|
||||
|
||||
// annotations for Audit Log
|
||||
annotate bookshop.Orders with @AuditLog.Operation : {
|
||||
Read : true,
|
||||
Insert : true,
|
||||
Update : true,
|
||||
Delete : true
|
||||
};
|
||||
|
||||
@@ -1,27 +1,29 @@
|
||||
// Proxy for importing schema from bookshop sample
|
||||
using { sap.capire.bookshop.Books } from '@capire/bookshop';
|
||||
using { sap.capire.bookshop.Orders } from '@capire/orders';
|
||||
using { sap.capire.bookshop.OrderItems } from '@capire/orders';
|
||||
using { sap.capire.bookshop.Books } from '../../bookshop/db/schema';
|
||||
using { sap.capire.bookshop.Orders } from '../../orders/db/schema';
|
||||
using { sap.capire.bookshop.OrderItems } from '../../orders/db/schema';
|
||||
using { Country, managed, cuid } from '@sap/cds/common';
|
||||
|
||||
namespace sap.capire.bookshop;
|
||||
|
||||
extend Orders with {
|
||||
Customer : Association to Customers;
|
||||
Customer : Association to Customers;
|
||||
personalComment : String;
|
||||
}
|
||||
|
||||
entity Customers : cuid, managed {
|
||||
email : String;
|
||||
firstName : String;
|
||||
lastName : String;
|
||||
creditCardNo : String;
|
||||
dateOfBirth : Date;
|
||||
email : String;
|
||||
firstName : String;
|
||||
lastName : String;
|
||||
creditCardNo : String;
|
||||
dateOfBirth : Date;
|
||||
postalAddress : Association to CustomerPostalAddress on postalAddress.Customer = $self;
|
||||
}
|
||||
|
||||
entity CustomerPostalAddress : cuid, managed {
|
||||
Customer : Association to one Customers;
|
||||
street : String(128);
|
||||
town : String(128);
|
||||
country : Country;
|
||||
country : Country;
|
||||
someOtherField : String(128);
|
||||
};
|
||||
|
||||
3300
gdpr/package-lock.json
generated
3300
gdpr/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,7 @@
|
||||
//using from '@capire/orders';
|
||||
using {sap.capire.bookshop as db} from '../db/data-privacy';
|
||||
using {sap.capire.bookshop.Books} from '@capire/bookshop';
|
||||
using {sap.capire.bookshop.Orders} from '@capire/orders';
|
||||
using {sap.capire.bookshop.OrderItems} from '@capire/orders';
|
||||
using {sap.capire.bookshop as db} from '../db/data-privacy';
|
||||
using {sap.capire.bookshop.Books} from '../db/data-privacy';
|
||||
using {sap.capire.bookshop.Orders} from '../db/data-privacy';
|
||||
using {sap.capire.bookshop.OrderItems} from '../db/data-privacy';
|
||||
|
||||
@requires: 'PersonalDataManagerUser' // security check
|
||||
service PDMService {
|
||||
|
||||
Reference in New Issue
Block a user