sync update from LAN repo (source master @ ca48c4ec)

This commit is contained in:
gozeros committed 2026-11-05 10:53:54 +08:00
1 parent 8bc8b0e082
commit ea9dcff9c0
873 files changed
+107866 -14011

No files matched your search

@@ -75,6 +75,13 @@ class RoundtableChainRow(Base):
pending_review: Mapped[bool] = mapped_column(
Boolean, nullable=False, default=False, server_default="0", index=True
)
# 管理员目录开关:True = 从所有普通列表(我的/公共/待审核/选链弹窗)隐藏,仅管理员
# 管理视图(``admin_view=true`` 的列表请求)可见。纯目录开关:单条读取(get_chain)
# 不过滤,已配置的业务映射 / 进行中的研讨不受影响。``server_default`` 显式声明以支持
# 启动期 ``_ensure_orm_columns_sync`` 在既有表上补列(NOT NULL 需带默认)。
hidden: Mapped[bool] = mapped_column(
Boolean, nullable=False, default=False, server_default="0", index=True
)
created_at: Mapped[datetime] = mapped_column(
BeijingDateTime(), nullable=False, default=lambda: datetime.now(UTC)
)