from app import app from app import db class Account(db.Model): id = db.Column(db.Integer, primary_key = True) name = db.Column(db.String(200), nullable = False) authorized_overdraft = db.Column(db.Integer, nullable = True, default = 0) def __init__(self, name, authorized_overdraft): self.name = name self.authorized_overdraft = authorized_overdraft