"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.NumberPlateListing = void 0;
const typeorm_1 = require("typeorm");
const marketplace_listing_status_enum_1 = require("../marketplace/marketplace-listing-status.enum");
let NumberPlateListing = class NumberPlateListing {
};
exports.NumberPlateListing = NumberPlateListing;
__decorate([
    (0, typeorm_1.PrimaryGeneratedColumn)(),
    __metadata("design:type", Number)
], NumberPlateListing.prototype, "id", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", Number)
], NumberPlateListing.prototype, "parentListingId", void 0);
__decorate([
    (0, typeorm_1.Column)(),
    __metadata("design:type", Number)
], NumberPlateListing.prototype, "sellerUserId", void 0);
__decorate([
    (0, typeorm_1.Column)({ charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "emirate", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "emirateLabel", void 0);
__decorate([
    (0, typeorm_1.Column)({ default: "normal", charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "design", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "designLabel", void 0);
__decorate([
    (0, typeorm_1.Column)({ charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "code", void 0);
__decorate([
    (0, typeorm_1.Column)({ charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "number", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", Number)
], NumberPlateListing.prototype, "digitCount", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "plateType", void 0);
__decorate([
    (0, typeorm_1.Column)({ default: "car", nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "vehicleType", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "flag1", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "flag2", void 0);
__decorate([
    (0, typeorm_1.Column)("decimal", { precision: 12, scale: 2 }),
    __metadata("design:type", Number)
], NumberPlateListing.prototype, "price", void 0);
__decorate([
    (0, typeorm_1.Column)({ default: false }),
    __metadata("design:type", Boolean)
], NumberPlateListing.prototype, "isNegotiable", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "currency", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "description", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "sellerName", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "sellerMobile", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "sellerEmail", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "plateImageUrl", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "uploadedPlateImageUrl", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "frontPreviewUrl", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "backPreviewUrl", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "datetime", nullable: true }),
    __metadata("design:type", Date)
], NumberPlateListing.prototype, "expiresAt", void 0);
__decorate([
    (0, typeorm_1.Column)({ default: true }),
    __metadata("design:type", Boolean)
], NumberPlateListing.prototype, "isVisible", void 0);
__decorate([
    (0, typeorm_1.Column)({ default: 30 }),
    __metadata("design:type", Number)
], NumberPlateListing.prototype, "validityDays", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "datetime", nullable: true }),
    __metadata("design:type", Date)
], NumberPlateListing.prototype, "approvedAt", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", Number)
], NumberPlateListing.prototype, "approvedByUserId", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "datetime", nullable: true }),
    __metadata("design:type", Date)
], NumberPlateListing.prototype, "publishedAt", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "rejectionReason", void 0);
__decorate([
    (0, typeorm_1.Column)({
        type: "enum",
        enum: marketplace_listing_status_enum_1.MarketplaceListingStatus,
        default: marketplace_listing_status_enum_1.MarketplaceListingStatus.PENDING_APPROVAL,
    }),
    __metadata("design:type", String)
], NumberPlateListing.prototype, "status", void 0);
__decorate([
    (0, typeorm_1.CreateDateColumn)(),
    __metadata("design:type", Date)
], NumberPlateListing.prototype, "createdAt", void 0);
__decorate([
    (0, typeorm_1.UpdateDateColumn)(),
    __metadata("design:type", Date)
], NumberPlateListing.prototype, "updatedAt", void 0);
exports.NumberPlateListing = NumberPlateListing = __decorate([
    (0, typeorm_1.Entity)("number_plate_listings")
], NumberPlateListing);
//# sourceMappingURL=numberplate-listing.entity.js.map