/
home
/
infinitibizsol
/
.trash
/
model.3
/
contact
/
File Upload :
llllll
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);
Copyright ©2k19 -
Hexid
|
Tex7ure