diff --git a/bookstore/package.json b/bookstore/package.json index ccc7a2bf..2a926a39 100644 --- a/bookstore/package.json +++ b/bookstore/package.json @@ -31,8 +31,15 @@ "kind": "enterprise-messaging" } }, - "db": { - "kind": "sql" + "db": { "kind": "sql" }, + "[multimodule]": { + "db": { + "kind": "sqlite", + "impl": "@cap-js/sqlite", + "credentials": { + "url": "../db.sqlite" + } + } } }, "log": { diff --git a/db/sqlite/index.cds b/db/sqlite/index.cds new file mode 100644 index 00000000..3c4fa1e1 --- /dev/null +++ b/db/sqlite/index.cds @@ -0,0 +1,5 @@ +using from '@capire/bookstore'; +using from '@capire/common'; +using from '@capire/orders'; +using from '@capire/reviews'; +using from '@capire/fiori'; \ No newline at end of file diff --git a/fiori/index.cds b/fiori/index.cds index 1ea0235e..016425ff 100644 --- a/fiori/index.cds +++ b/fiori/index.cds @@ -1 +1,2 @@ using from './db/common'; +using from './app/services'; \ No newline at end of file diff --git a/fiori/package.json b/fiori/package.json index 90b7b5df..1587d44c 100644 --- a/fiori/package.json +++ b/fiori/package.json @@ -5,12 +5,10 @@ "@capire/bookstore": "*", "@sap/cds": ">=5", "@cap-js-community/odata-v2-adapter": "^1", - "express": "^4.17.1", - "@sap/xssec": "^3" + "express": "^4.17.1" }, "devDependencies": { - "@cap-js/sqlite": "^1", - "@sap/cds-dk": "^7" + "@cap-js/sqlite": "^1" }, "scripts": { "start": "cds-serve", @@ -40,6 +38,15 @@ "db": { "kind": "sql" }, + "[multimodule]": { + "db": { + "kind": "sqlite", + "impl": "@cap-js/sqlite", + "credentials": { + "url": "../db.sqlite" + } + } + }, "db-ext": { "[development]": { "model": "db/sqlite" @@ -47,8 +54,7 @@ "[production]": { "model": "db/hana" } - }, - "auth": "xsuaa" + } }, "hana": { "deploy-format": "hdbtable" diff --git a/orders/package.json b/orders/package.json index 7c1d58c0..ea95b5c2 100644 --- a/orders/package.json +++ b/orders/package.json @@ -3,15 +3,20 @@ "version": "1.0.0", "dependencies": { "@capire/common": "*", - "@sap/cds": ">=5", - "@sap/xssec": "^3" + "@sap/cds": ">=5" }, "cds": { "requires": { - "auth": "xsuaa" + "db": { "kind": "sql" }, + "[multimodule]": { + "db": { + "kind": "sqlite", + "impl": "@cap-js/sqlite", + "credentials": { + "url": "../db.sqlite" + } + } + } } - }, - "devDependencies": { - "@sap/cds-dk": "^7" } } diff --git a/package.json b/package.json index 068c8cbe..9409f5f2 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,16 @@ "parallel": true, "timeout": 6666 }, + "cds": { + "requires": { + "db": { + "kind": "sql", + "[development]": { + "model": "db/sqlite" + } + } + } + }, "license": "SEE LICENSE IN LICENSE", "private": true } diff --git a/reviews/package.json b/reviews/package.json index 5325bc17..b790ed1a 100644 --- a/reviews/package.json +++ b/reviews/package.json @@ -17,7 +17,17 @@ "[hybrid]": { "kind": "enterprise-messaging-shared" }, "[production]": { "kind": "enterprise-messaging" } }, - "db": { "kind": "sql" } + + "db": { "kind": "sql" }, + "[multimodule]": { + "db": { + "kind": "sqlite", + "impl": "@cap-js/sqlite", + "credentials": { + "url": "../db.sqlite" + } + } + } } } } \ No newline at end of file