UNPKG

@sourceloop/ctrl-plane-tenant-management-service

Version:

Tenant Management microservice for SaaS control plane

54 lines 1.89 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TenantMgmtConfig = void 0; const tslib_1 = require("tslib"); const repository_1 = require("@loopback/repository"); const core_1 = require("@sourceloop/core"); const tenant_model_1 = require("./tenant.model"); let TenantMgmtConfig = class TenantMgmtConfig extends core_1.UserModifiableEntity { constructor(data) { super(data); } }; exports.TenantMgmtConfig = TenantMgmtConfig; tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', id: true, generated: true, }), tslib_1.__metadata("design:type", String) ], TenantMgmtConfig.prototype, "id", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true, name: 'config_key', }), tslib_1.__metadata("design:type", String) ], TenantMgmtConfig.prototype, "configKey", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'object', required: true, name: 'config_value', }), tslib_1.__metadata("design:type", Object) ], TenantMgmtConfig.prototype, "configValue", void 0); tslib_1.__decorate([ (0, repository_1.belongsTo)(() => tenant_model_1.Tenant, { keyTo: 'id' }, { type: 'string', name: 'tenant_id', description: 'id of the tenant this invoice is generated for', required: true, }), tslib_1.__metadata("design:type", String) ], TenantMgmtConfig.prototype, "tenantId", void 0); exports.TenantMgmtConfig = TenantMgmtConfig = tslib_1.__decorate([ (0, repository_1.model)({ name: 'tenant_mgmt_configs', description: 'tenant_mgmt_configs to save any tenant specific data related to idP', }), tslib_1.__metadata("design:paramtypes", [Object]) ], TenantMgmtConfig); //# sourceMappingURL=tenant-mgmt-config.model.js.map