Add index to name prop
This commit is contained in:
parent
32dbe9cb21
commit
bcf112f042
|
@ -8,7 +8,7 @@ describe('basic-querying', function() {
|
||||||
db = getSchema();
|
db = getSchema();
|
||||||
|
|
||||||
User = db.define('User', {
|
User = db.define('User', {
|
||||||
name: {type: String, sort: true},
|
name: {type: String, index: true, sort: true},
|
||||||
email: {type: String, index: true},
|
email: {type: String, index: true},
|
||||||
role: {type: String, index: true},
|
role: {type: String, index: true},
|
||||||
order: {type: Number, index: true, sort: true}
|
order: {type: Number, index: true, sort: true}
|
||||||
|
|
Loading…
Reference in New Issue