mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #16443 from Botik/sequelize-indexes
[sequelize] add where option to DefineIndexesOptions for v4
This commit is contained in:
Vendored
+5
@@ -4792,6 +4792,11 @@ declare namespace sequelize {
|
||||
*/
|
||||
operator?: string;
|
||||
|
||||
/**
|
||||
* Condition for partioal index
|
||||
*/
|
||||
where?: WhereOptions;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1290,7 +1290,10 @@ s.define( 'UserWithUniqueUsername', {
|
||||
name : 'user_and_email_index',
|
||||
unique : true,
|
||||
method : 'BTREE',
|
||||
fields : ['user_id', { attribute : 'email', collate : 'en_US', order : 'DESC', length : 5 }]
|
||||
fields : ['user_id', { attribute : 'email', collate : 'en_US', order : 'DESC', length : 5 }],
|
||||
where : {
|
||||
user_id : { $not: null }
|
||||
}
|
||||
},
|
||||
{
|
||||
fields: ['data'],
|
||||
|
||||
Reference in New Issue
Block a user