????
Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/dist/admin/entity/ |
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/dist/admin/entity/tai-khoan-quyen.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); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TaiKhoanQuyen = void 0; const openapi = require("@nestjs/swagger"); const typeorm_1 = require("typeorm"); const tai_khoan_entity_1 = require("./tai-khoan.entity"); const chuc_nang_entity_1 = require("./chuc-nang.entity"); const swagger_1 = require("@nestjs/swagger"); let TaiKhoanQuyen = class TaiKhoanQuyen { static _OPENAPI_METADATA_FACTORY() { return { taiKhoanId: { required: true, type: () => String }, chucNangId: { required: true, type: () => String }, truyCap: { required: true, type: () => Boolean, nullable: true }, them: { required: true, type: () => Boolean, nullable: true }, xoa: { required: true, type: () => Boolean, nullable: true }, sua: { required: true, type: () => Boolean, nullable: true }, download: { required: true, type: () => Boolean, nullable: true }, upload: { required: true, type: () => Boolean, nullable: true }, duyet: { required: true, type: () => Boolean, nullable: true } }; } }; __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.PrimaryGeneratedColumn)("uuid", { name: "ID" }), __metadata("design:type", String) ], TaiKhoanQuyen.prototype, "id", void 0); __decorate([ (0, typeorm_1.Column)("uniqueidentifier", { name: "TaiKhoan_ID", nullable: false }), __metadata("design:type", String) ], TaiKhoanQuyen.prototype, "taiKhoanId", void 0); __decorate([ (0, typeorm_1.Column)("uniqueidentifier", { name: "ChucNang_ID", nullable: false }), __metadata("design:type", String) ], TaiKhoanQuyen.prototype, "chucNangId", void 0); __decorate([ (0, typeorm_1.Column)("bit", { name: "TruyCap", nullable: true }), __metadata("design:type", Boolean) ], TaiKhoanQuyen.prototype, "truyCap", void 0); __decorate([ (0, typeorm_1.Column)("bit", { name: "Them", nullable: true }), __metadata("design:type", Boolean) ], TaiKhoanQuyen.prototype, "them", void 0); __decorate([ (0, typeorm_1.Column)("bit", { name: "Xoa", nullable: true }), __metadata("design:type", Boolean) ], TaiKhoanQuyen.prototype, "xoa", void 0); __decorate([ (0, typeorm_1.Column)("bit", { name: "Sua", nullable: true }), __metadata("design:type", Boolean) ], TaiKhoanQuyen.prototype, "sua", void 0); __decorate([ (0, typeorm_1.Column)("bit", { name: "Download", nullable: true }), __metadata("design:type", Boolean) ], TaiKhoanQuyen.prototype, "download", void 0); __decorate([ (0, typeorm_1.Column)("bit", { name: "Upload", nullable: true }), __metadata("design:type", Boolean) ], TaiKhoanQuyen.prototype, "upload", void 0); __decorate([ (0, typeorm_1.Column)("bit", { name: "Duyet", nullable: true }), __metadata("design:type", Boolean) ], TaiKhoanQuyen.prototype, "duyet", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.CreateDateColumn)({ name: "NgayTao", nullable: true, type: "datetime2" }), __metadata("design:type", Date) ], TaiKhoanQuyen.prototype, "ngayTao", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.UpdateDateColumn)({ name: "NgaySua", nullable: true, type: "datetime2" }), __metadata("design:type", Date) ], TaiKhoanQuyen.prototype, "ngaySua", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.ManyToOne)(() => tai_khoan_entity_1.TaiKhoan, taiKhoan => taiKhoan === null || taiKhoan === void 0 ? void 0 : taiKhoan.taiKhoanQuyens, { onDelete: "CASCADE" }), (0, typeorm_1.JoinColumn)([{ name: "TaiKhoan_ID", referencedColumnName: "taiKhoanId" }]), __metadata("design:type", tai_khoan_entity_1.TaiKhoan) ], TaiKhoanQuyen.prototype, "taiKhoan", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.ManyToOne)(() => chuc_nang_entity_1.ChucNang, chucNang => chucNang === null || chucNang === void 0 ? void 0 : chucNang.taiKhoanQuyens, { onDelete: "CASCADE" }), (0, typeorm_1.JoinColumn)([{ name: "ChucNang_ID", referencedColumnName: "id" }]), __metadata("design:type", chuc_nang_entity_1.ChucNang) ], TaiKhoanQuyen.prototype, "chucNang", void 0); TaiKhoanQuyen = __decorate([ (0, typeorm_1.Index)("PK_SYS_TaiKhoan_ChucNang", ["id"], { unique: true }), (0, typeorm_1.Entity)("SYS_TaiKhoan_Quyen", { schema: "dbo" }) ], TaiKhoanQuyen); exports.TaiKhoanQuyen = TaiKhoanQuyen;