diff --git a/media-store/db/schema.cds b/media-store/db/schema.cds index 81e10797..c99d0c78 100644 --- a/media-store/db/schema.cds +++ b/media-store/db/schema.cds @@ -89,21 +89,22 @@ entity InvoiceItems { } entity Tracks { - key ID : Integer; - name : String(200); - album : Association to Albums; - mediaType : Association to MediaTypes; - genre : Association to Genres; - composer : String(220); - milliseconds : Integer default 230619; - bytes : Integer default 3990994; - unitPrice : Decimal(10, 2) default 0.99; + key ID : Integer; + name : String(200); + album : Association to Albums; + mediaType : Association to MediaTypes; + genre : Association to Genres; + composer : String(220); + milliseconds : Integer default 230619; + bytes : Integer default 3990994; + unitPrice : Decimal(10, 2) default 0.99; + virtual alreadyOrdered : Boolean; // Two compositions below needed for cascade delete track - invoiceItems : Composition of many InvoiceItems - on invoiceItems.track = $self; - playlistTracks : Composition of many { - key playlist : Association to Playlists; - key track : Association to Tracks; - }; + invoiceItems : Composition of many InvoiceItems + on invoiceItems.track = $self; + playlistTracks : Composition of many { + key playlist : Association to Playlists; + key track : Association to Tracks; + }; };