????
Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/dist/xtdt/entity/ |
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/dist/xtdt/entity/diem-dau-tu.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.DiemDauTu = void 0; const openapi = require("@nestjs/swagger"); const typeorm_1 = require("typeorm"); const swagger_1 = require("@nestjs/swagger"); const quy_hoach_sdd_entity_1 = require("./quy-hoach-sdd.entity"); const entity_1 = require("../../category/entity"); let DiemDauTu = class DiemDauTu { static _OPENAPI_METADATA_FACTORY() { return { tenDiem: { required: true, type: () => String, nullable: true }, viTri: { required: true, type: () => String, nullable: true }, tinhTrang: { required: true, type: () => String }, moTa: { required: true, type: () => String, nullable: true }, mucTieuDuAn: { required: true, type: () => String, nullable: true }, tongMucDauTuDuKien: { required: true, type: () => Number }, quyHoachSdd: { required: true, type: () => String, nullable: true }, chinhSachUuDai: { required: true, type: () => String, nullable: true }, hieuQuaDauTu: { required: true, type: () => String, nullable: true }, lienHe: { required: true, type: () => String, nullable: true }, ghiChu: { required: true, type: () => String, nullable: true }, quyMoDuAn: { required: true, type: () => String, nullable: true }, dienTich: { required: true, type: () => Number }, maDonViTinh: { required: true, type: () => String }, nguonThongTin: { required: true, type: () => String, nullable: true }, maLinhVuc: { required: true, type: () => Number, nullable: true }, maPhuongXa: { required: true, type: () => String, nullable: true }, maQuanHuyen: { required: true, type: () => String, nullable: true }, loaiHinhDauTu: { required: true, type: () => String, nullable: true }, shape: { required: true, type: () => String, nullable: true } }; } }; __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.PrimaryGeneratedColumn)('rowid', { name: 'OBJECTID', comment: 'Mã định danh của điểm đầu tư' }), __metadata("design:type", Number) ], DiemDauTu.prototype, "objectId", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.Generated)('uuid'), (0, typeorm_1.Column)('uniqueidentifier', { name: 'DiemDauTuID', comment: 'ID điểm đầu tư' }), __metadata("design:type", String) ], DiemDauTu.prototype, "diemDauTuId", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "TenDiem", nullable: true, length: 255, comment: 'Tên điểm đầu tư' }), __metadata("design:type", String) ], DiemDauTu.prototype, "tenDiem", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "ViTri", nullable: true, length: 500, comment: 'Vị trí' }), __metadata("design:type", String) ], DiemDauTu.prototype, "viTri", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "TinhTrang", length: 50, comment: 'Tình trạng đầu tư' }), __metadata("design:type", String) ], DiemDauTu.prototype, "tinhTrang", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "MoTa", nullable: true, length: 1020, comment: 'Mô tả' }), __metadata("design:type", String) ], DiemDauTu.prototype, "moTa", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "MucTieuDuAn", nullable: true, length: 1020, comment: 'Mục tiêu dự án' }), __metadata("design:type", String) ], DiemDauTu.prototype, "mucTieuDuAn", void 0); __decorate([ (0, typeorm_1.Column)("numeric", { name: "TongMucDauTuDuKien", precision: 38, scale: 8, comment: 'Tổng mức đầu tư dự kiến' }), __metadata("design:type", Number) ], DiemDauTu.prototype, "tongMucDauTuDuKien", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "QuyHoachSDD", nullable: true, length: 255, comment: 'Quy hoạch sử dụng đất' }), __metadata("design:type", String) ], DiemDauTu.prototype, "quyHoachSdd", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "ChinhSachUuDai", nullable: true, length: 1020, comment: 'Chính sách ưu đãi' }), __metadata("design:type", String) ], DiemDauTu.prototype, "chinhSachUuDai", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "HieuQuaDauTu", nullable: true, length: 1020, comment: 'Hiệu quả đầu tư' }), __metadata("design:type", String) ], DiemDauTu.prototype, "hieuQuaDauTu", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "LienHe", nullable: true, length: 1020, comment: 'Thông tin liên hệ' }), __metadata("design:type", String) ], DiemDauTu.prototype, "lienHe", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "GhiChu", nullable: true, length: 2040, comment: 'Ghi chú' }), __metadata("design:type", String) ], DiemDauTu.prototype, "ghiChu", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "QuyMoDuAn", nullable: true, length: 1020, comment: 'Quy mô dự án' }), __metadata("design:type", String) ], DiemDauTu.prototype, "quyMoDuAn", void 0); __decorate([ (0, typeorm_1.Column)("numeric", { name: "DienTich", precision: 38, scale: 8, comment: 'Diện tích' }), __metadata("design:type", Number) ], DiemDauTu.prototype, "dienTich", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "DonViTinh", length: 25, default: 'VNĐ', nullable: false, comment: 'Đơn vị tính' }), __metadata("design:type", String) ], DiemDauTu.prototype, "maDonViTinh", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "NguonThongTin", nullable: true, length: 100, comment: 'Nguồn thông tin' }), __metadata("design:type", String) ], DiemDauTu.prototype, "nguonThongTin", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "LinhVucDauTu", length: 50, nullable: true, comment: 'Lĩnh vực đầu tư' }), __metadata("design:type", Number) ], DiemDauTu.prototype, "maLinhVuc", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "MaPhuongXa", nullable: true, length: 50, comment: 'Phường xã' }), __metadata("design:type", String) ], DiemDauTu.prototype, "maPhuongXa", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "MaQuanHuyen", nullable: true, length: 50, comment: 'Quận huyện' }), __metadata("design:type", String) ], DiemDauTu.prototype, "maQuanHuyen", void 0); __decorate([ (0, typeorm_1.Column)("nvarchar", { name: "LoaiHinhDauTu", nullable: true, length: 50, comment: 'Loại hình đầu tư' }), __metadata("design:type", String) ], DiemDauTu.prototype, "loaiHinhDauTu", void 0); __decorate([ (0, typeorm_1.Column)("geometry", { name: "SHAPE", nullable: true, comment: 'Thông tin địa lý' }), __metadata("design:type", String) ], DiemDauTu.prototype, "shape", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.OneToMany)(() => quy_hoach_sdd_entity_1.QuyHoachSDD, quyHoach => quyHoach.diemDauTu), __metadata("design:type", Array) ], DiemDauTu.prototype, "quyHoachSDD", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.ManyToOne)(() => entity_1.LinhVucDauTu, linhVuc => linhVuc), (0, typeorm_1.JoinColumn)({ name: 'LinhVucDauTu', referencedColumnName: 'code' }), __metadata("design:type", entity_1.LinhVucDauTu) ], DiemDauTu.prototype, "linhVucDauTu", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.ManyToOne)(() => entity_1.DonViTinh, donViTinh => donViTinh.diemDauTus), (0, typeorm_1.JoinColumn)({ name: 'DonViTinh', referencedColumnName: 'code' }), __metadata("design:type", entity_1.DonViTinh) ], DiemDauTu.prototype, "donViTinh", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.ManyToOne)(() => entity_1.QuanHuyen, quanHuyen => quanHuyen.diemDauTus), (0, typeorm_1.JoinColumn)({ name: 'MaQuanHuyen', referencedColumnName: 'maQuanHuyen' }), __metadata("design:type", entity_1.QuanHuyen) ], DiemDauTu.prototype, "quanHuyen", void 0); DiemDauTu = __decorate([ (0, typeorm_1.Entity)("DIEMDAUTU", { schema: "dbo" }) ], DiemDauTu); exports.DiemDauTu = DiemDauTu;