????

Your IP : 216.73.216.152


Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/dist/admin/entity/
Upload File :
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/dist/admin/entity/nhom-chuc-nang.entity.js

"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);
};
var NhomChucNang_1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NhomChucNang = void 0;
const openapi = require("@nestjs/swagger");
const typeorm_1 = require("typeorm");
const chuc_nang_entity_1 = require("./chuc-nang.entity");
const swagger_1 = require("@nestjs/swagger");
let NhomChucNang = NhomChucNang_1 = class NhomChucNang {
    static _OPENAPI_METADATA_FACTORY() {
        return { tenNhom: { required: true, type: () => String, nullable: true }, icon: { required: false, type: () => String, nullable: true }, stt: { required: true, type: () => Number, nullable: true }, code: { required: true, type: () => String, nullable: true }, parentId: { required: true, type: () => String, nullable: true } };
    }
};
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.PrimaryGeneratedColumn)("uuid", { name: "ID" }),
    __metadata("design:type", String)
], NhomChucNang.prototype, "id", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.CreateDateColumn)({ name: "NgayTao", nullable: true, type: "datetime2" }),
    __metadata("design:type", Date)
], NhomChucNang.prototype, "ngayTao", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.UpdateDateColumn)({ name: "NgaySua", nullable: true, type: "datetime2" }),
    __metadata("design:type", Date)
], NhomChucNang.prototype, "ngaySua", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "TenNhom", nullable: true, length: 255 }),
    __metadata("design:type", String)
], NhomChucNang.prototype, "tenNhom", void 0);
__decorate([
    (0, typeorm_1.Column)("varchar", { name: "Icon", nullable: true, length: 50 }),
    __metadata("design:type", String)
], NhomChucNang.prototype, "icon", void 0);
__decorate([
    (0, typeorm_1.Column)("int", { name: "STT", nullable: true }),
    __metadata("design:type", Number)
], NhomChucNang.prototype, "stt", void 0);
__decorate([
    (0, typeorm_1.Column)("varchar", { name: "Code", nullable: true, length: 50 }),
    __metadata("design:type", String)
], NhomChucNang.prototype, "code", void 0);
__decorate([
    (0, typeorm_1.Column)("uniqueidentifier", { name: "ParentId", nullable: true }),
    __metadata("design:type", String)
], NhomChucNang.prototype, "parentId", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.OneToMany)(() => chuc_nang_entity_1.ChucNang, chucNang => chucNang === null || chucNang === void 0 ? void 0 : chucNang.nhomChucNang),
    __metadata("design:type", Array)
], NhomChucNang.prototype, "chucNangs", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.ManyToOne)(() => NhomChucNang_1, nhomChucNang => nhomChucNang.children),
    (0, typeorm_1.JoinColumn)([{ name: "ParentId", referencedColumnName: "id" }]),
    __metadata("design:type", NhomChucNang)
], NhomChucNang.prototype, "parent", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.OneToMany)(() => NhomChucNang_1, nhomChucNang => nhomChucNang.parent),
    __metadata("design:type", Array)
], NhomChucNang.prototype, "children", void 0);
NhomChucNang = NhomChucNang_1 = __decorate([
    (0, typeorm_1.Index)("PK_SYS_NhomChucNang", ["id"], { unique: true }),
    (0, typeorm_1.Entity)("SYS_NhomChucNang", { schema: "dbo" })
], NhomChucNang);
exports.NhomChucNang = NhomChucNang;