Automated Action 874ce9b220 Fix Base import in app/db/base.py for Alembic migrations
The error was occurring because migrations/env.py was trying to import Base from app.db.base, but it wasn't being exported there. This change adds the proper import and re-export of Base in app.db.base.py, fixing the database migration error.
2025-05-26 18:26:16 +00:00

5 lines
208 B
Python

from app.db.base_class import Base
from app.models.user import User
from app.models.client import Client
from app.models.invoice import Invoice, InvoiceItem
# Import all models here for Alembic to detect them