@brimble/models 2.1.1 → 2.1.3

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
@@ -33,6 +33,10 @@ const dbImageSchema = new Schema(
33
33
  type: Boolean,
34
34
  default: false,
35
35
  },
36
+ has_port: {
37
+ type: Boolean,
38
+ default: true,
39
+ },
36
40
  },
37
41
  { timestamps: true },
38
42
  );
package/dist/db-image.js CHANGED
@@ -32,5 +32,9 @@ const dbImageSchema = new mongoose_1.Schema({
32
32
  type: Boolean,
33
33
  default: false,
34
34
  },
35
+ has_port: {
36
+ type: Boolean,
37
+ default: true,
38
+ },
35
39
  }, { timestamps: true });
36
40
  exports.default = (0, mongoose_1.model)("DbImage", dbImageSchema);
@@ -110,6 +110,11 @@ const projectSchema = new mongoose_1.Schema({
110
110
  specs: Object,
111
111
  last_requested: mongoose_1.Schema.Types.Date,
112
112
  isPaused: Boolean,
113
+ dbImage: {
114
+ ref: "DbImage",
115
+ type: mongoose_1.Schema.Types.ObjectId,
116
+ required: false,
117
+ },
113
118
  serviceType: {
114
119
  type: String,
115
120
  enum: Object.values(enum_1.ServiceType),
@@ -8,4 +8,5 @@ export interface IDbImage extends Document {
8
8
  is_available: boolean;
9
9
  is_default: boolean;
10
10
  image: string;
11
+ has_port: boolean;
11
12
  }
@@ -7,6 +7,7 @@ import { ITeam } from "../team";
7
7
  import { IUser } from "../user";
8
8
  import { IServer } from "../server";
9
9
  import { IPreview } from "./preview";
10
+ import { IDbImage } from "../db-image";
10
11
  export interface IProject extends Document {
11
12
  name: string;
12
13
  domains: Array<IDomain>;
@@ -16,6 +17,7 @@ export interface IProject extends Document {
16
17
  port: number;
17
18
  ip: string;
18
19
  dir: string;
20
+ dbImage: IDbImage;
19
21
  installCommand: string;
20
22
  buildCommand: string;
21
23
  startCommand: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -111,6 +111,11 @@ const projectSchema = new Schema(
111
111
  specs: Object,
112
112
  last_requested: Schema.Types.Date,
113
113
  isPaused: Boolean,
114
+ dbImage: {
115
+ ref: "DbImage",
116
+ type: Schema.Types.ObjectId,
117
+ required: false,
118
+ },
114
119
  serviceType: {
115
120
  type: String,
116
121
  enum: Object.values(ServiceType),
package/types/db-image.ts CHANGED
@@ -9,4 +9,5 @@ export interface IDbImage extends Document {
9
9
  is_available: boolean;
10
10
  is_default: boolean;
11
11
  image: string;
12
+ has_port: boolean;
12
13
  }
@@ -7,6 +7,7 @@ import { ITeam } from "../team";
7
7
  import { IUser } from "../user";
8
8
  import { IServer } from "../server";
9
9
  import { IPreview } from "./preview";
10
+ import { IDbImage } from "../db-image";
10
11
 
11
12
  export interface IProject extends Document {
12
13
  name: string;
@@ -17,6 +18,7 @@ export interface IProject extends Document {
17
18
  port: number;
18
19
  ip: string;
19
20
  dir: string;
21
+ dbImage: IDbImage;
20
22
  installCommand: string;
21
23
  buildCommand: string;
22
24
  startCommand: string;