Brotherton-Aspire-App/models/property.js

34 lines
665 B
JavaScript
Raw Normal View History

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