init: 初始化项目
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from sqlalchemy import String, Text
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
from app.core.database import Base
|
||||
|
||||
|
||||
class SystemConfig(Base):
|
||||
__tablename__ = "system_config"
|
||||
|
||||
key: Mapped[str] = mapped_column(String(50), primary_key=True)
|
||||
value: Mapped[str] = mapped_column(Text, nullable=True)
|
||||
description: Mapped[str | None] = mapped_column(String(200), nullable=True)
|
||||
Reference in New Issue
Block a user