|
@@ -7,6 +7,7 @@ const market = {
|
|
|
mech_id: { type: ObjectId }, // 商户id
|
|
|
mech_name: { type: String }, // 商户名称
|
|
|
type: { type: String }, // 分类
|
|
|
+ type_id: { type: ObjectId }, // 分类id
|
|
|
name: { type: String }, // 商品名称
|
|
|
brief: { type: String }, // 简介
|
|
|
money: { type: Number }, // 单价
|
|
@@ -19,6 +20,7 @@ schema.index({ id: 1 });
|
|
|
schema.index({ mech_id: 1 });
|
|
|
schema.index({ mech_name: 1 });
|
|
|
schema.index({ type: 1 });
|
|
|
+schema.index({ type_id: 1 });
|
|
|
schema.index({ name: 1 });
|
|
|
schema.index({ money: 1 });
|
|
|
schema.index({ status: 1 });
|