mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-25 21:57:48 +00:00
refactor(backend): 重构CRUD基类查询方法去除重复结果 feat(application): 新增应用系统模块基础结构 fix(backend): 修复多处日志记录ID变量名错误 style(backend): 清理无用代码和注释 fix(frontend): 修复用户导入功能参数错误 docs(backend): 更新环境配置示例注释 perf(backend): 优化导出功能数据处理逻辑 test(frontend): 添加任务日志功能开发中提示 chore: 更新角色菜单权限数据
25 lines
789 B
Python
25 lines
789 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from sqlalchemy import Boolean, String, Text, Integer
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.core.base_model import CreatorMixin
|
|
|
|
|
|
class ApplicationModel(CreatorMixin):
|
|
"""
|
|
应用系统表 - 用于管理分系统和外部应用
|
|
"""
|
|
|
|
__tablename__ = 'application_myapp'
|
|
__table_args__ = ({'comment': '应用系统表'})
|
|
|
|
# 基本信息(必备字段)
|
|
name: Mapped[str] = mapped_column(String(64), nullable=False, comment='应用名称', unique=True)
|
|
|
|
# 访问地址(核心字段)
|
|
access_url: Mapped[str] = mapped_column(String(500), nullable=False, comment='访问地址')
|
|
|
|
# 外观展示
|
|
icon_url: Mapped[str] = mapped_column(String(300), nullable=True, comment='应用图标URL')
|
|
|