"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const mongoose_1 = __importDefault(require("mongoose"));
const itinerarySchema = new mongoose_1.default.Schema({
    from: { type: String, default: "" },
    to: { type: String, default: "" },
    description: { type: String, default: "" },
    image: { type: String, default: "" },
    rideKm: { type: Number, default: 0 },
    driveKm: { type: Number, default: 0 },
    order: { type: Number, default: 0 },
}, { _id: false });
const packageSchema = new mongoose_1.default.Schema({
    title: { type: String, required: true },
    image: { type: String, required: true },
    route: { type: String, required: true },
    duration: { type: String, required: true },
    itinerary: { type: [itinerarySchema], default: [] },
    order: { type: Number, required: true },
    createdAt: { type: Date, default: Date.now }
});
exports.default = mongoose_1.default.model("Package", packageSchema);
