refactor: 统一表命名规范,简化 DB 单例

- 去掉所有 Drizzle 表变量的 Table 后缀(userTable→user 等)
- 修复 Better Auth adapter 找不到 schema model 的问题
- DB 实例从 IIFE 闭包工厂简化为模块级导出
- db middleware 重命名为 dbMiddleware 避免与 db 实例冲突
- 添加 babel-plugin-react-compiler 依赖
This commit is contained in:
2026-03-30 21:53:30 +08:00
parent 8c3425359d
commit 430c0b0c64
10 changed files with 76 additions and 86 deletions
+1
View File
@@ -55,6 +55,7 @@
"@tanstack/react-router-devtools": "catalog:",
"@types/bun": "catalog:",
"@vitejs/plugin-react": "catalog:",
"babel-plugin-react-compiler": "^1.0.0",
"drizzle-kit": "catalog:",
"nitro": "catalog:",
"tailwindcss": "catalog:",