Skip to content

Commit 01f299d

Browse files
authored
Update orders.cds
1 parent e2ca93e commit 01f299d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

db/orders.cds

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ entity Orders : cuid, managed {
2020
entity OrderItems : cuid {
2121
parent : Association to Orders;
2222
book : Association to Books @mandatory @assert.target;
23+
@mandatory
24+
@assert.range: [(0), _]
2325
quantity : Integer;
2426
amount : Decimal(9, 2);
2527
}

0 commit comments

Comments
 (0)