"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const mongoose = require("mongoose");
const mongoose_1 = require("mongoose");
const aggregatePaginate = require("mongoose-aggregate-paginate-v2");
const Schema = mongoose.Schema;
const CarMake = new Schema({
    name: {
        type: String,
        default: null,
    },
    added_by: {
        type: String,
        default: null,
    },
    image: {
        type: String,
        default: null,
    },
    is_active: {
        type: Boolean,
        default: true,
    },
    type: { type: Schema.Types.ObjectId, ref: 'CarType' },
}, {
    timestamps: {
        createdAt: "created_at",
        updatedAt: "updated_at",
    },
});
mongoose.plugin(aggregatePaginate);
exports.default = (0, mongoose_1.model)("CarMake", CarMake);
