New users (especially via OAuth/Google) are redirected to /onboarding to choose a display username before accessing the app. Adds unique constraint on users.username and case-insensitive uniqueness validation. https://claude.ai/code/session_01UinBMAy9d6dQzzbcUAdq8J
1 line
No EOL
78 B
SQL
1 line
No EOL
78 B
SQL
ALTER TABLE "users" ADD CONSTRAINT "users_username_unique" UNIQUE("username"); |