From 581ef33112bf6c10cb31f0e5362437a84dcc4b5f Mon Sep 17 00:00:00 2001 From: Pine Date: Wed, 2 Sep 2026 14:44:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(market):=20bundle=5Fjson=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=20MySQL=20=E5=B7=B2=20ALTER=20=E4=B8=BA=20MEDIUMTEXT?= =?UTF-8?q?=EF=BC=88skill=20=E5=86=85=E5=B5=8C=20SKILL.md=20=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E8=B6=85=2064KB=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/infrastructure/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/infrastructure/models.py b/app/infrastructure/models.py index f8641aa..80330b9 100644 --- a/app/infrastructure/models.py +++ b/app/infrastructure/models.py @@ -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.md;MySQL 已 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)