mitlist/be/app
google-labs-jules[bot] a7fbc454a9 Refactor: Reset Alembic migrations and consolidate models.
This commit addresses issues with backend models, schemas, and migrations.

Key changes:
- Consolidated all SQLAlchemy model definitions into `be/app/models.py`.
- Emptied `be/app/models/expense.py` as its contents were duplicates.
- Verified and standardized Base class usage and SQLAlchemy imports in models.
- Confirmed the correctness of self-referential relationships in the `Expense` model.
- Added a clarifying comment to `SplitTypeEnum` regarding future extensibility.
- Corrected a typo in `Settlement.created_by_user_id`.

Migration Cleanup:
- Deleted all existing Alembic migration files from `be/alembic/versions/`.
- Created a new, single initial migration script (`0001_initial_schema.py`) that defines the entire database schema based on the current state of the SQLAlchemy models. This provides a clean slate for future migrations.

This reset was performed because the previous migration history was complex and contained a revision that was incompatible with the current model definitions. Starting fresh ensures consistency between the models and the database schema from the initial point.
2025-06-01 14:26:37 +02:00
..
api feat: Implement refresh token functionality in authentication flow 2025-05-25 12:51:02 +02:00
core Refactor: Polish backend based on review 2025-06-01 14:26:36 +02:00
crud feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
db feat: Add Recurrence Pattern and Update Expense Schema 2025-05-23 21:01:49 +02:00
jobs feat: Add Recurrence Pattern and Update Expense Schema 2025-05-23 21:01:49 +02:00
models Refactor: Reset Alembic migrations and consolidate models. 2025-06-01 14:26:37 +02:00
schemas feat: Add Recurrence Pattern and Update Expense Schema 2025-05-23 21:01:49 +02:00
__init__.py weeee💃 2025-03-30 16:02:49 +02:00
auth.py feat: Implement refresh token functionality in authentication flow 2025-05-25 12:51:02 +02:00
config.py feat: Add production deployment configuration and environment setup 2025-05-28 08:23:22 +02:00
database.py feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
main.py feat: Add production deployment configuration and environment setup 2025-05-28 08:23:22 +02:00
models.py Refactor: Reset Alembic migrations and consolidate models. 2025-06-01 14:26:37 +02:00