15 lines
349 B
Python
15 lines
349 B
Python
|
|
from sqlalchemy import String
|
||
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
||
|
|
|
||
|
|
from app.models.base import Base
|
||
|
|
|
||
|
|
|
||
|
|
class AppSetting(Base):
|
||
|
|
__tablename__ = "app_settings"
|
||
|
|
|
||
|
|
key: Mapped[str] = mapped_column(String(100), primary_key=True)
|
||
|
|
value: Mapped[str] = mapped_column(String(500))
|
||
|
|
|
||
|
|
|
||
|
|
NOTIFICATIONS_ENABLED_KEY = "notifications_enabled"
|