Brotherton-Aspire-App/models/contact.js

29 lines
534 B
JavaScript
Raw Normal View History

2024-02-03 00:44:34 +00:00
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);