- Create organizations table with Alembic migration (3-phase: create table, migrate data, drop old column) - Add org_id FK on championships linking to organizations - Refactor all schemas into one-class-per-file packages (auth, championship, organization, participant, registration, user) - Update CRUD layer with selectinload for organization relationships - Update frontend types and components to use nested organization object - Remove phantom Championship fields (subtitle, venue, accent_color) from frontend Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
398 B
Python
20 lines
398 B
Python
import uuid
|
|
from datetime import datetime
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class RegistrationOut(BaseModel):
|
|
model_config = {"from_attributes": True}
|
|
|
|
id: uuid.UUID
|
|
championship_id: uuid.UUID
|
|
user_id: uuid.UUID
|
|
category: str | None
|
|
level: str | None
|
|
notes: str | None
|
|
status: str
|
|
video_url: str | None
|
|
submitted_at: datetime
|
|
decided_at: datetime | None
|