vinindkoeb/app/models
carsten d2abe70333 Define core domain models and add first Alembic migration
Nine SQLModel table models covering the Organization/Route hierarchy
(WineCategory, Organization, User, Route, Participant, PurchaseRound,
WineOffering, Order, OrderLine), with explicit tablenames, FK cascade
behavior, and a CHECK constraint preventing a PurchaseRound from
reaching open/closed status without its opens_at/order_deadline_at/
pickup_at dates set. Also fixes the Alembic script template to import
sqlmodel (needed for autogenerate's AutoString column type).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-27 18:51:04 +02:00
..
__init__.py Scaffold FastAPI + SQLModel + Alembic project, Postgres-backed 2026-09-27 15:57:44 +02:00
order.py Define core domain models and add first Alembic migration 2026-09-27 18:51:04 +02:00
order_line.py Define core domain models and add first Alembic migration 2026-09-27 18:51:04 +02:00
organization.py Define core domain models and add first Alembic migration 2026-09-27 18:51:04 +02:00
participant.py Define core domain models and add first Alembic migration 2026-09-27 18:51:04 +02:00
purchase_round.py Define core domain models and add first Alembic migration 2026-09-27 18:51:04 +02:00
route.py Define core domain models and add first Alembic migration 2026-09-27 18:51:04 +02:00
user.py Define core domain models and add first Alembic migration 2026-09-27 18:51:04 +02:00
wine_category.py Define core domain models and add first Alembic migration 2026-09-27 18:51:04 +02:00
wine_offering.py Define core domain models and add first Alembic migration 2026-09-27 18:51:04 +02:00