????

Your IP : 216.73.216.64


Current Path : C:/inetpub/vhost/qnquyhoach.nextform.vn/api/dist/apps/log-cay-xanhs/entities/
Upload File :
Current File : C:/inetpub/vhost/qnquyhoach.nextform.vn/api/dist/apps/log-cay-xanhs/entities/log-cay-xanh.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);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogCayXanh = exports.Status = void 0;
const ht_cay_xanh_entity_1 = require("../../ht-cay-xanhs/entities/ht-cay-xanh.entity");
const base_entity_model_1 = __importDefault(require("../../models/base-entity.model"));
const user_entity_1 = require("../../users/entities/user.entity");
const swagger_1 = require("@nestjs/swagger");
const typeorm_1 = require("typeorm");
var Status;
(function (Status) {
    Status["PENDING"] = "pending";
    Status["REJECTED"] = "rejected";
    Status["APPROVED"] = "approved";
    Status["MODIFIED"] = "modified";
    Status["INITIATED"] = "initiated";
})(Status || (exports.Status = Status = {}));
let LogCayXanh = class LogCayXanh extends base_entity_model_1.default {
};
exports.LogCayXanh = LogCayXanh;
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: true, type: 'int4' }),
    __metadata("design:type", Number)
], LogCayXanh.prototype, "gidCayXanh", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: true, type: 'varchar' }),
    __metadata("design:type", String)
], LogCayXanh.prototype, "SoThuTu", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: true, type: 'float4' }),
    __metadata("design:type", Number)
], LogCayXanh.prototype, "DoCao", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: true, type: 'float4' }),
    __metadata("design:type", Number)
], LogCayXanh.prototype, "DuongKinhGoc", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: true, type: 'int4' }),
    __metadata("design:type", Number)
], LogCayXanh.prototype, "TinhTrang", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: true, type: 'varchar', length: 100 }),
    __metadata("design:type", String)
], LogCayXanh.prototype, "TenLoaiCay", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: true, type: 'varchar', length: 6 }),
    __metadata("design:type", String)
], LogCayXanh.prototype, "MaDuong", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: true, type: 'varchar', length: 6 }),
    __metadata("design:type", String)
], LogCayXanh.prototype, "NamCapNhat", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: true, type: 'varchar' }),
    __metadata("design:type", String)
], LogCayXanh.prototype, "GhiChu", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: false, type: 'varchar', length: 6 }),
    __metadata("design:type", String)
], LogCayXanh.prototype, "action", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: false, type: 'varchar', length: 12, default: 'pending', enum: Status }),
    __metadata("design:type", String)
], LogCayXanh.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: false, type: 'int4' }),
    __metadata("design:type", Number)
], LogCayXanh.prototype, "createdBy", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    (0, typeorm_1.Column)({ nullable: true, type: 'int4' }),
    __metadata("design:type", Number)
], LogCayXanh.prototype, "updatedBy", void 0);
__decorate([
    (0, typeorm_1.ManyToOne)(() => ht_cay_xanh_entity_1.HTCayXanh, (htCayXanh) => htCayXanh.logCayXanhs),
    (0, typeorm_1.JoinColumn)({ name: 'gidCayXanh' }),
    __metadata("design:type", ht_cay_xanh_entity_1.HTCayXanh)
], LogCayXanh.prototype, "htCayXanh", void 0);
__decorate([
    (0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user),
    (0, typeorm_1.JoinColumn)({ name: 'createdBy' }),
    __metadata("design:type", user_entity_1.User)
], LogCayXanh.prototype, "createdByUser", void 0);
__decorate([
    (0, typeorm_1.ManyToOne)(() => ht_cay_xanh_entity_1.HTCayXanh, (user) => user),
    (0, typeorm_1.JoinColumn)({ name: 'updatedBy' }),
    __metadata("design:type", user_entity_1.User)
], LogCayXanh.prototype, "updatedByUser", void 0);
exports.LogCayXanh = LogCayXanh = __decorate([
    (0, typeorm_1.Entity)({ synchronize: false })
], LogCayXanh);
//# sourceMappingURL=log-cay-xanh.entity.js.map