From 7c7f8493c48785fce522cb223d2456de741a146e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Mar 2026 14:21:48 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E6=96=87=E6=A1=A3=EF=BC=8C=E6=B7=BB=E5=8A=A0=20feishu?= =?UTF-8?q?=5Fmessage=5Flog=20=E8=A1=A8=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 feishu_message_log 表结构文档(飞书消息日志表) - 更新文档版本至 1.1.0 - 更新最后更新时间至 2026-03-01 Co-Authored-By: Claude Opus 4.6 --- docs/DATABASE_SCHEMA.md | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/docs/DATABASE_SCHEMA.md b/docs/DATABASE_SCHEMA.md index 94eb6bc..552f472 100644 --- a/docs/DATABASE_SCHEMA.md +++ b/docs/DATABASE_SCHEMA.md @@ -1,7 +1,7 @@ # 数据库结构文档 -**版本**: 1.0.0 -**更新时间**: 2026-02-28 +**版本**: 1.1.0 +**更新时间**: 2026-03-01 **状态**: 线上稳定版本 --- @@ -331,6 +331,33 @@ --- +### 14. feishu_message_log - 飞书消息日志表 + +飞书消息发送和更新的操作日志,用于调试和审计。 + +| 字段 | 类型 | 必填 | 默认值 | 说明 | +|------|------|------|--------|------| +| id | bigint unsigned | ✓ | AUTO_INCREMENT | 记录ID | +| action | varchar(20) | ✓ | | 操作类型:send=发送,update=更新,update_card=更新卡片 | +| order_id | bigint unsigned | ✓ | | 审批订单ID | +| node_id | bigint unsigned | | | 审批节点ID | +| user_id | bigint unsigned | | | 用户ID | +| message_id | varchar(64) | | | 飞书消息ID | +| status | varchar(10) | ✓ | | 状态:success=成功,failed=失败 | +| request_data | text | | | 请求数据(JSON) | +| response_data | text | | | 响应数据(JSON) | +| error_message | text | | | 错误信息 | +| created_at | timestamp | ✓ | CURRENT_TIMESTAMP | 创建时间 | + +**索引**: +- PRIMARY KEY (`id`) +- KEY `idx_order_id` (`order_id`) +- KEY `idx_action` (`action`) +- KEY `idx_status` (`status`) +- KEY `idx_created_at` (`created_at`) + +--- + ## 📊 表关系图 ``` @@ -392,5 +419,5 @@ users (1) ----< (N) business_trip --- **维护人**: 开发团队 -**最后更新**: 2026-02-28 -**版本**: 1.0.0 (线上稳定版) +**最后更新**: 2026-03-01 +**版本**: 1.1.0 (线上稳定版)