Organize/prisma/migrations
Brian Fertig a849293bd0 Add account linking and per-account theme persistence
- Profile page gains a Request Account Link form, plus sections for pending requests (create / deny / deny-and-block), confirmed linked accounts (toggle / remove), and blocked requesters (allow requests)
- Toggle signs the browser in as the linked account using a single-use 60-second switch token minted server-side after link verification, so the target's password is never needed; a new "account-switch" Credentials provider in auth.ts consumes the token atomically to prevent replay
- Theme preference now stored on the User profile row (new `theme` column) and applied from the root layout's no-FOUC script before first paint, so each account keeps its own look across toggles and devices; anonymous visitors keep the old localStorage behavior
- New Prisma models: AccountLinkRequest, AccountLink, AccountLinkBlock, AccountSwitchToken with composite uniques, self-link check constraint, and cascade deletes
2026-08-30 13:28:55 -06:00
..
20260811180929_init
20260811190000_add_group_archived_at
20260811200000_add_user_role
20260812000000_add_site_settings
20260813000000_add_projects
20260814000000_add_todo_completed_at
20260815000000_add_ai_settings
20260817190137_add_scheduled_todos
20260817190207_add_scheduled_todo_owner_xor_project
20260828000000_add_scheduled_todo_time_due Reminders and Notifications -- on scheduled to dos 2026-08-28 13:19:25 -06:00
20260828010000_add_scheduled_todo_remind_minutes_before Reminders and Notifications -- on scheduled to dos 2026-08-28 13:19:25 -06:00
20260830010434_add_project_theme Add per-project theme assignment with scoped theming 2026-08-29 22:07:10 -06:00
20260830170317_add_user_profile Add user profile page with name and photo support 2026-08-30 11:24:05 -06:00
20260831000000_account_linking Add account linking and per-account theme persistence 2026-08-30 13:28:55 -06:00
20260831010000_user_theme Add account linking and per-account theme persistence 2026-08-30 13:28:55 -06:00
migration_lock.toml