@dynamatix/gb-schemas 0.23.7 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
-
import mongooseEncryption from "../utils/encryption.middleware.js";
|
|
3
2
|
|
|
4
3
|
const companySchema = new mongoose.Schema({
|
|
5
4
|
addressCity: { type: String, default: "" },
|
|
@@ -33,6 +32,5 @@ const companySchema = new mongoose.Schema({
|
|
|
33
32
|
existingMortgage: {type: String } // e.g., "2"
|
|
34
33
|
});
|
|
35
34
|
|
|
36
|
-
companySchema.plugin(mongooseEncryption);
|
|
37
35
|
const ApplicationCompanyModel = mongoose.model("ApplicationCompany", companySchema);
|
|
38
36
|
export default ApplicationCompanyModel;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
-
import mongooseEncryption from "../utils/encryption.middleware.js";
|
|
3
2
|
|
|
4
3
|
const illustrationSchema = new mongoose.Schema({
|
|
5
4
|
date: { type: Date } // e.g., the date of illustration
|
|
6
5
|
});
|
|
7
6
|
|
|
8
|
-
illustrationSchema.plugin(mongooseEncryption);
|
|
9
7
|
const IllustrationModel = mongoose.model("Illustration", illustrationSchema);
|
|
10
8
|
export default IllustrationModel;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamatix/gb-schemas",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "All the schemas for gatehouse bank back-end",
|
|
3
|
+
"version": "0.24.0",
|
|
4
|
+
"description": "All the schemas for gatehouse bank back-end.",
|
|
5
5
|
"main": "lookup.service.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|