| Current Path : /proc/thread-self/root/home/deltalab/PMS/partner-manager-backend/models/mongoose/ |
| Current File : //proc/thread-self/root/home/deltalab/PMS/partner-manager-backend/models/mongoose/address.js |
const mongoose = require('mongoose');
const AddressSchema = mongoose.Schema(
{
name : String,
latitude : Number,
longitude : Number,
company : String,
street1 : String,
street2 : String,
city : String,
province : String,
state : String,
zip : String,
country : String,
phone : String,
email : String,
},
{
_id: false
}
);
// MODELS ============================================
const addressModel = mongoose.model('Address', AddressSchema);
module.exports = {
AddressSchema,
addressModel
}