????
Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/dist/xtdt/entity/ |
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/dist/xtdt/entity/doanh-nghiep.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.DoanhNghiepDTO = exports.DNDauTu = exports.DoanhNghiep = void 0; const openapi = require("@nestjs/swagger"); const typeorm_1 = require("typeorm"); const swagger_1 = require("@nestjs/swagger"); const entity_1 = require("../../category/entity"); const dn_thong_tin_thue_entity_1 = require("./dn-thong-tin-thue.entity"); let DoanhNghiep = class DoanhNghiep { static _OPENAPI_METADATA_FACTORY() { return { maDoanhNghiep: { required: true, type: () => String }, tenDoanhNghiep: { required: true, type: () => String }, soDienThoai: { required: true, type: () => String }, email: { required: true, type: () => String }, tenNguoiDaiDien: { required: true, type: () => String }, ghiChu: { required: true, type: () => String, nullable: true }, loaiDoanhNghiep: { required: true, type: () => String, nullable: true }, quocGiaId: { required: true, type: () => Number }, giayCnDangKy: { required: true, type: () => String }, ngayCapLanDau: { required: true, type: () => Date, nullable: true } }; } }; __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.PrimaryGeneratedColumn)('increment', { name: 'ObjectID' }), __metadata("design:type", Number) ], DoanhNghiep.prototype, "objectId", void 0); __decorate([ (0, typeorm_1.Column)('nvarchar', { name: 'MaDoanhNghiep', length: 50, unique: true, nullable: false, comment: 'Số GPĐKKD' }), __metadata("design:type", String) ], DoanhNghiep.prototype, "maDoanhNghiep", void 0); __decorate([ (0, typeorm_1.Column)('nvarchar', { name: 'TenDoanhNghiep', length: 500, nullable: false, comment: 'Doanh nghiệp' }), __metadata("design:type", String) ], DoanhNghiep.prototype, "tenDoanhNghiep", void 0); __decorate([ (0, typeorm_1.Column)('nvarchar', { name: 'SoDienThoai', length: 20, nullable: false, comment: 'Số điện thoại' }), __metadata("design:type", String) ], DoanhNghiep.prototype, "soDienThoai", void 0); __decorate([ (0, typeorm_1.Column)('nvarchar', { name: 'Email', length: 255, nullable: false, comment: 'Email' }), __metadata("design:type", String) ], DoanhNghiep.prototype, "email", void 0); __decorate([ (0, typeorm_1.Column)('nvarchar', { name: 'TenNguoiDaiDien', length: 255, nullable: false, comment: 'Người đại diện' }), __metadata("design:type", String) ], DoanhNghiep.prototype, "tenNguoiDaiDien", void 0); __decorate([ (0, typeorm_1.Column)('nvarchar', { name: 'GhiChu', length: 2040, nullable: true, comment: 'Ghi chú' }), __metadata("design:type", String) ], DoanhNghiep.prototype, "ghiChu", void 0); __decorate([ (0, typeorm_1.Column)('nvarchar', { name: 'LoaiDoanhNghiep', length: 5, nullable: true, comment: 'Loại doanh nghiệp' }), __metadata("design:type", String) ], DoanhNghiep.prototype, "loaiDoanhNghiep", void 0); __decorate([ (0, typeorm_1.Column)('int', { name: 'QuocGiaID', nullable: false, comment: 'Quốc gia' }), __metadata("design:type", Number) ], DoanhNghiep.prototype, "quocGiaId", void 0); __decorate([ (0, typeorm_1.Column)('nvarchar', { name: 'GiayCNDangKy', length: 50, nullable: true, comment: 'Giấy CN đăng ký' }), __metadata("design:type", String) ], DoanhNghiep.prototype, "giayCnDangKy", void 0); __decorate([ (0, typeorm_1.Column)('datetime2', { name: 'NgayCapLanDau', nullable: true, comment: 'Ngày cấp lần đầu' }), __metadata("design:type", Date) ], DoanhNghiep.prototype, "ngayCapLanDau", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.JoinColumn)({ name: 'QuocGiaID', referencedColumnName: 'id' }), (0, typeorm_1.ManyToOne)(() => entity_1.QuocGia, quocGia => quocGia.doanhNghieps), __metadata("design:type", entity_1.QuocGia) ], DoanhNghiep.prototype, "quocGia", void 0); __decorate([ (0, swagger_1.ApiHideProperty)(), (0, typeorm_1.OneToMany)(() => dn_thong_tin_thue_entity_1.DNThongTinThue, thongTinThue => thongTinThue.doanhNghiep), __metadata("design:type", Array) ], DoanhNghiep.prototype, "dnThongTinThues", void 0); DoanhNghiep = __decorate([ (0, typeorm_1.Entity)("DOANHNGHIEP", { schema: "dbo" }) ], DoanhNghiep); exports.DoanhNghiep = DoanhNghiep; class DNDauTu { static _OPENAPI_METADATA_FACTORY() { return { OBJECTID: { required: true, type: () => Number }, Content: { required: true, type: () => String }, KyHieuO: { required: true, type: () => String }, DienTich: { required: true, type: () => Number }, MucDichSDD: { required: true, type: () => String } }; } } __decorate([ (0, swagger_1.ApiProperty)(), __metadata("design:type", Number) ], DNDauTu.prototype, "OBJECTID", void 0); __decorate([ (0, swagger_1.ApiProperty)(), __metadata("design:type", String) ], DNDauTu.prototype, "Content", void 0); __decorate([ (0, swagger_1.ApiProperty)(), __metadata("design:type", String) ], DNDauTu.prototype, "KyHieuO", void 0); __decorate([ (0, swagger_1.ApiProperty)(), __metadata("design:type", Number) ], DNDauTu.prototype, "DienTich", void 0); __decorate([ (0, swagger_1.ApiProperty)(), __metadata("design:type", String) ], DNDauTu.prototype, "MucDichSDD", void 0); exports.DNDauTu = DNDauTu; class DoanhNghiepDTO extends DoanhNghiep { static _OPENAPI_METADATA_FACTORY() { return { dauTu: { required: true, type: () => [require("./doanh-nghiep.entity").DNDauTu] } }; } } __decorate([ (0, swagger_1.ApiProperty)({ type: DNDauTu, isArray: true }), __metadata("design:type", Array) ], DoanhNghiepDTO.prototype, "dauTu", void 0); exports.DoanhNghiepDTO = DoanhNghiepDTO;