FastAPI + Celery + Next.js + Postgres/Redis app with company monitoring, source collection, LLM-based change analysis, enrichment, and account security (Turnstile, escalating lockout, email verification).
21 lines
343 B
Python
21 lines
343 B
Python
from __future__ import annotations
|
|
|
|
import uuid
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class UserResponse(BaseModel):
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
id: uuid.UUID
|
|
email: str
|
|
display_name: str
|
|
timezone: str
|
|
is_active: bool
|
|
is_admin: bool
|
|
|
|
|
|
class MeResponse(UserResponse):
|
|
auth_mode: str
|