text: const mongoose = require("mongoose");
  
  const Movie = mongoose.model(
    "Movie",
    mongoose.Schema(
      {
        title: { type: String, required: true, unique: true },
        desc: { type: String },
        img: { type: String },
        imgTitle: { type: String },
        imgSm: { type: String },
        trailer: { type: String },
        video: { type: String },
        year: { type: String },
        limit: { type: Number } /* age limit */,
        genre: { type: String },
        isSeries: { type: Boolean, default: false },
      },
      { timestamps: true }
    )
  );
  
  module.exports = Movie;
  