@brimble/models 2.2.0 → 2.2.1

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/liscense.js CHANGED
@@ -13,6 +13,11 @@ const licenseSchema = new mongoose_1.Schema({
13
13
  ref: 'User',
14
14
  required: true
15
15
  },
16
+ teamId: {
17
+ type: mongoose_1.Schema.Types.ObjectId,
18
+ ref: 'Team',
19
+ required: false
20
+ },
16
21
  subscriptionId: {
17
22
  type: mongoose_1.Schema.Types.ObjectId,
18
23
  ref: 'Subscription',
@@ -3,6 +3,7 @@ import { LicenseStatus } from "../enum";
3
3
  export interface ILicense extends Document {
4
4
  licenseKey: string;
5
5
  userId: mongoose.Types.ObjectId;
6
+ teamId: mongoose.Types.ObjectId;
6
7
  status: LicenseStatus;
7
8
  subscriptionId: mongoose.Types.ObjectId;
8
9
  }
package/liscense.ts CHANGED
@@ -13,6 +13,11 @@ const licenseSchema: Schema = new Schema({
13
13
  ref: 'User',
14
14
  required: true
15
15
  },
16
+ teamId: {
17
+ type: Schema.Types.ObjectId,
18
+ ref: 'Team',
19
+ required: false
20
+ },
16
21
  subscriptionId: {
17
22
  type: Schema.Types.ObjectId,
18
23
  ref: 'Subscription',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types/liscense.ts CHANGED
@@ -4,6 +4,7 @@ import { LicenseStatus } from "../enum";
4
4
  export interface ILicense extends Document {
5
5
  licenseKey: string;
6
6
  userId: mongoose.Types.ObjectId;
7
+ teamId: mongoose.Types.ObjectId;
7
8
  status: LicenseStatus;
8
9
  subscriptionId: mongoose.Types.ObjectId;
9
10
  }