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,
|
|
|
|
},
|
2024-10-22 06:43:35 +00:00
|
|
|
status: { type: Boolean, default: false },
|
2024-10-21 14:21:48 +00:00
|
|
|
}, { timestamps: true });
|
|
|
|
|
|
|
|
const FundDetailsModal = mongoose.model("FundDetails", fundDetailsSchema);
|
|
|
|
export default FundDetailsModal;
|
|
|
|
|