[update]: schema in models
This commit is contained in:
@@ -2,6 +2,9 @@ from datetime import datetime
|
||||
from app import db
|
||||
|
||||
class Transaction(db.Model):
|
||||
__tablename__ = 'transactions'
|
||||
__table_args__ = {'schema': 'flask_app'}
|
||||
|
||||
id = db.Column(db.String(50), primary_key=True)
|
||||
account_id = db.Column(db.String(50), db.ForeignKey('account.id'), nullable=False)
|
||||
type = db.Column(db.String(50), nullable=False)
|
||||
|
||||
Reference in New Issue
Block a user