Delete the model redundancy level field (#518)

This commit is contained in:
Wu Clan
2025-02-24 12:30:08 +08:00
committed by GitHub
parent 6d44f807a7
commit b0f675f697
6 changed files with 44 additions and 54 deletions
-1
View File
@@ -16,7 +16,6 @@ class Dept(Base):
id: Mapped[id_key] = mapped_column(init=False)
name: Mapped[str] = mapped_column(String(50), comment='部门名称')
level: Mapped[int] = mapped_column(default=0, comment='部门层级')
sort: Mapped[int] = mapped_column(default=0, comment='排序')
leader: Mapped[str | None] = mapped_column(String(20), default=None, comment='负责人')
phone: Mapped[str | None] = mapped_column(String(11), default=None, comment='手机')
-1
View File
@@ -19,7 +19,6 @@ class Menu(Base):
id: Mapped[id_key] = mapped_column(init=False)
title: Mapped[str] = mapped_column(String(50), comment='菜单标题')
name: Mapped[str] = mapped_column(String(50), comment='菜单名称')
level: Mapped[int] = mapped_column(default=0, comment='菜单层级')
sort: Mapped[int] = mapped_column(default=0, comment='排序')
icon: Mapped[str | None] = mapped_column(String(100), default=None, comment='菜单图标')
path: Mapped[str | None] = mapped_column(String(200), default=None, comment='路由地址')