https://project.mdnd-it.cc/work_packages/94
This commit is contained in:
2025-08-23 04:25:28 +02:00
parent 725516ad6c
commit 19cfa031d0
25823 changed files with 1095587 additions and 2801760 deletions
@@ -0,0 +1,78 @@
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrganizationAggregate = exports.OrganizationState = void 0;
const typeorm_1 = require("typeorm");
const UserAggregate_1 = require("../User/UserAggregate");
exports.OrganizationState = {
REGISTERED: 0,
ACTIVE: 1,
SOFT_DELETE: 2
};
let OrganizationAggregate = class OrganizationAggregate {
};
exports.OrganizationAggregate = OrganizationAggregate;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "name", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "contactfname", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "contactlname", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "contactphone", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "contactemail", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: exports.OrganizationState.REGISTERED }),
__metadata("design:type", Number)
], OrganizationAggregate.prototype, "state", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)(),
__metadata("design:type", Date)
], OrganizationAggregate.prototype, "regdate", void 0);
__decorate([
(0, typeorm_1.UpdateDateColumn)(),
__metadata("design:type", Date)
], OrganizationAggregate.prototype, "updatedate", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
__metadata("design:type", Object)
], OrganizationAggregate.prototype, "url", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
__metadata("design:type", Number)
], OrganizationAggregate.prototype, "userinorg", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
__metadata("design:type", Object)
], OrganizationAggregate.prototype, "maxOrganizationalDecks", void 0);
__decorate([
(0, typeorm_1.OneToMany)(() => UserAggregate_1.UserAggregate, user => user.orgid),
__metadata("design:type", Array)
], OrganizationAggregate.prototype, "users", void 0);
exports.OrganizationAggregate = OrganizationAggregate = __decorate([
(0, typeorm_1.Entity)('Organizations')
], OrganizationAggregate);
//# sourceMappingURL=OrganizationAggregate.js.map