Moved models to shared base

This commit is contained in:
2025-09-23 19:27:08 +01:00
parent 7d811fede0
commit 3eaed88074
5 changed files with 26 additions and 16 deletions

View File

@@ -1,10 +1,8 @@
from sqlalchemy import Boolean, String
from sqlalchemy.orm import Mapped, declarative_base, mapped_column
from sqlalchemy.orm import Mapped, mapped_column
# only for Alembic discovery, not used here
from app.db.session import engine # noqa: F401
from app.db.base_class import Base # <-- use the shared Base
Base = declarative_base()
class User(Base):
__tablename__ = "users"