import flask_sqlalchemy db = flask_sqlalchemy.SQLAlchemy(session_options=dict(autoflush=False)) class Quote(db.Model): __tablename__ = 'quotes' id = db.Column(db.Integer, primary_key=True) date = db.Column(db.Date) game = db.Column(db.String) text = db.Column(db.String) created_at = db.Column(db.DateTime) updated_at = db.Column(db.DateTime)