@dynamatix/gb-schemas 0.3.4 → 0.3.5

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.
@@ -2,6 +2,7 @@ import mongoose from "mongoose";
2
2
  import directDebitSchema from "./application-direct-debit.model.js";
3
3
  import creditProfileSchema from "./application-credit-profile.model.js";
4
4
  import mortgageSchema from "./application-mortgage.model.js";
5
+ import companySchema from "./application-company-model.js";
5
6
 
6
7
  const applicationSchema = new mongoose.Schema(
7
8
  {
@@ -64,7 +65,8 @@ const applicationSchema = new mongoose.Schema(
64
65
  riskRating: { type: String },
65
66
  directDebit: directDebitSchema,
66
67
  creditProfile: creditProfileSchema,
67
- mortgage: mortgageSchema
68
+ mortgage: mortgageSchema,
69
+ company: companySchema
68
70
  },
69
71
  { timestamps: true }
70
72
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "All the schemas for gatehouse bank back-end.",
5
5
  "main": "index.js",
6
6
  "scripts": {