rez_core 6.5.0 → 6.5.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.
@@ -1,5 +1,7 @@
1
+ import { OrganizationData } from './organization.entity';
2
+ import { AppMaster } from '../../meta/entity/app-master.entity';
1
3
  export declare class OrganizationAppMapping {
2
4
  id: number;
3
- organization_id: string;
4
- appcode: string;
5
+ organization: OrganizationData;
6
+ app: AppMaster;
5
7
  }
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.OrganizationAppMapping = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
+ const organization_entity_1 = require("./organization.entity");
15
+ const app_master_entity_1 = require("../../meta/entity/app-master.entity");
14
16
  let OrganizationAppMapping = class OrganizationAppMapping {
15
17
  };
16
18
  exports.OrganizationAppMapping = OrganizationAppMapping;
@@ -19,14 +21,17 @@ __decorate([
19
21
  __metadata("design:type", Number)
20
22
  ], OrganizationAppMapping.prototype, "id", void 0);
21
23
  __decorate([
22
- (0, typeorm_1.Column)({ name: 'organization_id', nullable: true }),
23
- __metadata("design:type", String)
24
- ], OrganizationAppMapping.prototype, "organization_id", void 0);
24
+ (0, typeorm_1.ManyToOne)(() => organization_entity_1.OrganizationData, { nullable: true, onDelete: 'SET NULL' }),
25
+ (0, typeorm_1.JoinColumn)({ name: 'organization_id', referencedColumnName: 'id' }),
26
+ __metadata("design:type", organization_entity_1.OrganizationData)
27
+ ], OrganizationAppMapping.prototype, "organization", void 0);
25
28
  __decorate([
26
- (0, typeorm_1.Column)({ name: 'appcode', nullable: true }),
27
- __metadata("design:type", String)
28
- ], OrganizationAppMapping.prototype, "appcode", void 0);
29
+ (0, typeorm_1.ManyToOne)(() => app_master_entity_1.AppMaster, { nullable: true, onDelete: 'SET NULL' }),
30
+ (0, typeorm_1.JoinColumn)({ name: 'app_id', referencedColumnName: 'id' }),
31
+ __metadata("design:type", app_master_entity_1.AppMaster)
32
+ ], OrganizationAppMapping.prototype, "app", void 0);
29
33
  exports.OrganizationAppMapping = OrganizationAppMapping = __decorate([
30
- (0, typeorm_1.Entity)({ name: 'sso_organization_app_mapping' })
34
+ (0, typeorm_1.Entity)({ name: 'sso_organization_app_mapping' }),
35
+ (0, typeorm_1.Unique)(['organization', 'app'])
31
36
  ], OrganizationAppMapping);
32
37
  //# sourceMappingURL=organization-app-mapping.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization-app-mapping.entity.js","sourceRoot":"","sources":["../../../../src/module/enterprise/entity/organization-app-mapping.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiE;AAG1D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CASlC,CAAA;AATY,wDAAsB;AAEjC;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;kDACzC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DAC5B;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC5B;iCARL,sBAAsB;IADlC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC;GACpC,sBAAsB,CASlC"}
1
+ {"version":3,"file":"organization-app-mapping.entity.js","sourceRoot":"","sources":["../../../../src/module/enterprise/entity/organization-app-mapping.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,+DAAyD;AACzD,2EAAgE;AAIzD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAWlC,CAAA;AAXY,wDAAsB;AAEjC;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;kDACzC;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sCAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IAC3E,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,sCAAgB;4DAAC;AAI/B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IACpE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,6BAAS;mDAAC;iCAVJ,sBAAsB;IAFlC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC;IAChD,IAAA,gBAAM,EAAC,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;GACnB,sBAAsB,CAWlC"}