Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/model.1/policy/
Upload File :
Current File : /home/infinitibizsol/.trash/model.1/policy/policyAttachments.js

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _mongoose = _interopRequireDefault(require("mongoose"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var PolicyAttachments = new _mongoose["default"].Schema({
  attachment_type: {
    type: String,
    required: false
  },
  attachment_description: {
    type: String,
    required: false
  },
  responsibility: {
    type: String,
    required: false
  },
  additional_description: {
    type: String,
    required: false
  },
  policy_id: {
    type: _mongoose["default"].Schema.ObjectId,
    ref: "Policy"
  },
  createdOn: {
    type: Date,
    "default": Date.now
  },
  modifiedOn: {
    type: Date,
    "default": Date.now
  }
}, {
  toJSON: {
    virtuals: true
  },
  toObject: {
    virtuals: true
  }
});
var _default = exports["default"] = _mongoose["default"].model("PolicyAttachments", PolicyAttachments);

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