29 lines
534 B
JavaScript
29 lines
534 B
JavaScript
const mongoose = require('mongoose');
|
|
const Schema = mongoose.Schema;
|
|
|
|
const ContactScehma = new Schema({
|
|
ContactID: {
|
|
type: Number, // Use the Mongoose Schema Type for Number
|
|
},
|
|
|
|
CompanyName: {
|
|
type: String,
|
|
},
|
|
ContactTypeName: {
|
|
type: String
|
|
},
|
|
FirstName: {
|
|
type: String
|
|
},
|
|
LastName: {
|
|
type: String
|
|
},
|
|
Email: {
|
|
type: String
|
|
},
|
|
MobilePhone: {
|
|
type: String
|
|
}
|
|
});
|
|
|
|
module.exports = mongoose.model('Contact', ContactScehma); |