@brimble/models 2.6.4 → 2.6.6

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/dist/env.js CHANGED
@@ -25,5 +25,10 @@ const envSchema = new mongoose_1.Schema({
25
25
  default: enum_1.ENVIRONMENT.PRODUCTION,
26
26
  required: true,
27
27
  },
28
+ is_system: {
29
+ type: Boolean,
30
+ default: false,
31
+ required: false
32
+ },
28
33
  }, { timestamps: true });
29
34
  exports.default = (0, mongoose_1.model)("Env", envSchema);
@@ -7,4 +7,5 @@ export interface IEnv extends Document {
7
7
  project: IProject;
8
8
  user: IUser;
9
9
  environment: ENVIRONMENT | string;
10
+ is_system?: boolean;
10
11
  }
@@ -32,4 +32,6 @@ export interface IUser extends Document {
32
32
  email: boolean;
33
33
  mute: boolean;
34
34
  };
35
+ created_at: Date;
36
+ updated_at: Date;
35
37
  }
package/env.ts CHANGED
@@ -26,6 +26,11 @@ const envSchema = new Schema(
26
26
  default: ENVIRONMENT.PRODUCTION,
27
27
  required: true,
28
28
  },
29
+ is_system: {
30
+ type: Boolean,
31
+ default: false,
32
+ required: false
33
+ },
29
34
  },
30
35
  { timestamps: true },
31
36
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.6.4",
3
+ "version": "2.6.6",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types/env.ts CHANGED
@@ -8,4 +8,5 @@ export interface IEnv extends Document {
8
8
  project: IProject;
9
9
  user: IUser;
10
10
  environment: ENVIRONMENT | string;
11
+ is_system?: boolean;
11
12
  }
package/types/user.ts CHANGED
@@ -33,4 +33,6 @@ export interface IUser extends Document {
33
33
  email: boolean;
34
34
  mute: boolean;
35
35
  };
36
+ created_at: Date;
37
+ updated_at: Date;
36
38
  }