15 lines
508 B
Python
Executable File
15 lines
508 B
Python
Executable File
from sqlalchemy import Column, String, JSON
|
|
from app.db.base import Base
|
|
|
|
class SystemSetting(Base):
|
|
"""
|
|
Globális rendszerbeállítások tárolása.
|
|
Kulcs-Érték párok (JSON támogatással a komplex szabályokhoz).
|
|
Példa: key='FREE_VEHICLE_LIMIT', value='2'
|
|
"""
|
|
__tablename__ = "system_settings"
|
|
__table_args__ = {"schema": "data"}
|
|
|
|
key = Column(String, primary_key=True, index=True)
|
|
value = Column(JSON, nullable=False)
|
|
description = Column(String, nullable=True) |