feat(db): move auth schema into Drizzle structure and add user FK

- Move auth schema from auth-schema.ts to lib/db/schema/auth.ts
- Export auth tables (user, session, account, verification, passkey) via barrel
- Add FK from performanceEntries.userId to user.id
- Generate and apply migration for auth tables + user FK
- Remove unused echarts dependency
This commit is contained in:
2026-04-25 12:29:42 +08:00
parent ab0fe349a1
commit 78079779c9
6 changed files with 266 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@
"dependencies": {
"@aws-sdk/client-s3": "^3.1036.0",
"@better-auth/drizzle-adapter": "^1.6.9",
"@better-auth/passkey": "^1.6.9",
"@elysia/eden": "^1.4.10",
"@tiptap/core": "^3.22.4",
"@tiptap/pm": "^3.22.4",