from sqlalchemy import Column, String, Text, DateTime, func
from app.core.database import Base

class Config(Base):
    __tablename__ = "config"

    key = Column(String(64), primary_key=True, index=True)
    value = Column(Text, nullable=False, default="")

    created_at = Column(DateTime(timezone=True), server_default=func.now(), nullable=False)
    updated_at = Column(DateTime(timezone=True), server_default=func.now(), onupdate=func.now(), nullable=False)
