@dynamatix/gb-schemas 0.5.2 → 0.5.4

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,10 +1,6 @@
1
1
  import mongoose from "mongoose";
2
2
 
3
- const applicationAuditSchema = new mongoose.Schema({
4
- applicationId: {
5
- type: mongoose.Schema.Types.ObjectId, ref: "Application",
6
- required: true
7
- },
3
+ const applicationAuditStageSchema = new mongoose.Schema({
8
4
  auditId: {
9
5
  type: Number,
10
6
  required: true
@@ -25,13 +21,10 @@ const applicationAuditSchema = new mongoose.Schema({
25
21
  type: Number,
26
22
  required: true
27
23
  },
28
- formEntityId: {
29
- type: String,
30
- required: false
31
- },
32
- formEntityDescription: {
33
- type: String,
34
- required: false
24
+ applicationId: {
25
+ type: mongoose.Schema.Types.ObjectId,
26
+ ref: 'Application',
27
+ required: true
35
28
  },
36
29
  name: {
37
30
  type: String,
@@ -47,5 +40,5 @@ const applicationAuditSchema = new mongoose.Schema({
47
40
  }
48
41
  });
49
42
 
50
- const ApplicationAuditModel = mongoose.model('ApplicationAudit', applicationAuditSchema);
51
- export default ApplicationAuditModel;
43
+ const ApplicationAuditStageModel = mongoose.model('ApplicationAuditStage', applicationAuditStageSchema);
44
+ export default ApplicationAuditStageModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "All the schemas for gatehouse bank back-end.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@ const checklistSchema = new mongoose.Schema({
8
8
  },
9
9
  source:{ // [Applicant, Property, Application]
10
10
  type: String,
11
- required: false
11
+ required: true
12
12
  },
13
13
  sourceId:{
14
14
  type: mongoose.Schema.Types.ObjectId,