Skip to content
Snippets Groups Projects
Commit 08531e80 authored by syuilo's avatar syuilo
Browse files

Add some indexes

parent 7cec7fb1
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,8 @@ import SwSubscription, { deleteSwSubscription } from './sw-subscription';
const User = db.get<IUser>('users');
User.createIndex('username');
User.createIndex('usernameLower');
User.createIndex(['username', 'host'], { unique: true });
User.createIndex(['usernameLower', 'host'], { unique: true });
User.createIndex('token', { unique: true });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment