Full-stack Amazon AI Transcreation Platform with: - FastAPI backend (async, PostgreSQL, Redis, Celery) with 11 DB tables - JWT auth (SSO-ready abstract provider pattern) - 6-agent pipeline orchestrator with deterministic modules - Next.js 14 frontend with Amazon branding (Ember fonts, orange/dark theme) - Job wizard, monitoring HUD, output review, admin screens - 154 TM/reference files imported, 12 locales configured - Docker Compose for all services Agents 2-5 (TM retrieval, ranker, transcreator, compliance) are stubs pending Phase 3 LLM integration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
38 lines
798 B
Python
38 lines
798 B
Python
from datetime import datetime
|
|
from uuid import UUID
|
|
|
|
from pydantic import BaseModel, EmailStr
|
|
|
|
from app.models.user import UserRole, UserStatus
|
|
|
|
|
|
class UserCreate(BaseModel):
|
|
email: EmailStr
|
|
name: str
|
|
password: str
|
|
role: UserRole = UserRole.reviewer
|
|
client_ids: list[UUID] = []
|
|
|
|
model_config = {"from_attributes": True}
|
|
|
|
|
|
class UserUpdate(BaseModel):
|
|
email: EmailStr | None = None
|
|
name: str | None = None
|
|
password: str | None = None
|
|
role: UserRole | None = None
|
|
status: UserStatus | None = None
|
|
|
|
model_config = {"from_attributes": True}
|
|
|
|
|
|
class UserResponse(BaseModel):
|
|
id: UUID
|
|
email: str
|
|
name: str
|
|
role: UserRole
|
|
status: UserStatus
|
|
created_at: datetime
|
|
updated_at: datetime
|
|
|
|
model_config = {"from_attributes": True}
|