Initial YakPanel commit
This commit is contained in:
12
YakPanel-server/backend/app/models/config.py
Normal file
12
YakPanel-server/backend/app/models/config.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""YakPanel - Config model (panel settings)"""
|
||||
from sqlalchemy import String, Integer, Text
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
from app.core.database import Base
|
||||
|
||||
|
||||
class Config(Base):
|
||||
__tablename__ = "config"
|
||||
|
||||
id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True)
|
||||
key: Mapped[str] = mapped_column(String(64), unique=True, nullable=False, index=True)
|
||||
value: Mapped[str] = mapped_column(Text, nullable=True, default="")
|
||||
Reference in New Issue
Block a user