mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-26 06:19:04 +00:00
refactor(application): 重构应用模块为门户应用,支持租户隔离 feat(portal): 添加门户应用管理功能 perf(health): 新增就绪探针检查,优化健康检查接口 fix(middleware): 修复请求日志中间件的异常处理 style(menu): 调整菜单表格列顺序,优化展示效果 style(table): 优化表格内操作按钮的焦点样式 docs: 更新README文档,修正智能体框架描述 chore(deps): 移除langchain相关依赖,更新项目依赖 test: 添加多租户相关测试用例 ci: 更新CI配置,支持多租户测试环境 build: 更新构建配置,支持租户插件
24 lines
768 B
Python
24 lines
768 B
Python
from typing import TYPE_CHECKING
|
|
|
|
from sqlalchemy import String
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.core.base_model import ModelMixin, TenantMixin, UserMixin
|
|
|
|
if TYPE_CHECKING:
|
|
pass
|
|
|
|
|
|
class ApplicationModel(ModelMixin, TenantMixin, UserMixin):
|
|
"""
|
|
应用系统表
|
|
"""
|
|
|
|
__tablename__: str = "app_portal"
|
|
__table_args__: dict[str, str] = {"comment": "门户应用"}
|
|
__loader_options__: list[str] = ["created_by", "updated_by"]
|
|
|
|
name: Mapped[str] = mapped_column(String(64), nullable=False, comment="应用名称")
|
|
access_url: Mapped[str] = mapped_column(String(500), nullable=False, comment="访问地址")
|
|
icon_url: Mapped[str | None] = mapped_column(String(300), nullable=True, comment="应用图标URL")
|