""" System settings model. """ from datetime import datetime from sqlalchemy import JSON, String from sqlalchemy.orm import Mapped, mapped_column from app.core.database import Base class Settings(Base): """System settings key-value store.""" __tablename__ = "settings" id: Mapped[int] = mapped_column(primary_key=True) key: Mapped[str] = mapped_column(String(255), unique=True, nullable=False) value: Mapped[dict] = mapped_column(JSON, nullable=False) updated_at: Mapped[datetime] = mapped_column( default=datetime.utcnow, onupdate=datetime.utcnow )