/
home
/
infinitibizsol
/
.trash
/
model.3
/
user
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/model.3/user/additionalContact.js
import mongoose from "mongoose"; const AdditionalContact = new mongoose.Schema( { salutation: { type: String }, nickname: { type: String }, first_name: { type: String }, middle_name: { type: String }, last_name: { type: String }, relationship_type: { type: String }, relationship_to_primary: { type: String }, street: { type: String }, apt_or_suite: { type: String }, city: { type: String }, state_or_province: { type: String }, county: { type: String }, zip_code: { type: Number, default: 0 }, country: { type: String }, date_of_birth: { type: String }, marital_status: { type: String }, gender: { type: String }, social_security: { type: String }, driver_license_number: { type: String }, driver_license_state: { type: String }, contact_web_page: { type: String }, emergency_contact: { type: Boolean }, industry: { type: String }, occupation: { type: String }, preferred_language: { type: String }, business_owner: { type: Boolean }, residency_type: { type: String }, comments: { type: String }, add_number: [ { value: { type: String }, type: { type: String }, ext: { type: String }, }, ], add_email: [ { value: { type: String }, type: { type: String }, ext: { type: String }, }, ], 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("AdditionalContact", AdditionalContact);
Copyright ©2k19 -
Hexid
|
Tex7ure