added repayment data

This commit was merged in pull request #23.
This commit is contained in:
Chinenye Nmoh
2025-06-16 19:50:24 +01:00
parent e0ca6f0e1c
commit 87a876252d
7 changed files with 54 additions and 9 deletions
+2
View File
@@ -14,6 +14,7 @@ class Transaction(db.Model):
customer_id = db.Column(db.String(50), nullable=True)
type = db.Column(db.String(50), nullable=False)
channel = db.Column(db.String(50), nullable=False)
phone_number = db.Column(db.String(50), nullable=True)
created_at = db.Column(db.DateTime, default=datetime.now(timezone.utc))
updated_at = db.Column(db.DateTime, default=datetime.now(timezone.utc), onupdate=datetime.now(timezone.utc))
@@ -29,6 +30,7 @@ class Transaction(db.Model):
'transaction_id': self.transaction_id,
'account_id': self.account_id,
'customer_id': self.customer_id,
'phone_number':self.phone_number,
'type': self.type,
'channel': self.channel,
}