Files
SerpentRace/SerpentRace_Backend/dist/Domain/User/UserAggregate.js
T

92 lines
4.0 KiB
JavaScript

"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.UserAggregate = exports.UserState = void 0;
const typeorm_1 = require("typeorm");
var UserState;
(function (UserState) {
UserState[UserState["REGISTERED_NOT_VERIFIED"] = 0] = "REGISTERED_NOT_VERIFIED";
UserState[UserState["VERIFIED_REGULAR"] = 1] = "VERIFIED_REGULAR";
UserState[UserState["VERIFIED_PREMIUM"] = 2] = "VERIFIED_PREMIUM";
UserState[UserState["SOFT_DELETE"] = 3] = "SOFT_DELETE";
UserState[UserState["DEACTIVATED"] = 4] = "DEACTIVATED";
UserState[UserState["ADMIN"] = 5] = "ADMIN";
})(UserState || (exports.UserState = UserState = {}));
let UserAggregate = class UserAggregate {
};
exports.UserAggregate = UserAggregate;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], UserAggregate.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
__metadata("design:type", Object)
], UserAggregate.prototype, "orgid", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true }),
__metadata("design:type", String)
], UserAggregate.prototype, "username", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
__metadata("design:type", String)
], UserAggregate.prototype, "password", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255, unique: true }),
__metadata("design:type", String)
], UserAggregate.prototype, "email", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
__metadata("design:type", String)
], UserAggregate.prototype, "fname", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
__metadata("design:type", String)
], UserAggregate.prototype, "lname", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
__metadata("design:type", Object)
], UserAggregate.prototype, "token", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
__metadata("design:type", Object)
], UserAggregate.prototype, "TokenExpires", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 50 }),
__metadata("design:type", String)
], UserAggregate.prototype, "type", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
__metadata("design:type", Object)
], UserAggregate.prototype, "phone", void 0);
__decorate([
(0, typeorm_1.Column)({
type: 'int',
default: UserState.REGISTERED_NOT_VERIFIED
}),
__metadata("design:type", Number)
], UserAggregate.prototype, "state", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)(),
__metadata("design:type", Date)
], UserAggregate.prototype, "regdate", void 0);
__decorate([
(0, typeorm_1.UpdateDateColumn)(),
__metadata("design:type", Date)
], UserAggregate.prototype, "updatedate", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
__metadata("design:type", Object)
], UserAggregate.prototype, "Orglogindate", void 0);
exports.UserAggregate = UserAggregate = __decorate([
(0, typeorm_1.Entity)('Users')
], UserAggregate);
//# sourceMappingURL=UserAggregate.js.map