Sindbad~EG File Manager

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

import mongoose from "mongoose";

const AdditionalContact = new mongoose.Schema({
  business_owner: { type: Boolean },
  residency_type: { type: String },
  comments: { type: String },
  contact: {
    situation: { type: String },
    nickname: { type: String },
    first_name: { type: String },
    middle_name: { type: String },
    last_name: { type: String },
  },
  relationship: {
    relationship_type: { type: String },
    relationship_to_primary: { type: String },
  },
  contact_address: {
    street: { type: String },
    apt_or_suite: { type: String },
    city: { type: String },
    state_or_province: { type: String },
    country: { type: String },
    zip_code: { type: String },
  },
  contact_details: {
    date_of_birth: { type: String },
    marital_status: { type: String },
    gender: { type: String },
    social_security: { type: String },
    driver_license_number: { type: String },
    contact_web_page: { type: String },
    industry: { type: String },
    occupation: { type: String },
    preferred_language: { type: String },
    add_number: {
      value: { type: String },
      type: { type: String },
    },
    add_email: {
      value: { type: String },
      type: { type: String },
    },
  },
  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 },
});

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

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