gdpr
This commit is contained in:
@@ -1,25 +1,22 @@
|
||||
<<<<<<< HEAD
|
||||
using { sap.capire.bookshop.Books } from '../../bookshop/db/schema';
|
||||
using { Currency, managed, cuid } from '@sap/cds/common';
|
||||
namespace sap.capire.bookshop;
|
||||
=======
|
||||
using { Currency, User, managed, cuid } from '@sap/cds/common';
|
||||
using { sap.capire.bookshop.Books } from '../../bookshop/db/schema';
|
||||
using { User, Currency, managed, cuid } from '../../common';
|
||||
namespace sap.capire.orders;
|
||||
>>>>>>> 534af7ffee60e086c563dbaa450e86e5fca5cf2b
|
||||
|
||||
entity Orders : cuid, managed {
|
||||
OrderNo : String(22) @title:'Order Number'; //> readable key
|
||||
Items : Composition of many {
|
||||
key ID : UUID;
|
||||
product : Association to Products;
|
||||
quantity : Integer;
|
||||
title : String; //> intentionally replicated as snapshot from product.title
|
||||
price : Double; //> materialized calculated field
|
||||
};
|
||||
Items : Composition of many OrderItems;
|
||||
buyer : User;
|
||||
currency : Currency;
|
||||
}
|
||||
|
||||
entity OrderItems : cuid, managed {
|
||||
book : Association to Products;
|
||||
quantity : Integer;
|
||||
title : String; //> intentionally replicated as snapshot from product.title
|
||||
amount : Double; //> materialized calculated field
|
||||
netAmount : Double;
|
||||
}
|
||||
|
||||
/** This is a stand-in for arbitrary ordered Products */
|
||||
entity Products @(cds.persistence.skip:'always') {
|
||||
key ID : String;
|
||||
@@ -27,4 +24,4 @@ entity Products @(cds.persistence.skip:'always') {
|
||||
|
||||
|
||||
// this is to ensure we have filled-in currencies
|
||||
using from '@capire/common';
|
||||
// using from '@capire/common';
|
||||
|
||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -21,6 +21,12 @@
|
||||
"./reviews"
|
||||
],
|
||||
"dependencies": {
|
||||
"@capire/bookshop": "./bookshop",
|
||||
"@capire/common": "./common",
|
||||
"@capire/fiori": "./fiori",
|
||||
"@capire/media": "./media",
|
||||
"@capire/orders": "./orders",
|
||||
"@capire/reviews": "./reviews",
|
||||
"@sap/cds": ">=5.5.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -5,16 +5,13 @@
|
||||
"repository": "https://github.com/sap-samples/cloud-cap-samples.git",
|
||||
"author": "daniel.hutzel@sap.com",
|
||||
"dependencies": {
|
||||
<<<<<<< HEAD
|
||||
"@capire/bookshop": "./bookshop",
|
||||
"@capire/common": "./common",
|
||||
"@capire/fiori": "./fiori",
|
||||
"@capire/media": "./media",
|
||||
"@capire/orders": "./orders",
|
||||
"@capire/reviews": "./reviews"
|
||||
=======
|
||||
"@capire/reviews": "./reviews",
|
||||
"@sap/cds": ">=5.5.3"
|
||||
>>>>>>> 534af7ffee60e086c563dbaa450e86e5fca5cf2b
|
||||
},
|
||||
"workspaces": [
|
||||
"./bookshop",
|
||||
|
||||
Reference in New Issue
Block a user