const mongoose = require("mongoose");

const pushNotificationsSchema = new mongoose.Schema({
  date: {
    type: String,
  },
  message: {
    type: String,
  },
  isRead: {
    type: Boolean,
  },
  userId: {
    type: String,
  },
  IsActive: {
    type: Boolean,
  },
  IsDelete: {
    type: Boolean,
  },
  CreatedBy: {
    type: String,
  },
  CreatedOn: {
    type: Date,
  },
  ModifiedBy: {
    type: String,
    default: null,
  },
  ModifiedOn: {
    type: Date,
    default: null,
  },
});

const pushNotifications = mongoose.model(
  "pushNotifications",
  pushNotificationsSchema
);

module.exports = pushNotifications;
