1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 07:35:57 +09:00
This commit is contained in:
syuilo 2018-04-15 12:40:48 +09:00
parent a2b9a66acd
commit 82c93fdcb8

View File

@ -27,7 +27,7 @@ User.createIndex('username');
User.createIndex('usernameLower'); User.createIndex('usernameLower');
User.createIndex(['username', 'host'], { unique: true }); User.createIndex(['username', 'host'], { unique: true });
User.createIndex(['usernameLower', 'host'], { unique: true }); User.createIndex(['usernameLower', 'host'], { unique: true });
User.createIndex('token', { unique: true }); User.createIndex('token', { sparse: true, unique: true });
User.createIndex('uri', { sparse: true, unique: true }); User.createIndex('uri', { sparse: true, unique: true });
export default User; export default User;