diff --git a/loan.model.js b/loan.model.js index 12e2f3d..a7a2020 100644 --- a/loan.model.js +++ b/loan.model.js @@ -9,7 +9,7 @@ const LoanSchema = new Schema({ }, emiDuration: { type: Number, - required: true + required: false }, startDate: { type: Date, @@ -44,4 +44,4 @@ const LoanSchema = new Schema({ const Loan = mongoose.model("Loan", LoanSchema); -module.exports = Loan \ No newline at end of file +module.exports = Loan