Adding unique indexes to user model