????

Your IP : 3.15.201.103


Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/dist/xtdt/entity/
Upload File :
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/dist/xtdt/entity/dn-thue-dat.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.DNThueDat = void 0;
const openapi = require("@nestjs/swagger");
const typeorm_1 = require("typeorm");
const quy_hoach_sdd_entity_1 = require("./quy-hoach-sdd.entity");
const swagger_1 = require("@nestjs/swagger");
const dn_thong_tin_thue_entity_1 = require("./dn-thong-tin-thue.entity");
const entity_1 = require("../../category/entity");
let DNThueDat = class DNThueDat {
    static _OPENAPI_METADATA_FACTORY() {
        return { objectId: { required: true, type: () => Number }, quyHoachId: { required: true, type: () => String }, thongTinThueId: { required: true, type: () => Number }, thoiGianThue: { required: true, type: () => Date, nullable: true }, giaThue: { required: true, type: () => Number, nullable: true }, maDonViTinh: { required: true, type: () => String, nullable: true }, ghiChu: { required: true, type: () => String, nullable: true } };
    }
};
__decorate([
    (0, typeorm_1.PrimaryGeneratedColumn)('increment', { name: "ObjectID" }),
    __metadata("design:type", Number)
], DNThueDat.prototype, "objectId", void 0);
__decorate([
    (0, typeorm_1.Column)('uniqueidentifier', { name: 'QuyHoachID' }),
    __metadata("design:type", String)
], DNThueDat.prototype, "quyHoachId", void 0);
__decorate([
    (0, typeorm_1.Column)('int', { name: 'ThongTinThueID' }),
    __metadata("design:type", Number)
], DNThueDat.prototype, "thongTinThueId", void 0);
__decorate([
    (0, typeorm_1.Column)("datetime2", { name: "ThoiGianThue", nullable: true }),
    __metadata("design:type", Date)
], DNThueDat.prototype, "thoiGianThue", void 0);
__decorate([
    (0, typeorm_1.Column)("numeric", {
        name: "GiaThue",
        nullable: true,
        precision: 38,
        scale: 8,
    }),
    __metadata("design:type", Number)
], DNThueDat.prototype, "giaThue", void 0);
__decorate([
    (0, typeorm_1.Column)('nvarchar', { name: "DonViTinh", length: 25, nullable: true }),
    __metadata("design:type", String)
], DNThueDat.prototype, "maDonViTinh", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "GhiChu", nullable: true, length: 2550 }),
    __metadata("design:type", String)
], DNThueDat.prototype, "ghiChu", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.JoinColumn)({ name: 'QuyHoachID', referencedColumnName: 'quyHoachId' }),
    (0, typeorm_1.ManyToOne)(() => quy_hoach_sdd_entity_1.QuyHoachSDD, quyHoach => quyHoach.dnThueDats),
    __metadata("design:type", quy_hoach_sdd_entity_1.QuyHoachSDD)
], DNThueDat.prototype, "quyHoachSDD", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.JoinColumn)({ name: 'ThongTinThueID', referencedColumnName: 'objectId' }),
    (0, typeorm_1.ManyToOne)(() => dn_thong_tin_thue_entity_1.DNThongTinThue, thongTinThue => thongTinThue.dnThueDats, { cascade: true }),
    __metadata("design:type", dn_thong_tin_thue_entity_1.DNThongTinThue)
], DNThueDat.prototype, "dnThongTinThue", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.JoinColumn)({ name: 'DonViTinh', referencedColumnName: 'code' }),
    (0, typeorm_1.ManyToOne)(() => entity_1.DonViTinh, donViTinh => donViTinh.dnThueDats),
    __metadata("design:type", entity_1.DonViTinh)
], DNThueDat.prototype, "donViTinh", void 0);
DNThueDat = __decorate([
    (0, typeorm_1.Entity)('DOANHNGHIEP_THUE_DAT', { schema: 'dbo' })
], DNThueDat);
exports.DNThueDat = DNThueDat;