add schema to models

This commit is contained in:
Jakub Miazek 2022-06-03 19:27:44 +02:00
parent b63473f9e6
commit d8ddc0bfc1
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ from the_app.models.base import Base
class Nonsense(Base):
__tablename__ = "nonsense"
__table_args__ = (
{"schema": "the_others"},
{"schema": "happy_hog"},
)
id = Column(UUID(as_uuid=True), unique=True, default=uuid.uuid4, autoincrement=True)
name = Column(String, nullable=False, primary_key=True, unique=True)

View File

@ -11,7 +11,7 @@ from the_app.models.base import Base
class Stuff(Base):
__tablename__ = "stuff"
__table_args__ = (
{"schema": "the_others"},
{"schema": "happy_hog"},
)
id = Column(UUID(as_uuid=True), unique=True, default=uuid.uuid4, autoincrement=True)
name = Column(String, nullable=False, primary_key=True, unique=True)