const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const featureSchema = new Schema({
    adminId:{
        type: Schema.Types.ObjectId,
        ref: "Admin",
        required: true
    },
    shopId: {
        type: Schema.Types.ObjectId,
        ref: "Shop",
    },
    productId: {
        type: Schema.Types.ObjectId,
        ref: "Product"
    },
    bannerImage: {
        type: String,
        requried: true
    },
    description: {
        type: String,
        required: true
    },
    isActive: {
        type: Boolean,
        default: true
    }
});

const featureModel = mongoose.model("Feature", featureSchema);
module.exports = featureModel;