@dynamatix/gb-schemas 0.3.2 → 0.3.3
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.
- package/applications/application-credit-profile.model.js +1 -2
- package/applications/application-direct-debit.model.js +2 -2
- package/applications/application-mortgage.model.js +1 -2
- package/applications/application-product.model.js +1 -2
- package/applications/application-valuation.model.js +1 -2
- package/applications/application.model.js +6 -0
- package/package.json +1 -1
|
@@ -10,5 +10,4 @@ const creditProfileSchema = new mongoose.Schema({
|
|
|
10
10
|
companyDefaultsInLastYearNo: { type: Boolean, default: false },
|
|
11
11
|
companyDefaultsInLastYearYes: { type: String, default: "" }
|
|
12
12
|
});
|
|
13
|
-
|
|
14
|
-
export default ApplicationCreditProfileModel;
|
|
13
|
+
export default creditProfileSchema;
|
|
@@ -13,7 +13,7 @@ const directDebitSchema = new mongoose.Schema({
|
|
|
13
13
|
nameOfAccountHolder: { type: String, default: "" },
|
|
14
14
|
selectedPaymentDay: { type: Number, default: null },
|
|
15
15
|
sortCode: { type: String, default: "" },
|
|
16
|
+
|
|
16
17
|
});
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
export default ApplicationDirectDebitModel;
|
|
19
|
+
export default directDebitSchema;
|
|
@@ -28,5 +28,4 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
28
28
|
vendorsName: { type: String, default: "" }
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
export default ApplicationMortgageModel;
|
|
31
|
+
export default mortgageSchema;
|
|
@@ -13,5 +13,4 @@ const valuationSchema = new mongoose.Schema({
|
|
|
13
13
|
valuerNotes: { type: String, default: "" },
|
|
14
14
|
version: { type: String, default: "" }
|
|
15
15
|
});
|
|
16
|
-
|
|
17
|
-
export default ApplicationValuationModel;
|
|
16
|
+
export default valuationSchema;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
|
+
import directDebitSchema from "./application-direct-debit.model";
|
|
3
|
+
import creditProfileSchema from "./application-credit-profile.model";
|
|
4
|
+
import mortgageSchema from "./application-mortgage.model";
|
|
2
5
|
|
|
3
6
|
const applicationSchema = new mongoose.Schema(
|
|
4
7
|
{
|
|
@@ -59,6 +62,9 @@ const applicationSchema = new mongoose.Schema(
|
|
|
59
62
|
isActive: { type: Boolean, default: false },
|
|
60
63
|
isUkResident: { type: Boolean, default: true },
|
|
61
64
|
riskRating: { type: String },
|
|
65
|
+
directDebit: directDebitSchema,
|
|
66
|
+
creditProfile: creditProfileSchema,
|
|
67
|
+
mortgage: mortgageSchema
|
|
62
68
|
},
|
|
63
69
|
{ timestamps: true }
|
|
64
70
|
);
|