Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/model.3/common/
Upload File :
Current File : /home/infinitibizsol/.trash/model.3/common/notes.js

import mongoose from "mongoose";

const Notes = new mongoose.Schema(
  {
    title: { type: String, required: true },
    comments: { type: String, required: true },
    create_task: { type: Boolean, default: true },
    add_to_important_notes: { type: Boolean, default: false },
    contact_id: {
      type: mongoose.Schema.ObjectId,
      ref: "Contact",
    },
    created_by: {
      type: mongoose.Schema.ObjectId,
      ref: "User",
      required: true,
    },
    deleted: {
      type: Boolean,
      default: false,
    },
    createdOn: { type: Date, default: Date.now },
    modifiedOn: { type: Date, default: Date.now },
  },
  {
    toJSON: { virtuals: true },
    toObject: { virtuals: true },
  }
);

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

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