30 lines
533 B
JavaScript
30 lines
533 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,
|
|
},
|
|
}, { timestamps: true });
|
|
|
|
const FundDetailsModal = mongoose.model("FundDetails", fundDetailsSchema);
|
|
export default FundDetailsModal;
|
|
|