@brimble/models 2.6.6 → 2.6.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.
package/db-image.ts CHANGED
@@ -37,6 +37,15 @@ const dbImageSchema = new Schema(
37
37
  type: Boolean,
38
38
  default: true,
39
39
  },
40
+ port: {
41
+ type: Number,
42
+ required: true
43
+ },
44
+ volumePath: {
45
+ type: String,
46
+ required: true,
47
+ default: "/data"
48
+ },
40
49
  },
41
50
  { timestamps: true },
42
51
  );
package/dist/db-image.js CHANGED
@@ -36,5 +36,14 @@ const dbImageSchema = new mongoose_1.Schema({
36
36
  type: Boolean,
37
37
  default: true,
38
38
  },
39
+ port: {
40
+ type: Number,
41
+ required: true
42
+ },
43
+ volumePath: {
44
+ type: String,
45
+ required: true,
46
+ default: "/data"
47
+ },
39
48
  }, { timestamps: true });
40
49
  exports.default = (0, mongoose_1.model)("DbImage", dbImageSchema);
package/dist/region.js CHANGED
@@ -7,5 +7,6 @@ const regionSchema = new mongoose_1.Schema({
7
7
  country: { type: String, required: true },
8
8
  continent: { type: String, enum: Object.values(enum_1.REGION_CONTINENT) },
9
9
  enabled: { type: Boolean, default: false, select: true },
10
+ dbVolumePath: { type: String, required: true }
10
11
  });
11
12
  exports.default = (0, mongoose_1.model)("Region", regionSchema, "regions");
@@ -9,4 +9,6 @@ export interface IDbImage extends Document {
9
9
  is_default: boolean;
10
10
  image: string;
11
11
  has_port: boolean;
12
+ port: number;
13
+ volumePath: string;
12
14
  }
@@ -4,4 +4,5 @@ export interface IRegion extends Document {
4
4
  country: string;
5
5
  continent?: REGION_CONTINENT;
6
6
  enabled?: boolean;
7
+ dbVolumePath: string;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.6.6",
3
+ "version": "2.6.8",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/region.ts CHANGED
@@ -7,6 +7,7 @@ const regionSchema = new Schema({
7
7
  country: { type: String, required: true },
8
8
  continent: { type: String, enum: Object.values(REGION_CONTINENT) },
9
9
  enabled: { type: Boolean, default: false, select: true },
10
+ dbVolumePath: {type: String, required: true}
10
11
  });
11
12
 
12
13
  export default model<IRegion>("Region", regionSchema, "regions");
package/types/db-image.ts CHANGED
@@ -10,4 +10,6 @@ export interface IDbImage extends Document {
10
10
  is_default: boolean;
11
11
  image: string;
12
12
  has_port: boolean;
13
+ port: number;
14
+ volumePath: string;
13
15
  }
package/types/region.ts CHANGED
@@ -5,4 +5,5 @@ export interface IRegion extends Document {
5
5
  country: string;
6
6
  continent?: REGION_CONTINENT;
7
7
  enabled?: boolean;
8
+ dbVolumePath: string;
8
9
  }