estatesfunding/ef-api/models/fundDetails.js

30 lines
533 B
JavaScript
Raw Normal View History

2024-10-21 14:21:48 +00:00
import mongoose from "mongoose";
const fundDetailsSchema = new mongoose.Schema({
propertyOwnerId: {
type: String,
required: true,
},
investorId: {
type: String,
required: true,
},
investmentAmount: {
type: Number,
required: true,
},
ownershipPercentage: {
type: Number,
required: true,
},
propertyId:{
type: String,
required: true,
},
}, { timestamps: true });
const FundDetailsModal = mongoose.model("FundDetails", fundDetailsSchema);
export default FundDetailsModal;