- Add `username` column to the `user` table and enforce uniqueness constraint. - Introduce new SQL migration file for the `username` addition. - Update `schema.ts` to reflect changes in the `user`, `session`, and `account` tables. - Enhance authentication client by integrating `usernameClient` plugin for better user management. - Adjust session management settings for improved caching and freshness. - Refactor metadata generation in the home page for consistency.
2 lines
147 B
SQL
2 lines
147 B
SQL
ALTER TABLE "user" ADD COLUMN "username" text;--> statement-breakpoint
|
|
ALTER TABLE "user" ADD CONSTRAINT "user_username_unique" UNIQUE("username"); |