const mongoose = require("mongoose");

const LocationSchema = new mongoose.Schema(
  {
    images: {
      type: Array,
      default: [],
    },
    heading: { type: String, default: "" },
    subHeading: { type: String, default: "" },
    name: { type: String, default: "" },
    keyFacts: {
      type: Array,
      required: [],
    },
    interests: {
      type: Array,
      required: [],
    },
    oppurtunityText: {
      type: String,
      required: "",
    },
  },
  {
    timestamps: true,
  }
);

module.exports =
  mongoose.model("Location", LocationSchema) || mongoose.models.Location;
