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:
@@ -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:",
|
||||
|
||||
Reference in New Issue
Block a user