payservedb 4.4.3 → 4.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -54,6 +54,7 @@ const leaseAgreementSchema = new mongoose.Schema({
|
|
|
54
54
|
isPrimary: { type: Boolean, default: false }
|
|
55
55
|
}],
|
|
56
56
|
securityDeposit: { type: Number, required: true },
|
|
57
|
+
depositMonths: { type: Number, required: true }, // New field to specify deposit months
|
|
57
58
|
balanceBroughtForward: { type: Number, required: true, default: 0 },
|
|
58
59
|
penaltyId: {
|
|
59
60
|
type: mongoose.Schema.Types.ObjectId,
|
|
@@ -111,6 +112,16 @@ const leaseAgreementSchema = new mongoose.Schema({
|
|
|
111
112
|
enum: ['Active', 'Pending', 'Expired', 'Terminated'],
|
|
112
113
|
default: 'Active'
|
|
113
114
|
},
|
|
115
|
+
// New field for landlord approval
|
|
116
|
+
requireLandlordApproval: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: false
|
|
119
|
+
},
|
|
120
|
+
landlordApprovalStatus: {
|
|
121
|
+
type: String,
|
|
122
|
+
enum: ['Pending', 'Approved', 'Rejected'],
|
|
123
|
+
default: 'Pending'
|
|
124
|
+
},
|
|
114
125
|
payments: [
|
|
115
126
|
{
|
|
116
127
|
invoiceId: {
|