34 lines
665 B
JavaScript
34 lines
665 B
JavaScript
const mongoose = require('mongoose');
|
|
const Schema = mongoose.Schema;
|
|
|
|
const PropertyScehma = new Schema({
|
|
PropertyID: {
|
|
type: Number, // Use the Mongoose Schema Type for Number
|
|
},
|
|
|
|
PropertyAddressLine1: {
|
|
type: String,
|
|
},
|
|
PropertyAddressLine2: {
|
|
type: String,
|
|
},
|
|
PropertyAddressCity: {
|
|
type: String,
|
|
},
|
|
PropertyAddressStateProvinceCode: {
|
|
type: String,
|
|
},
|
|
|
|
PropertyAddressZipCode: {
|
|
type: String
|
|
},
|
|
PropertyStatusName: {
|
|
type: String
|
|
},
|
|
|
|
BranchName: {
|
|
type: String
|
|
}
|
|
});
|
|
|
|
module.exports = mongoose.model('Property', PropertyScehma); |