|
@@ -6,6 +6,7 @@ const metaPlugin = require('naf-framework-mongoose-free/lib/model/meta-plugin');
|
|
|
const goodsTags = {
|
|
|
label: { type: String, required: false, zh: '显示名称' }, //
|
|
|
code: { type: String, required: false, zh: '标签编码' }, //
|
|
|
+ sort: { type: String, required: false, zh: '标签排序' }, //
|
|
|
pid: { type: String, required: false, zh: '上级标签' }, //
|
|
|
level: { type: Number, required: false, zh: '层级' }, //
|
|
|
status: { type: String, required: false, default: '0', zh: '状态' }, // 字典status
|
|
@@ -16,6 +17,7 @@ schema.index({ id: 1 });
|
|
|
schema.index({ 'meta.createdAt': 1 });
|
|
|
schema.index({ label: 1 });
|
|
|
schema.index({ code: 1 });
|
|
|
+schema.index({ sort: 1 });
|
|
|
schema.index({ pid: 1 });
|
|
|
schema.index({ level: 1 });
|
|
|
schema.index({ status: 1 });
|