mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-28 15:09:57 +00:00
refactor: 统一详情接口权限标识从query改为detail feat(tenant): 为租户模型添加domain字段支持 fix(cron): 移除定时任务触发参数只读限制 perf(menu): 优化菜单权限标识注释说明 refactor(model): 为多个模型添加租户关联支持 style(main): 调整CSS导入顺序和格式 chore(package): 替换前端流程图库为@vue-flow系列 fix(token): 修正令牌详情接口权限标识 docs(sql): 更新菜单权限标识注释为query格式
20 lines
766 B
Python
20 lines
766 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from sqlalchemy import String, Text
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.core.base_model import ModelMixin, TenantMixin, UserMixin
|
|
|
|
|
|
class NoticeModel(ModelMixin, TenantMixin, UserMixin):
|
|
"""
|
|
通知公告表
|
|
"""
|
|
__tablename__: str = "sys_notice"
|
|
__table_args__: dict[str, str] = ({'comment': '通知公告表'})
|
|
__loader_options__: list[str] = ["created_by", "updated_by", "tenant"]
|
|
|
|
notice_title: Mapped[str] = mapped_column(String(64), nullable=False, comment='公告标题')
|
|
notice_type: Mapped[str] = mapped_column(String(1), nullable=False, comment='公告类型(1通知 2公告)')
|
|
notice_content: Mapped[str | None] = mapped_column(Text, nullable=True, comment='公告内容')
|