@asumano/worklip-typeorm-db 1.1.67 → 1.1.68

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,4 @@
1
+ import { Company } from "./Company";
1
2
  import { CompanySubscription } from "./CompanySubscription";
2
3
  export declare class SubscriptionPlan {
3
4
  id: number;
@@ -12,6 +13,7 @@ export declare class SubscriptionPlan {
12
13
  max_users: number;
13
14
  retention_days: number | null;
14
15
  is_custom: number;
16
+ company: Company | null;
15
17
  status: number;
16
18
  created: Date;
17
19
  updated: Date | null;
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SubscriptionPlan = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
+ const Company_1 = require("./Company");
14
15
  const CompanySubscription_1 = require("./CompanySubscription");
15
16
  let SubscriptionPlan = class SubscriptionPlan {
16
17
  };
@@ -110,6 +111,11 @@ __decorate([
110
111
  }),
111
112
  __metadata("design:type", Number)
112
113
  ], SubscriptionPlan.prototype, "is_custom", void 0);
114
+ __decorate([
115
+ (0, typeorm_1.ManyToOne)(() => Company_1.Company, { onDelete: "SET NULL", onUpdate: "NO ACTION" }),
116
+ (0, typeorm_1.JoinColumn)({ name: "company" }),
117
+ __metadata("design:type", Object)
118
+ ], SubscriptionPlan.prototype, "company", void 0);
113
119
  __decorate([
114
120
  (0, typeorm_1.Column)({
115
121
  default: 1,
@@ -11,6 +11,8 @@ export declare class SubscriptionPlans {
11
11
  max_users: number;
12
12
  retention_days: number | null;
13
13
  is_custom: number;
14
+ company: number | null;
15
+ company_name: string | null;
14
16
  status: number;
15
17
  created: Date;
16
18
  updated: Date | null;
@@ -62,6 +62,14 @@ __decorate([
62
62
  (0, typeorm_1.ViewColumn)(),
63
63
  __metadata("design:type", Number)
64
64
  ], SubscriptionPlans.prototype, "is_custom", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.ViewColumn)(),
67
+ __metadata("design:type", Object)
68
+ ], SubscriptionPlans.prototype, "company", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.ViewColumn)(),
71
+ __metadata("design:type", Object)
72
+ ], SubscriptionPlans.prototype, "company_name", void 0);
65
73
  __decorate([
66
74
  (0, typeorm_1.ViewColumn)(),
67
75
  __metadata("design:type", Number)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asumano/worklip-typeorm-db",
3
- "version": "1.1.67",
3
+ "version": "1.1.68",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },