-- Usernames are matched without regard to case at sign-in, so two may not differ only in case. CREATE UNIQUE INDEX users_username_nocase ON users (username COLLATE NOCASE);