fix(market): bundle_json 字段 MySQL 已 ALTER 为 MEDIUMTEXT(skill 内嵌 SKILL.md 可能超 64KB)

This commit is contained in:
Pine
2026-09-02 14:44:03 +08:00
parent a689fbdf7f
commit 581ef33112
+3 -1
View File
@@ -621,9 +621,11 @@ class Escrow(Base):
# ── 微信服务商分账(资金托管)字段 ──
channel: Mapped[str] = mapped_column(String, default="wx_split") # wx_split | bank_escrow | direct_pay | manual
transaction_id: Mapped[str] = mapped_column(String, default="") # 微信支付单号(收单来源)
payer_sub_mchid: Mapped[str] = mapped_column(String, default="") # 出资(收单)特约商户号,即分账出资方
share_order_no: Mapped[str] = mapped_column(String, default="") # 分账单号(幂等键)
share_status: Mapped[str] = mapped_column(String, default="pending") # pending/sharing/shared/failed
receiver_binding_id: Mapped[str] = mapped_column(String, default="") # 接单者收款绑定 id
split_detail: Mapped[str] = mapped_column(Text, default="{}") # 分账生命周期快照(剩余待分/解冻/结果)
created_at: Mapped[str] = mapped_column(String, default="")
updated_at: Mapped[str] = mapped_column(String, default="")
@@ -1297,7 +1299,7 @@ class MarketItem(Base):
category: Mapped[str] = mapped_column(String, default="")
tags_json: Mapped[str] = mapped_column(Text, default="[]")
locale_json: Mapped[str] = mapped_column(Text, default="{}")
bundle_json: Mapped[str] = mapped_column(Text, default="{}") # 安装包元数据(skill 内嵌)
bundle_json: Mapped[str] = mapped_column(Text, default="{}") # 安装包元数据(skill 内嵌完整 SKILL.mdMySQL 已 ALTER 为 MEDIUMTEXT
bundle_url: Mapped[str] = mapped_column(String, default="") # OSS 对象路径(plugin/app zip
bundle_sha256: Mapped[str] = mapped_column(String, default="")
price_fen: Mapped[int] = mapped_column(Integer, default=0) # 定价(分);0=免费(skill 恒 0)