3053058cdf
Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
437 B
Python
16 lines
437 B
Python
from sqlalchemy import Boolean
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.database import Base
|
|
|
|
UI_SETTINGS_ROW_ID = 1
|
|
|
|
|
|
class UiSettings(Base):
|
|
"""Singleton: глобальные настройки интерфейса SAC."""
|
|
|
|
__tablename__ = "ui_settings"
|
|
|
|
id: Mapped[int] = mapped_column(primary_key=True)
|
|
show_sidebar_system_stats: Mapped[bool] = mapped_column(Boolean, default=True, nullable=False)
|