docs: 更新数据库文档,添加 feishu_message_log 表记录
- 添加 feishu_message_log 表结构文档(飞书消息日志表) - 更新文档版本至 1.1.0 - 更新最后更新时间至 2026-03-01 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+31
-4
@@ -1,7 +1,7 @@
|
|||||||
# 数据库结构文档
|
# 数据库结构文档
|
||||||
|
|
||||||
**版本**: 1.0.0
|
**版本**: 1.1.0
|
||||||
**更新时间**: 2026-02-28
|
**更新时间**: 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
|
**最后更新**: 2026-03-01
|
||||||
**版本**: 1.0.0 (线上稳定版)
|
**版本**: 1.1.0 (线上稳定版)
|
||||||
|
|||||||
Reference in New Issue
Block a user