Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/model.3/contact/
Upload File :
Current File : /home/infinitibizsol/.trash/model.3/contact/employee.js

import mongoose from "mongoose";

const Employee = new mongoose.Schema(
  {
    company: { type: String, required: false },
    title: { type: String, required: false },
    street: { type: String, required: false },
    apt_or_suite: { type: String, required: false },
    city: { type: String, required: false },
    state_or_province: { type: String, required: false },
    country: { type: String, required: false },
    county: { type: String, required: false },
    zip_code: { type: Number, required: false, default: 0 },
    employer_web_page: { type: String, required: false },
    industry: { type: String, required: false },
    occupation: { type: String, required: false },
    employed_from: { type: String, required: false },
    employed_to: { type: String, required: false },
    employee_first_name: { type: String, required: false },
    employee_last_name: { type: String, required: false },
    add_number: [
      {
        value: { type: String },
        type: { type: String },
        ext: { type: String },
      },
    ],
    add_email: [
      {
        value: { type: String },
        type: { type: String },
        ext: { type: String },
      },
    ],
    comments: { type: String, required: false },
    term: { type: Array, required: false }, //conflict
    contact_id: {
      type: mongoose.Schema.ObjectId,
      ref: "Contact",
    },
    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("Employee", Employee);

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