new init
This commit is contained in:
11
apps/backend/app/models/config.py
Normal file
11
apps/backend/app/models/config.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
Reference in New Issue
Block a user