@dhyasama/totem-models 9.0.0 → 9.1.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/CapTable.js +12 -12
  2. package/package.json +1 -1
package/lib/CapTable.js CHANGED
@@ -50,6 +50,18 @@ module.exports = function(mongoose, config) {
50
50
  // verbatim text from the cap table
51
51
  name: { type: String, trim: true, required: true },
52
52
 
53
+ rounds: [{
54
+ round: { type: String, trim: true, required: true },
55
+ shares: { type: Number, default: 0 },
56
+ ownership: { type: Number, default: 0 }
57
+ }],
58
+
59
+ // computed on save (via pre-save hook); don't set directly;
60
+ shares: { type: Number, default: 0 },
61
+
62
+ // computed on save (via pre-save hook); don't set directly;
63
+ ownership: { type: Number, default: 0 }
64
+
53
65
  // link stakeholder to a fund in our system
54
66
  fund: {
55
67
  type: Schema.ObjectId,
@@ -110,18 +122,6 @@ module.exports = function(mongoose, config) {
110
122
  }
111
123
  },
112
124
 
113
- rounds: [{
114
- round: { type: String, trim: true, required: true },
115
- shares: { type: Number, default: 0 },
116
- ownership: { type: Number, default: 0 }
117
- }],
118
-
119
- // computed on save (via pre-save hook); don't set directly;
120
- shares: { type: Number, default: 0 },
121
-
122
- // computed on save (via pre-save hook); don't set directly;
123
- ownership: { type: Number, default: 0 }
124
-
125
125
  }],
126
126
 
127
127
  entered: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.0.0",
3
+ "version": "9.1.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",