feat: add OAuth DB schema — oauth_accounts table, nullable password_hash, avatar_url on User

Step 1 of Google login integration: Alembic migration for oauth_accounts +
avatar_url on users, OAuthAccount model with User relationship, UserProfile
schema extended with avatar_url, get_current_user updated to include avatar_url.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Roberto Musso
2026-04-10 09:20:52 +02:00
parent 3cf067faea
commit ce139bbac3
8 changed files with 454 additions and 5 deletions

View File

@@ -30,6 +30,7 @@ class UserProfile(BaseModel):
name: str | None = None
surname: str | None = None
tier: BillingTier
avatar_url: str | None = None
# ── Chat ─────────────────────────────────────────────────────────────