const mongoose = require('mongoose');

const user_notification_schema = new mongoose.Schema({
    userDB_id: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "user",
        // required: true,
    },
    // toSpecificUser: {
    //     type: Boolean,
    //     default: false,
    // },
    title: {
        type: String,
    },
    msg: {
        type: String,
        required: true,
    },

    insert_date: {
        type: Date,
        default: Date.now,
    },
});

const user_notification_module = mongoose.model('user_notification', user_notification_schema);

module.exports = user_notification_module;