Skip to content

Commit 77748bc

Browse files
committed
fixed model
1 parent 286d291 commit 77748bc

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

db/books.cds

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ entity Books : cuid, managed {
2626
covers : Composition of many Attachments;
2727
}
2828

29+
annotate Attachments with @UI: {
30+
LineItem : [
31+
{Value: content},
32+
{Value: fileName},
33+
{Value: status},
34+
{Value: createdAt},
35+
{Value: createdBy},
36+
{Value: note}
37+
]
38+
} {
39+
modifiedAt @(odata.etag: null);
40+
}
41+
2942
entity Authors : cuid, managed {
3043
@assert.format : '^\p{Lu}.*' // assert that name starts with a capital letter
3144
name : String(111);
@@ -35,8 +48,6 @@ entity Authors : cuid, managed {
3548
placeOfDeath : String;
3649
books : Association to many Books
3750
on books.author = $self;
38-
} {
39-
modifiedAt @(odata.etag: null);
4051
}
4152

4253
// annotations for Data Privacy

0 commit comments

Comments
 (0)