31 lines
578 B
JavaScript
31 lines
578 B
JavaScript
|
|
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,
|
|
},
|
|
status: { type: Boolean, default: false },
|
|
}, { timestamps: true });
|
|
|
|
const FundDetailsModal = mongoose.model("FundDetails", fundDetailsSchema);
|
|
export default FundDetailsModal;
|
|
|