[update] Remove foreign key constraints

This commit is contained in:
VivianDee
2025-03-28 09:56:27 +01:00
parent b4e541ceb9
commit ad39b1c75c
8 changed files with 206 additions and 6 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ class Loan(db.Model):
__table_args__ = {'schema': 'flask_app'}
id = db.Column(db.String(50), primary_key=True)
customer_id = db.Column(db.String(50), db.ForeignKey('customer.id'), nullable=False)
account_id = db.Column(db.String(50), db.ForeignKey('account.id'), nullable=False)
customer_id = db.Column(db.String(50), nullable=False)
account_id = db.Column(db.String(50), nullable=False)
product_id = db.Column(db.String(20), nullable=False)
principal_amount = db.Column(db.Float, nullable=False)
status = db.Column(db.String(20), default='pending')