-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathschema.cds
More file actions
35 lines (29 loc) · 984 Bytes
/
schema.cds
File metadata and controls
35 lines (29 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
namespace riskmanagement;
using {managed} from '@sap/cds/common';
entity Risks : managed {
key ID : UUID @(Core.Computed : true);
title : String(100);
owner : String;
prio : String(5);
descr : String;
miti : Association to Mitigations;
impact : Integer;
bp : Association to BusinessPartners;
criticality : Integer;
test: Integer;
}
entity Mitigations : managed {
key ID : UUID @(Core.Computed : true);
descr : String;
owner : String;
timeline : String;
risks : Association to many Risks
on risks.miti = $self;
}
// using an external service from S/4
using {API_BUSINESS_PARTNER as external} from '../srv/external/API_BUSINESS_PARTNER.csn';
entity BusinessPartners as projection on external.A_BusinessPartner {
key BusinessPartner,
LastName,
FirstName
}