add new models to declarative base

This commit is contained in:
Jakub Miazek 2022-04-23 21:04:56 +02:00
parent 3439a0345f
commit bdfd97fc12
2 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,3 @@
from the_app.models.nonsense import Nonsense # noqa
from the_app.models.stuff import Stuff # noqa
from the_app.models.shakespeare import Character # noqa

View File

@ -1,9 +1,9 @@
from sqlalchemy import (Column, ForeignKeyConstraint, Integer,
PrimaryKeyConstraint, String, Table, Text,
UniqueConstraint)
from sqlalchemy.orm import declarative_base, relationship
UniqueConstraint, ForeignKey)
from sqlalchemy.orm import relationship
Base = declarative_base()
from the_app.models.base import Base
metadata = Base.metadata