estatesfunding/ef-api/models/property.js

15 lines
373 B
JavaScript
Raw Normal View History

2024-09-12 08:11:07 +00:00
import mongoose from "mongoose";
const propertySchema = mongoose.Schema({
propertyType: {type: String, required: true },
title: {type: String, required: true },
yearBuild: {type: String, required: true },
totalSqft: {type: String, required: true },
2024-09-15 08:11:03 +00:00
2024-09-12 08:11:07 +00:00
});
const PropertyModal = mongoose.model("property", propertySchema);
export default PropertyModal;