forked from SAP-archive/cloud-samples-foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.cds
More file actions
45 lines (41 loc) · 816 Bytes
/
common.cds
File metadata and controls
45 lines (41 loc) · 816 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
36
37
38
39
40
41
42
43
44
45
namespace clouds.foundation;
abstract entity BusinessObject : ManagedObject {
key ID : UUID @(
title: '{i18n>uuid}',
Common.Text: {$value: name, "@UI.TextArrangement": #TextOnly}
);
}
abstract entity ManagedObject {
created: {
byUser: User @(
title: '{i18n>createdBy}',
odata.on.insert: #user,
Core.Computed
);
at: DateTime @(
title: '{i18n>createdOn}',
odata.on.insert: #now,
Core.Computed
);
};
modified: {
byUser: User @(
title: '{i18n>changedBy}',
odata.on.update: #user,
Core.Computed
);
at: DateTime @(
title: '{i18n>changedOn}',
odata: {
on.update: #now,
etag
},
Core.Computed
);
};
}
type User: String(255) @(
title: '{i18n>userID}',
description: '{i18n>userIDDescription}'
);
type ImageURL : String(255) @title: '{i18n>image}';