优化了agent

This commit is contained in:
lik
2026-10-31 18:51:20 +08:00
parent ab584c5fa8
commit 02d57f82dc
22 changed files with 193 additions and 155 deletions
+1 -2
View File
@@ -196,8 +196,7 @@ OrganizationSchema.statics.updateOrg = async function (id, update) {
// ==================== 索引定义 ====================
OrganizationSchema.index({ name: 1 });
OrganizationSchema.index({ code: 1 });
// 注意:name 与 code(unique+sparse)的索引在字段定义处声明,勿在此重复声明
OrganizationSchema.index({ type: 1, status: 1 });
OrganizationSchema.index({ "address.city": 1, "address.district": 1 });
OrganizationSchema.index({ status: 1 });