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>
22 lines
845 B
Python
22 lines
845 B
Python
import uuid
|
|
|
|
from sqlalchemy import JSON, String
|
|
from sqlalchemy.orm import Mapped, mapped_column, relationship
|
|
|
|
from app.models.base import Base, TimestampMixin, generate_uuid
|
|
|
|
|
|
class Client(Base, TimestampMixin):
|
|
__tablename__ = "clients"
|
|
|
|
id: Mapped[uuid.UUID] = mapped_column(
|
|
primary_key=True, default=generate_uuid
|
|
)
|
|
name: Mapped[str] = mapped_column(String(255), nullable=False)
|
|
settings: Mapped[dict | None] = mapped_column(JSON, nullable=True)
|
|
|
|
# Relationships
|
|
user_clients = relationship("UserClient", back_populates="client", lazy="selectin")
|
|
jobs = relationship("Job", back_populates="client", lazy="selectin")
|
|
tm_files = relationship("TMFileRegistry", back_populates="client", lazy="selectin")
|
|
reference_files = relationship("ReferenceFile", back_populates="client", lazy="selectin")
|