[add]: process date and count

This commit was merged in pull request #55.
This commit is contained in:
VivianDee
2025-08-21 14:31:05 +01:00
parent 2ba97cee4a
commit 443c6262b7
2 changed files with 40 additions and 0 deletions
+2
View File
@@ -17,6 +17,8 @@ class LoanRepaymentSchedule(db.Model):
total_repayment_amount = db.Column(db.Float, default=0.0)
paid = db.Column(db.Boolean, default=False)
paid_at = db.Column(db.DateTime, nullable=True)
due_process_date = db.Column(db.DateTime, nullable=True)
due_process_count = db.Column(db.Integer, default=0)
created_at = db.Column(db.DateTime(timezone=True), server_default=func.now())
updated_at = db.Column(db.DateTime(timezone=True), server_default=func.now(), onupdate=func.now())