@dhyasama/totem-models 9.120.0 → 9.122.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.
Files changed (2) hide show
  1. package/lib/Deal.js +7 -10
  2. package/package.json +1 -1
package/lib/Deal.js CHANGED
@@ -49,13 +49,8 @@ module.exports = function(mongoose, config) {
49
49
 
50
50
  history: [{
51
51
  timestamp: { type: Date, required: true, default: Date.now },
52
- account: { type: Schema.ObjectId, ref: 'Account', required: true },
52
+ account: { type: Schema.ObjectId, ref: 'Account' },
53
53
  stage: { type: String, required: true },
54
- fundraise: {
55
- amount: { type: Number, default: 0 },
56
- valuation: { type: Number, default: 0 },
57
- details: { type: String, trim: true }
58
- },
59
54
  description: { type: String, trim: true, required: true }
60
55
  }],
61
56
 
@@ -63,11 +58,14 @@ module.exports = function(mongoose, config) {
63
58
 
64
59
  latestInteraction: { type: Schema.ObjectId, ref: 'Interaction', required: false },
65
60
 
66
- latestMessage: { type: Schema.ObjectId, ref: 'Message', required: false }
67
-
68
- });
61
+ latestMessage: { type: Schema.ObjectId, ref: 'Message', required: false },
69
62
 
63
+ applications: [{
64
+ name: { type: Schema.ObjectId },
65
+ submittedOn: { type: Schema.ObjectId }
66
+ }]
70
67
 
68
+ });
71
69
 
72
70
  ///////////////////////////////////////////////////////////////////////////////////////
73
71
  // VIRTUALS
@@ -338,7 +336,6 @@ module.exports = function(mongoose, config) {
338
336
  timestamp: new Date(),
339
337
  account: options.account || null,
340
338
  stage: deal.stage,
341
- fundraise: deal.fundraise,
342
339
  description: description
343
340
  });
344
341
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.120.0",
3
+ "version": "9.122.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",