21 lines
427 B
JavaScript
21 lines
427 B
JavaScript
|
const mongoose = require('mongoose');
|
||
|
const Schema = mongoose.Schema;
|
||
|
|
||
|
const PropertyContactScehma = new Schema({
|
||
|
PropertyID: {
|
||
|
type: Number, // Use the Mongoose Schema Type for Number
|
||
|
},
|
||
|
|
||
|
ContactName: {
|
||
|
type: String,
|
||
|
},
|
||
|
ContactID: {
|
||
|
type: Number
|
||
|
},
|
||
|
CompanyName: {
|
||
|
type: String
|
||
|
},
|
||
|
|
||
|
});
|
||
|
|
||
|
module.exports = mongoose.model('PropertyContact', PropertyContactScehma);
|