diff --git a/src/models/user.ts b/src/models/user.ts index a2800a3808..cdf9a564fc 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -11,6 +11,7 @@ import config from '../config'; const User = db.get('users'); User.createIndex('username'); +User.createIndex('usernameLower'); User.createIndex('token'); User.createIndex('uri', { sparse: true, unique: true });