amazon-transcreation/backend/app/schemas/user.py
DJP 98fa16bfc3 feat: complete Phase 1-2 scaffold — backend, frontend, pipeline skeleton
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>
2026-04-10 12:31:43 -04:00

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}