????

Your IP : 3.16.125.156


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-thong-tin-thue.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.DNThongTinThue = void 0;
const openapi = require("@nestjs/swagger");
const typeorm_1 = require("typeorm");
const swagger_1 = require("@nestjs/swagger");
const dn_thue_dat_entity_1 = require("./dn-thue-dat.entity");
const doanh_nghiep_entity_1 = require("./doanh-nghiep.entity");
const ranh_gioi_khu_entity_1 = require("./ranh-gioi-khu.entity");
let DNThongTinThue = class DNThongTinThue {
    static _OPENAPI_METADATA_FACTORY() {
        return { doanhNghiepId: { required: true, type: () => Number }, diemDauTuId: { required: true, type: () => String }, nganhNghe: { required: true, type: () => String, nullable: true }, dienThoai: { required: true, type: () => String, nullable: true }, email: { required: true, type: () => String, nullable: true }, viTriDaThue: { required: true, type: () => String, nullable: true }, quyMoCongSuat: { required: true, type: () => String, nullable: true }, tongVonDauTu: { required: true, type: () => Number, nullable: true }, tongSoLaoDongTrongNuoc: { required: true, type: () => Number, nullable: true }, tongSoLaoDongNuocNgoai: { required: true, type: () => Number, nullable: true }, matDoXayDungToiDa: { required: true, type: () => Number, nullable: true }, fax: { required: true, type: () => String, nullable: true }, dienTichDatDaThue: { required: true, type: () => Number, nullable: true }, ngayDangKy: { required: true, type: () => Date }, ngayHoatDong: { required: true, type: () => Date, nullable: true }, ngayNgungHoatDong: { required: true, type: () => Date, nullable: true }, tinhTrang: { required: true, type: () => String }, ghiChu: { required: true, type: () => String, nullable: true }, maKhu: { required: true, type: () => String, nullable: true }, loaiDoanhNghiep: { required: true, type: () => String, nullable: true } };
    }
};
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.PrimaryGeneratedColumn)('increment', { name: "ObjectID" }),
    __metadata("design:type", Number)
], DNThongTinThue.prototype, "objectId", void 0);
__decorate([
    (0, typeorm_1.Column)("int", { name: "DoanhNghiepID", nullable: false }),
    __metadata("design:type", Number)
], DNThongTinThue.prototype, "doanhNghiepId", void 0);
__decorate([
    (0, typeorm_1.Column)("uniqueidentifier", { name: 'DiemDauTuId', nullable: true }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "diemDauTuId", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "NganhNghe", nullable: true, length: 255, comment: 'Ngành nghề đầu tư' }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "nganhNghe", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "DienThoai", nullable: true, length: 20, comment: 'Số điện thoại' }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "dienThoai", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "Email", nullable: true, length: 255, comment: 'Email' }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "email", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "ViTriDaThue", nullable: true, length: 500, comment: 'Vị trí thuê' }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "viTriDaThue", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "QuyMoCongSuat", nullable: true, length: 1020, comment: 'Quy mô công suất' }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "quyMoCongSuat", void 0);
__decorate([
    (0, typeorm_1.Column)("numeric", {
        name: "TongVonDauTu",
        nullable: true,
        precision: 38,
        scale: 8,
        comment: 'Tổng vốn đầu tư (tỷ đồng)'
    }),
    __metadata("design:type", Number)
], DNThongTinThue.prototype, "tongVonDauTu", void 0);
__decorate([
    (0, typeorm_1.Column)("smallint", { name: "TongSoLaoDongTrongNuoc", nullable: true, comment: 'Tổng lao động trong nước' }),
    __metadata("design:type", Number)
], DNThongTinThue.prototype, "tongSoLaoDongTrongNuoc", void 0);
__decorate([
    (0, typeorm_1.Column)("smallint", { name: "TongSoLaoDongNuocNgoai", nullable: true, comment: 'Tổng lao động nước ngoài' }),
    __metadata("design:type", Number)
], DNThongTinThue.prototype, "tongSoLaoDongNuocNgoai", void 0);
__decorate([
    (0, typeorm_1.Column)("numeric", {
        name: "MatDoXayDungToiDa",
        nullable: true,
        precision: 38,
        scale: 8,
    }),
    __metadata("design:type", Number)
], DNThongTinThue.prototype, "matDoXayDungToiDa", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "Fax", nullable: true, length: 20, comment: 'Fax' }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "fax", void 0);
__decorate([
    (0, typeorm_1.Column)("numeric", {
        name: "DienTichDatDaThue",
        nullable: true,
        precision: 38,
        scale: 8,
        comment: 'Diện tích thuê (m2)'
    }),
    __metadata("design:type", Number)
], DNThongTinThue.prototype, "dienTichDatDaThue", void 0);
__decorate([
    (0, typeorm_1.Column)("datetime2", { name: "NgayDangKy", comment: 'Ngày đăng ký' }),
    __metadata("design:type", Date)
], DNThongTinThue.prototype, "ngayDangKy", void 0);
__decorate([
    (0, typeorm_1.Column)("datetime2", { name: "NgayHoatDong", nullable: true, comment: 'Ngày hoạt động' }),
    __metadata("design:type", Date)
], DNThongTinThue.prototype, "ngayHoatDong", void 0);
__decorate([
    (0, typeorm_1.Column)("datetime2", { name: "NgayNgungHoatDong", nullable: true, comment: 'Ngày ngưng hoạt động' }),
    __metadata("design:type", Date)
], DNThongTinThue.prototype, "ngayNgungHoatDong", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "TinhTrang", length: 5, comment: 'Tình trạng' }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "tinhTrang", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "GhiChu", nullable: true, length: 2040, comment: 'Ghi chú' }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "ghiChu", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "MaKhu", length: 50, nullable: true }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "maKhu", void 0);
__decorate([
    (0, typeorm_1.Column)("nvarchar", { name: "LoaiDoanhNghiep", nullable: true, length: 50 }),
    __metadata("design:type", String)
], DNThongTinThue.prototype, "loaiDoanhNghiep", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.OneToMany)(() => dn_thue_dat_entity_1.DNThueDat, thueDat => thueDat.dnThongTinThue),
    __metadata("design:type", Array)
], DNThongTinThue.prototype, "dnThueDats", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.JoinColumn)({ name: 'DoanhNghiepID', referencedColumnName: 'objectId' }),
    (0, typeorm_1.ManyToOne)(() => doanh_nghiep_entity_1.DoanhNghiep, doanhNghiep => doanhNghiep.dnThongTinThues, { cascade: true }),
    __metadata("design:type", doanh_nghiep_entity_1.DoanhNghiep)
], DNThongTinThue.prototype, "doanhNghiep", void 0);
__decorate([
    (0, swagger_1.ApiHideProperty)(),
    (0, typeorm_1.JoinColumn)({ name: 'MaKhu', referencedColumnName: 'maKhu' }),
    (0, typeorm_1.ManyToOne)(() => ranh_gioi_khu_entity_1.RanhGioiKhu, khu => khu.dnThongTinThues),
    __metadata("design:type", ranh_gioi_khu_entity_1.RanhGioiKhu)
], DNThongTinThue.prototype, "ranhGioiKhu", void 0);
DNThongTinThue = __decorate([
    (0, typeorm_1.Entity)('DOANHNGHIEP_THONGTINTHUE', { schema: 'dbo' })
], DNThongTinThue);
exports.DNThongTinThue = DNThongTinThue;