refactor: 移除 SQLite 支持,仅保留 MySQL

This commit is contained in:
2026-08-05 17:43:13 +08:00
parent 81e622fa09
commit 47720a8fcc
35 changed files with 111 additions and 1961 deletions

View File

@@ -26,10 +26,10 @@
```
前端 (React + Vite) 后端 (NestJS) 数据库
┌─────────────────┐ ┌──────────────────┐ ┌──────────┐
│ React 19 │ │ NestJS 11 │ │ SQLite
│ Ant Design 6 │────▶│ TypeORM 0.3 │────▶│ (开发)
│ ECharts │ │ JWT + Passport │ │ MySQL 8
│ Vite 8 │ │ ExcelJS + PDFKit │ │ (生产)
│ React 19 │ │ NestJS 11 │ │ MySQL 8
│ Ant Design 6 │────▶│ TypeORM 0.3 │────▶│
│ ECharts │ │ JWT + Passport │ │
│ Vite 8 │ │ ExcelJS + PDFKit │ │
└─────────────────┘ └──────────────────┘ └──────────┘
```
@@ -51,7 +51,7 @@
- class-validator参数校验
- ExcelJSExcel 导出)
- PDFKitPDF 导出)
- SQLite / MySQL数据库支持
- MySQL 8唯一支持的数据库)
---
@@ -199,7 +199,7 @@
| 变量 | 说明 | 默认值 |
|------|------|--------|
| DB_TYPE | 数据库类型 | sqlite |
| DB_TYPE | 数据库类型(仅支持 MySQL | mysql |
| DB_HOST | MySQL 主机 | localhost |
| DB_PORT | MySQL 端口 | 3306 |
| DB_USERNAME | 数据库用户 | root |