"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.CarListing = void 0;
const typeorm_1 = require("typeorm");
const marketplace_listing_status_enum_1 = require("../marketplace/marketplace-listing-status.enum");
let CarListing = class CarListing {
};
exports.CarListing = CarListing;
__decorate([
    (0, typeorm_1.PrimaryGeneratedColumn)(),
    __metadata("design:type", Number)
], CarListing.prototype, "id", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", Number)
], CarListing.prototype, "parentListingId", void 0);
__decorate([
    (0, typeorm_1.Column)(),
    __metadata("design:type", Number)
], CarListing.prototype, "sellerUserId", void 0);
__decorate([
    (0, typeorm_1.Column)({ charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "make", void 0);
__decorate([
    (0, typeorm_1.Column)({ charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "model", void 0);
__decorate([
    (0, typeorm_1.Column)(),
    __metadata("design:type", Number)
], CarListing.prototype, "year", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "trim", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "exteriorColor", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "interiorColor", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "fuelType", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "transmissionType", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", Number)
], CarListing.prototype, "mileage", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "carCondition", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "warrantyStatus", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "origin", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "bodyType", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "regionalSpecs", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "boolean", nullable: true }),
    __metadata("design:type", Boolean)
], CarListing.prototype, "isInsured", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "title", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
    __metadata("design:type", Object)
], CarListing.prototype, "features", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "doors", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "cylinders", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "seating", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "horsepower", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "steeringSide", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "engineCapacity", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
    __metadata("design:type", Array)
], CarListing.prototype, "safetyFeatures", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
    __metadata("design:type", Array)
], CarListing.prototype, "entertainmentFeatures", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
    __metadata("design:type", Array)
], CarListing.prototype, "comfortFeatures", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
    __metadata("design:type", Array)
], CarListing.prototype, "exteriorFeatures", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", Number)
], CarListing.prototype, "previousOwners", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "registrationEmirate", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "locationName", void 0);
__decorate([
    (0, typeorm_1.Column)("decimal", { nullable: true, precision: 10, scale: 7 }),
    __metadata("design:type", Number)
], CarListing.prototype, "latitude", void 0);
__decorate([
    (0, typeorm_1.Column)("decimal", { nullable: true, precision: 10, scale: 7 }),
    __metadata("design:type", Number)
], CarListing.prototype, "longitude", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "chassisNumber", void 0);
__decorate([
    (0, typeorm_1.Column)("decimal", { precision: 12, scale: 2 }),
    __metadata("design:type", Number)
], CarListing.prototype, "price", void 0);
__decorate([
    (0, typeorm_1.Column)({ default: false }),
    __metadata("design:type", Boolean)
], CarListing.prototype, "isNegotiable", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "description", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "accidentHistory", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "repaintingDetails", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "maintenanceDetails", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "modificationDetails", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "additionalNotes", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.prototype, "sellerName", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", String)
], CarListing.prototype, "sellerMobile", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", String)
], CarListing.prototype, "sellerEmail", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
    __metadata("design:type", Array)
], CarListing.prototype, "photoUrls", void 0);
__decorate([
    (0, typeorm_1.Column)({ default: true }),
    __metadata("design:type", Boolean)
], CarListing.prototype, "isVisible", void 0);
__decorate([
    (0, typeorm_1.Column)({ default: 30 }),
    __metadata("design:type", Number)
], CarListing.prototype, "validityDays", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "datetime", nullable: true }),
    __metadata("design:type", Date)
], CarListing.prototype, "approvedAt", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", Number)
], CarListing.prototype, "approvedByUserId", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "datetime", nullable: true }),
    __metadata("design:type", Date)
], CarListing.prototype, "expiresAt", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "datetime", nullable: true }),
    __metadata("design:type", Date)
], CarListing.prototype, "publishedAt", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "text", nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], CarListing.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)
], CarListing.prototype, "status", void 0);
__decorate([
    (0, typeorm_1.CreateDateColumn)(),
    __metadata("design:type", Date)
], CarListing.prototype, "createdAt", void 0);
__decorate([
    (0, typeorm_1.UpdateDateColumn)(),
    __metadata("design:type", Date)
], CarListing.prototype, "updatedAt", void 0);
exports.CarListing = CarListing = __decorate([
    (0, typeorm_1.Entity)("car_listings")
], CarListing);
//# sourceMappingURL=car-listing.entity.js.map