@brimble/models 1.4.93 → 1.4.94

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.
@@ -1,3 +1,3 @@
1
1
  yarn run v1.22.19
2
2
  $ tsc -p .
3
- Done in 2.17s.
3
+ Done in 2.80s.
package/dist/tenancy.js CHANGED
@@ -24,7 +24,9 @@ const tenancySchema = new mongoose_1.Schema({
24
24
  type: String,
25
25
  required: true
26
26
  },
27
- storage_size: Number,
28
- memory: Number
27
+ is_activated: {
28
+ type: Boolean,
29
+ default: false
30
+ },
29
31
  }, { timestamps: true });
30
32
  exports.default = (0, mongoose_1.model)("Tenancy", tenancySchema);
@@ -8,7 +8,6 @@ export interface ITenancy extends Document {
8
8
  server: IServer;
9
9
  username: string;
10
10
  password: string;
11
- memory: number;
12
- storage: number;
11
+ is_activated: boolean;
13
12
  directory: string;
14
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.4.93",
3
+ "version": "1.4.94",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,5 +21,5 @@
21
21
  "ts-node": "^8.10.2",
22
22
  "typescript": "^4.9.4"
23
23
  },
24
- "gitHead": "2c97912a3ea65a9ab9f97c71c37c7e287cabde08"
24
+ "gitHead": "98feb972f12ff9b062608702f236cd95c9c1ae6e"
25
25
  }
package/tenancy.ts CHANGED
@@ -25,8 +25,10 @@ const tenancySchema = new Schema(
25
25
  type: String,
26
26
  required: true
27
27
  },
28
- storage_size: Number,
29
- memory: Number
28
+ is_activated: {
29
+ type: Boolean,
30
+ default: false
31
+ },
30
32
  },
31
33
  { timestamps: true },
32
34
  );
package/types/tenancy.ts CHANGED
@@ -14,9 +14,7 @@ export interface ITenancy extends Document {
14
14
 
15
15
  password: string;
16
16
 
17
- memory: number;
18
-
19
- storage: number;
17
+ is_activated: boolean;
20
18
 
21
19
  directory: string;
22
20
  }