'use strict';
// var mongoose = require('mongoose');
import { Schema, model, connect } from 'mongoose';

var  notificationSchema = new Schema(
    {
        user_id:{
            type: Schema.Types.ObjectId,
            ref:'User'
        },
        booking_id:{
            type: String
        },
        notify_ar:{
            type: String
        },
        notify_en:{
            type: String
        },
        notify_fr:{
            type: String
        },
        is_active: {
            type: Boolean,
            default: false
        },
        is_read: {
            type: Boolean,
            default: false
        },
        is_clear: {
            type: Boolean,
            default: false
        },
        is_deleted: {
            type: Boolean,
            default: false
        }
     
        
    },
    {
        timestamps: true,
    },
);

let Notification = model('notification', notificationSchema)
//module.exports.User =  mongoose.model('User', userSchema);
module.exports = {Notification, notificationSchema}