Commit Graph
10 Commits
Author SHA1 Message Date
adrianbonpin d1e2a8f281 test(auth): add test-only auth instance with testUtils plugin and initial tests 2026-04-25 14:14:23 +08:00
adrianbonpin c0d2c8b137 feat(auth): configure Email OTP, Passkey, Last Login Method, and Admin with RBAC 2026-04-25 13:55:51 +08:00
adrianbonpin 78079779c9 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
2026-04-25 12:29:42 +08:00
adrianbonpin 0c234ed0d9 fix: revert unnecessary env-file prefix in db scripts 2026-04-25 12:02:19 +08:00
adrianbonpin 65d13933bf feat(db): add hardware seed script, db:seed command, and initial migration
- Create lib/db/seed.ts with idempotent hardware seeding
- Add db:seed script and fix db:* scripts to load .env.local via bun --env-file
- Generate initial Drizzle migration (0000_crazy_nick_fury)
- Apply migration and seed 3 hardware devices (steamdeck-oled, steamdeck-lcd, steam-machine)
2026-04-25 11:53:10 +08:00
adrianbonpin ef20a03f55 fix: remove echarts dependency added by mistake 2026-04-25 11:37:05 +08:00
adrianbonpin ad3fd31feb feat(db): setup drizzle config, client and package scripts
- Add drizzle.config.ts with PostgreSQL dialect configuration
- Create lib/db/index.ts with Drizzle ORM client and pg Pool
- Add db:generate, db:migrate, db:studio, db:push scripts to package.json

Part of Chunk 1: Drizzle Config & DB Client setup
2026-04-25 11:32:13 +08:00
adrianbonpin 0dd1e86487 feat: add comprehensive SEO (metadata, OG images, sitemap, robots, manifest) and update README 2026-04-25 01:52:28 +08:00
adrianbonpin 4688f3f594 feat: install initial required deps and update readme 2026-04-24 22:02:56 +08:00
adrianbonpin 04588d04c7 Initial commit from Create Next App 2026-04-24 21:49:07 +08:00