initial: project docs and design spec

This commit is contained in:
2026-04-21 14:51:56 +08:00
commit 1ae84e994a
5 changed files with 1145 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
# Order 备份工具
---
## 功能概述
根据时间备份订单数据, 并且从订单表中删除已经备份的订单数据
## 订单生成与订单格式
> 参考 `/Users/tech/workspace/n3-world/N3-Server/n3backend/n3order` 工程
## 技术栈
1. 使用 python 编写 CLI 工具进行备份
2. 使用 `uv` 作为包管理, 使用 `uv tool` 安装
3. 使用 `Azure Table` python sdk
## 功能
1. 根据输入的时间段(UTC 时间, 以天为单位) 备份订单数据. 保存格式为 csv
2. 根据已经备份的数据删除订单库中的记录
## **注意事项**
- **备份和删除操作操作的是生产环境 table, 不能对业务造成性能压力**
#