diff --git a/packages/bookshop/db/schema.cds b/packages/bookshop/db/schema.cds index 211cd79a..69fa72ea 100644 --- a/packages/bookshop/db/schema.cds +++ b/packages/bookshop/db/schema.cds @@ -35,8 +35,8 @@ entity Authors : managed { entity Orders : cuid, managed { OrderNo : String @title : 'Order Number'; //> readable key - status : Status; - Items : Composition of many OrderItems + status : Status default 'processing'; + Items : Composition of many OrderItems on Items.parent = $self; total : Decimal(9, 2)@readonly; currency : Currency;