Brotherton-Aspire-App/models/contact.js
2024-02-02 16:44:34 -08:00

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);