Browse Source

Fix missing indexes.

pull/6/head
t123yh 7 years ago
parent
commit
a782357094
  1. 3
      models/article.js
  2. 3
      models/judge_state.js

3
models/article.js

@ -49,6 +49,9 @@ let model = db.define('article', {
{ {
fields: ['user_id'] fields: ['user_id']
}, },
{
fields: ['problem_id']
},
{ {
fields: ['sort_time'] fields: ['sort_time']
} }

3
models/judge_state.js

@ -76,6 +76,9 @@ let model = db.define('judge_state', {
}, },
{ {
fields: ['problem_id'], fields: ['problem_id'],
},
{
fields: ['task_id'],
} }
] ]
}); });

Loading…
Cancel
Save