Sindbad~EG File Manager

Current Path : /home/infinitibizsol/insurcrm.infinitibizsol.com/model/contact/
Upload File :
Current File : /home/infinitibizsol/insurcrm.infinitibizsol.com/model/contact/expireDates.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 ExpireDates = new _mongoose["default"].Schema({
  x_date: {
    type: String,
    required: false
  },
  line_of_business: {
    type: String,
    required: false
  },
  expiration_premium: {
    type: String,
    required: false
  },
  term: {
    type: String,
    required: false
  },
  related_policy: {
    type: _mongoose["default"].Schema.ObjectId,
    ref: "Policy"
  },
  //REF POLICY
  x_date_description: {
    type: String,
    required: false
  },
  contact_id: {
    type: _mongoose["default"].Schema.ObjectId,
    ref: "Contact"
  },
  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("ExpireDates", ExpireDates);

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