const mongoose = require('mongoose');

const Schema = mongoose.Schema;

const websiteSchema = new Schema(
    {
        nameWebsite: { type: String, required: true, default: '' },
        domain: { type: String, default: '' },       // Tên miền production, dùng cho SePay redirect
        logo: { type: String, required: true, default: '' },
        favicon: { type: String, required: true, default: '' },
        description: { type: String, required: true, default: '' },
        keywords: { type: String, required: true, default: '' },
        author: { type: String, required: true, default: '' },
        contact: { type: String, required: true, default: '' },
        social: { type: String, required: true, default: '' },
        status: { type: String, required: true, default: '' },
        banner: { type: Array, required: true, default: [] },
    },
    {
        timestamps: true,
    },
);

module.exports = mongoose.model('website', websiteSchema);
