@brimble/models 2.7.6 → 2.7.8

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.
@@ -29,7 +29,7 @@ const projectSchema = new mongoose_1.Schema({
29
29
  },
30
30
  buildCacheEnabled: {
31
31
  type: Boolean,
32
- default: false,
32
+ default: true,
33
33
  },
34
34
  domains: [
35
35
  {
@@ -132,7 +132,25 @@ const projectSchema = new mongoose_1.Schema({
132
132
  default: 3,
133
133
  },
134
134
  nomadJobId: String,
135
- specs: Object,
135
+ specs: {
136
+ memory: {
137
+ type: Number,
138
+ default: 0.5,
139
+ },
140
+ cpu: {
141
+ type: Number,
142
+ default: 0.2,
143
+ },
144
+ storage: {
145
+ type: Number,
146
+ default: 1,
147
+ },
148
+ region: {
149
+ type: mongoose_1.Schema.Types.ObjectId,
150
+ ref: "Region",
151
+ required: true,
152
+ },
153
+ },
136
154
  last_requested: mongoose_1.Schema.Types.Date,
137
155
  isPaused: Boolean,
138
156
  dbImage: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.7.6",
3
+ "version": "2.7.8",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -29,7 +29,7 @@ const projectSchema = new Schema(
29
29
  },
30
30
  buildCacheEnabled: {
31
31
  type: Boolean,
32
- default: false,
32
+ default: true,
33
33
  },
34
34
  domains: [
35
35
  {
@@ -132,7 +132,25 @@ const projectSchema = new Schema(
132
132
  default: 3,
133
133
  },
134
134
  nomadJobId: String,
135
- specs: Object,
135
+ specs: {
136
+ memory: {
137
+ type: Number,
138
+ default: 0.5,
139
+ },
140
+ cpu: {
141
+ type: Number,
142
+ default: 0.2,
143
+ },
144
+ storage: {
145
+ type: Number,
146
+ default: 1,
147
+ },
148
+ region: {
149
+ type: Schema.Types.ObjectId,
150
+ ref: "Region",
151
+ required: true,
152
+ },
153
+ },
136
154
  last_requested: Schema.Types.Date,
137
155
  isPaused: Boolean,
138
156
  dbImage: {