From f979c5e9b3126b78c5dfecb48871809c6235f1f6 Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Mon, 9 Aug 2021 21:52:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=B4=A2=E5=BC=95=EF=BC=9ARo?= =?UTF-8?q?le->roleName,=20SystemConfig->seasonNum?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/db/Role.ts | 1 + shared/db/SystemConfig.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/shared/db/Role.ts b/shared/db/Role.ts index 684975b48..119cc5c11 100644 --- a/shared/db/Role.ts +++ b/shared/db/Role.ts @@ -97,6 +97,7 @@ export class Teraph { * 角色字段接口 */ @index({ roleId: 1 }) +@index({ roleName: 1 }) @index({ serverId: 1, roleId: 1 }) @index({ towerLv: -1, towerUpTime: 1 }) // @index({ userInfo.uid: 1, serverId: 1 }) diff --git a/shared/db/SystemConfig.ts b/shared/db/SystemConfig.ts index 0bf3359ca..a1f6d8b5b 100644 --- a/shared/db/SystemConfig.ts +++ b/shared/db/SystemConfig.ts @@ -4,6 +4,7 @@ import { CounterModel } from './Counter'; import { COUNTER } from '../consts'; @index({ id: 1 }) +@index({ seasonNum: 1 }) export default class PVPConfig extends BaseModel { @prop({ required: true, default: 1 }) id: number;