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
@@ -1,4 +1,5 @@
// Barrel export — will be populated as schema files are created
export * from "./auth"
export * from "./games"
export * from "./gameVersions"
export * from "./hardware"