from sqlmodel import SQLModel, create_engine

from aot_quotes.common.db.quotes import Quotes

engine = create_engine("sqlite:///database.db", echo=True)


def migrate():
    SQLModel.metadata.create_all(engine)


if __name__ == "__main__":
    migrate()

__all__ = ["Quotes"]

sqlmodel.SQLModel.metadata.create_all sqlmodel.create_engine
[((103, 152), 'sqlmodel.create_engine', 'create_engine', (['"""sqlite:///database.db"""'], {'echo': '(True)'}), "('sqlite:///database.db', echo=True)\n", (116, 152), False, 'from sqlmodel import SQLModel, create_engine\n'), ((174, 210), 'sqlmodel.SQLModel.metadata.create_all', 'SQLModel.metadata.create_all', (['engine'], {}), '(engine)\n', (202, 210), False, 'from sqlmodel import SQLModel, create_engine\n')]