修改
1、微信回调签名验证绕过问题 2、联系请求竞态条件问题 3、contact列表count过滤bug 4、核心业务表索引添加
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from sqlalchemy import Boolean, Integer, String, ForeignKey
|
||||
from sqlalchemy import Boolean, Integer, String, ForeignKey, Index
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from app.models.base import Base, TimestampMixin
|
||||
@@ -13,7 +13,11 @@ class MenuConfig(Base, TimestampMixin):
|
||||
icon: Mapped[str] = mapped_column(String(64), default="")
|
||||
sort_order: Mapped[int] = mapped_column(Integer, default=0)
|
||||
is_active: Mapped[bool] = mapped_column(Boolean, default=True)
|
||||
parent_id: Mapped[str | None] = mapped_column(String(32), ForeignKey("menu_configs.id"), nullable=True)
|
||||
menu_type: Mapped[str] = mapped_column(String(16), default="page") # page / group
|
||||
menu_target: Mapped[str] = mapped_column(String(16), default="frontend") # frontend / admin / both
|
||||
is_default: Mapped[bool] = mapped_column(Boolean, default=False) # default show for new users
|
||||
parent_id: Mapped[str | None] = mapped_column(String(32), ForeignKey("menu_configs.id"), nullable=True, index=True)
|
||||
menu_type: Mapped[str] = mapped_column(String(16), default="page")
|
||||
menu_target: Mapped[str] = mapped_column(String(16), default="frontend")
|
||||
is_default: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
|
||||
__table_args__ = (
|
||||
Index('idx_menu_target_active_sort', 'menu_target', 'is_active', 'sort_order'),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user