- Frontend: Next.js 14 with TypeScript - Backend: FastAPI with SQLAlchemy - Agent: Carmodoo sync agent - Deployment: Docker Compose based staging/production setup - Scripts: Automated deployment with rollback support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
933 B
Python
29 lines
933 B
Python
from sqlalchemy import Column, Integer, String, DateTime, Index
|
|
from sqlalchemy.sql import func
|
|
from ..database import Base
|
|
|
|
|
|
class Translation(Base):
|
|
"""Translation dictionary for car-related terms"""
|
|
__tablename__ = "translations"
|
|
|
|
id = Column(Integer, primary_key=True, index=True)
|
|
|
|
# Source text (Korean)
|
|
source_text = Column(String(500), nullable=False, index=True)
|
|
|
|
# Category: maker, model, fuel, transmission, color, car_name, etc.
|
|
category = Column(String(50), nullable=False, index=True)
|
|
|
|
# Translations
|
|
text_en = Column(String(500)) # English
|
|
text_mn = Column(String(500)) # Mongolian
|
|
text_ru = Column(String(500)) # Russian
|
|
|
|
created_at = Column(DateTime, default=func.now())
|
|
updated_at = Column(DateTime, default=func.now(), onupdate=func.now())
|
|
|
|
__table_args__ = (
|
|
Index('ix_translations_source_category', 'source_text', 'category', unique=True),
|
|
)
|