mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-04 17:14:21 +00:00
refactor(代码生成): 重构代码生成相关组件和路由路径 feat(WebSocket): 添加WebSocket支持并配置Nginx代理 fix(用户管理): 移除超级管理员过滤并调整用户数据 feat(定时任务): 完善定时任务日志功能并添加相关API style(前端): 优化AI助手界面样式和提示文本 chore(初始化数据): 清理和更新系统初始化数据 perf(前端): 优化表格操作列宽度和按钮样式 docs(注释): 更新控制器注释以反映模块变更
24 lines
812 B
Python
24 lines
812 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Optional
|
|
from sqlalchemy import String, Boolean
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.core.base_model import CreatorMixin
|
|
|
|
|
|
class ConfigModel(CreatorMixin):
|
|
"""
|
|
系统配置表
|
|
"""
|
|
__tablename__ = "system_param"
|
|
__table_args__ = ({'comment': '系统参数表'})
|
|
|
|
# 基础字段
|
|
config_name: Mapped[str] = mapped_column(String(500), nullable=False, unique=True, comment='参数名称')
|
|
config_key: Mapped[str] = mapped_column(String(500), nullable=False, unique=True, comment='参数键名')
|
|
config_value: Mapped[Optional[str]] = mapped_column(String(500), comment='参数键值')
|
|
config_type: Mapped[bool] = mapped_column(Boolean, default=False, nullable=True, comment="系统内置(True:是 False:否)")
|
|
|
|
|