const mongoose =  require( 'mongoose');

const footerSchema = new mongoose.Schema({
    logo:{
        type:String
    },
    columns:[
        {
            heading:String,
            headingLink:String,
            subMenu:[
                {
                    text:String,
                    link:String
                }
            ]
        }
    ],
    address:String,
    phoneNum:String,
    facebook:String,
    instagram:String,
    twitter:String,
    linkedIn:String,
    isActive:{
        type:Boolean,
        default:false
    }
},{
    timestamps:true
});

const Footer = mongoose.model('Footer',footerSchema);

module.exports = Footer;
