admin/sql
zzh c02cb21049 feat: add pickup-order model and door-pickup linking
Support 1 pickup to N logistics orders with create/pay/schedule APIs, parcel inboundMethod auto-attach, plus allocation-trace and inbound-billing updates already in tree.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 12:22:30 +08:00
..
20260727_customer_phone_nullable.sql feat: simplify WeChat register and require contact before order 2026-07-27 13:07:29 +08:00
20260728_auto_trigger_merge_forecast_to_order_create.sql fix: 修复智谱 AI 对话 URL,并合并自动触发预报时机 2026-07-28 20:54:28 +08:00
20260728_order_downstream_service_no.sql Fix downstream forecast success detection and persist provider service no. 2026-07-28 10:21:23 +08:00
20260728_order_file_comments.sql Improve draft predeclare billing and structured create-fail payload. 2026-07-28 19:30:27 +08:00
20260728_order_file.sql Improve draft predeclare billing and structured create-fail payload. 2026-07-28 19:30:27 +08:00
20260729_fix_user_empty_email.sql fix: 无邮箱注册改用占位邮箱,避免空串撞 uk_user_email 2026-07-29 18:28:33 +08:00
20260729_mcp_tool_alter_align.sql feat: 新增轻量 MCP 工具与 AI Agent,并限制 token 滥用 2026-07-29 12:03:45 +08:00
20260729_mcp_tool.sql feat: 新增轻量 MCP 工具与 AI Agent,并限制 token 滥用 2026-07-29 12:03:45 +08:00
20260730_customer_price_tier_key.sql feat: ?????????????????????????? 2026-07-30 15:16:55 +08:00
20260730_sales_product_trade_terms.sql feat: 销售产品贸易条款与查价分组展示,并修复用户资料 SQL 空值写入 2026-07-30 11:48:36 +08:00
20260801_ai_skill.sql feat: add additional-service billing, conditions, and fee lifecycle hardening 2026-08-01 18:04:28 +08:00
20260801_billing_additional_services.sql feat: add additional-service billing, conditions, and fee lifecycle hardening 2026-08-01 18:04:28 +08:00
20260801_billing_phase2.sql feat: add additional-service billing, conditions, and fee lifecycle hardening 2026-08-01 18:04:28 +08:00
20260801_global_ai_provider.sql feat: extract global AI service and persist sales-product publish AI reports 2026-08-01 15:56:40 +08:00
20260801_order_allocation_trace.sql feat: add pickup-order model and door-pickup linking 2026-08-03 12:22:30 +08:00
20260801_sales_product_publish_ai_report.sql feat: extract global AI service and persist sales-product publish AI reports 2026-08-01 15:56:40 +08:00
20260803_pickup_order.sql feat: add pickup-order model and door-pickup linking 2026-08-03 12:22:30 +08:00
README.md refactor: 仓储表 C_* 改为 c_*,优化专线小包批量模板 2026-07-22 16:18:59 +08:00

sql/

OMS / 共用库的建表脚本已统一到仓库根目录 db.sql。

  • 新环境:直接执行 db.sql(会 DROP 后重建,勿在有生产数据的库上执行)
  • 已有库:用 diff 对比 db.sql 与现库结构后手工 ALTER;本目录下单个表脚本(如 c_parcel_arrival.sql、c_parcel_item_AttributeText.sql、c_parcel_item_ImageUrl.sql)可直接在已有库执行增量建表;若仍为旧名 C_*,先执行 migrate_rename_warehouse_C_to_c.sql
  • 数据权限表(user_org_perm 等)若 RBAC 与 OMS 分库,请只在 RBAC 库执行 db.sql 末尾对应段落