🎈 perf(数据库): 优化数据库索引
This commit is contained in:
@@ -5,7 +5,6 @@ import { index, getModelForClass, prop, DocumentType } from '@typegoose/typegoos
|
||||
* 百家学宫表
|
||||
*/
|
||||
|
||||
@index({ roleId: 1 })
|
||||
@index({ roleId: 1, schoolId: 1, positionId: 1 })
|
||||
|
||||
export default class School extends BaseModel {
|
||||
|
||||
Reference in New Issue
Block a user