ci: MySql切换为PG
This commit is contained in:
+2
-2
@@ -9,7 +9,7 @@
|
||||
- **技术栈**:
|
||||
- 前端:Nuxt.js(TypeScript模式)
|
||||
- 后端:Express.js(TypeScript模式)
|
||||
- 数据库:MySQL 8.0(ORM使用Prisma)
|
||||
- 数据库:Postgres14 (ORM使用Prisma)
|
||||
- 缓存:Redis
|
||||
- 接口协议:RESTful API
|
||||
- **核心原则**:
|
||||
@@ -165,7 +165,7 @@ interface DriveAdapter {
|
||||
- 灵活配置中间件(如 Redis连接池、CORS)
|
||||
- 与TypeScript结合良好,支持接口强类型定义
|
||||
|
||||
### **数据库(MySQL + Prisma)**
|
||||
### **数据库(Postgres + Prisma)**
|
||||
|
||||
- **优势**:
|
||||
- Prisma提供TypeScript类型安全的数据库操作
|
||||
|
||||
+2
-2
@@ -27,7 +27,7 @@
|
||||
|
||||
* **前端:** Nuxt.js (使用TypeScript)
|
||||
* **后端:** Express.js (使用TypeScript)
|
||||
* **数据库:** MySQL 8.0 (ORM: Prisma)
|
||||
* **数据库:** Postgres 14 (ORM: Prisma)
|
||||
* **缓存:** Redis
|
||||
|
||||
## **3\. 架构概述**
|
||||
@@ -103,7 +103,7 @@
|
||||
1. 查询 TranscodeRecord 表,筛选条件为:status \== 'success', cleanupStatus \== 'pending', 且 transferEndTime 早于当前时间减去约10分钟。
|
||||
2. 对每个符合条件的记录: a. 获取 transferredFileId, driveType, managedAccountId。 b. 获取对应的 Account 信息和 DriveAdapter 实例。 c. 调用 adapter.delete(transferredFileId, managedAccount) 方法删除网盘中的文件。 d. **若删除成功:** 更新 TranscodeRecord 的 cleanupStatus 为 'done'。记录清理成功 (CLEANUP\_SUCCESS) 到 ActivityLog。 e. **若删除失败:** 更新 TranscodeRecord 的 cleanupStatus 为 'failed'。记录清理失败 (CLEANUP\_FAILURE) 到 ActivityLog,包含错误信息。
|
||||
|
||||
## **7\. 数据模型 (Database \- MySQL/Prisma)**
|
||||
## **7\. 数据模型 (Database \- Postgres/Prisma)**
|
||||
|
||||
### **7.1. Account 表 (管理系统自有的网盘账号)**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user