You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
neeble/models/quotes.py

17 lines
331 B
Python

from settings.config import SQLACHEMY
from sqlalchemy import Table
from sqlalchemy.orm import declarative_base
Base = declarative_base()
class Quotes(Base):
"""
Quotes model class.
"""
__table__ = Table(
"neeble_quotes",
Base.metadata,
autoload=True,
autoload_with=SQLACHEMY
)