Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/model/
Upload File :
Current File : /home/infinitibizsol/.trash/model/textMessage.js

import mongoose from "mongoose";

const TextMessage = new mongoose.Schema({
  contact: { type: String },
  phone_no: { type: String },
  attached: { type: Array },
  value: { type: String },
  sender: {
    type: mongoose.Schema.ObjectId,
    ref: "User",
  },
  receiver: {
    type: mongoose.Schema.ObjectId,
    ref: "Contact",
  },
  deleted: {
    type: Boolean,
    default: false,
  },
  createdOn: { type: Date, default: Date.now },
  modifiedOn: { type: Date, default: Date.now },
});

export default mongoose.model("TextMessage", TextMessage);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists