@dynamatix/gb-schemas 0.5.8 → 0.5.10

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.
@@ -23,7 +23,8 @@ const companySchema = new mongoose.Schema({
23
23
  yearEnd: { type: Date }, // e.g., "2023-12-31"
24
24
  yearEnd1: { type: Number }, // e.g., 2021
25
25
  yearEnd2: { type: Number }, // e.g., 2022
26
- yearEnd3: { type: Number } // e.g., 2023
26
+ yearEnd3: { type: Number }, // e.g., 2023
27
+ sicCode: { type: String, default: "" }, // e.g., "12345"
27
28
  });
28
29
  const ApplicationCompanyModel = mongoose.model("ApplicationCompany", companySchema);
29
30
  export default ApplicationCompanyModel;
@@ -4,15 +4,15 @@ const noteSchema = new mongoose.Schema({
4
4
  applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
5
5
  noteId: {
6
6
  type: String,
7
- required: true
7
+ default: null
8
8
  },
9
9
  createdOn: {
10
10
  type: Date,
11
- required: true
11
+ default: null
12
12
  },
13
13
  createdBy: {
14
14
  type: Number,
15
- required: true
15
+ default: null
16
16
  },
17
17
  createdByUserId: {
18
18
  type: mongoose.Schema.Types.ObjectId, ref: "User",
@@ -21,7 +21,7 @@ const noteSchema = new mongoose.Schema({
21
21
  subTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
22
22
  subject: {
23
23
  type: String,
24
- required: true
24
+ default: null
25
25
  },
26
26
  note: {
27
27
  type: String,
@@ -64,7 +64,7 @@ const noteSchema = new mongoose.Schema({
64
64
  },
65
65
  comment: {
66
66
  type: String,
67
- required: false
67
+ default : null
68
68
  },
69
69
  reminderStatus: {
70
70
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "0.5.8",
3
+ "version": "0.5.10",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "index.js",
6
6
  "scripts": {