[update]: schema in models
This commit is contained in:
@@ -3,6 +3,9 @@ from app import db
|
||||
|
||||
|
||||
class Loan(db.Model):
|
||||
__tablename__ = 'loans'
|
||||
__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)
|
||||
|
||||
Reference in New Issue
Block a user