Sindbad~EG File Manager

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

import mongoose from "mongoose";

const PersonalInformation = new mongoose.Schema(
  {
    salutation: { type: String, default: "" },
    first_name: { type: String, default: "" },
    middle_name: { type: String, default: "" },
    last_name: { type: String, default: "" },
    nickname: { type: String, default: "" },
    date_of_birth: { type: String, default: "" },
    marital_status: { type: String, default: "" },
    gender: { type: String, default: "" },
    social_security: { type: String, default: "" },
    preferred_language: { type: String, default: "" },
    residency_type: { type: String, default: "" },
    business_owner: { type: Boolean, default: false },
    industry: { type: String, default: "" },
    occupation: { type: String, default: "" },
    driver_license_number: { type: String, default: "" },
    driver_license_state: { type: String, default: "" },
    contact_id: {
      type: mongoose.Schema.ObjectId,
      ref: "Contact",
    },
    createdOn: { type: Date, default: Date.now },
    modifiedOn: { type: Date, default: Date.now },
  },
  {
    toJSON: { virtuals: true },
    toObject: { virtuals: true },
  }
);

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

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