UNPKG

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

Version:

Tenant Management microservice for SaaS control plane

54 lines 1.83 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TenantConfig = 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 TenantConfig = class TenantConfig extends core_1.UserModifiableEntity { constructor(data) { super(data); } }; exports.TenantConfig = TenantConfig; tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', id: true, generated: true, }), tslib_1.__metadata("design:type", String) ], TenantConfig.prototype, "id", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true, name: 'config_key', }), tslib_1.__metadata("design:type", String) ], TenantConfig.prototype, "configKey", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'object', required: true, name: 'config_value', }), tslib_1.__metadata("design:type", Object) ], TenantConfig.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) ], TenantConfig.prototype, "tenantId", void 0); exports.TenantConfig = TenantConfig = tslib_1.__decorate([ (0, repository_1.model)({ name: 'tenant_configs', description: 'tenant_configs to save any tenant specific data related to idP', }), tslib_1.__metadata("design:paramtypes", [Object]) ], TenantConfig); //# sourceMappingURL=tenant-config.model.js.map