|
@@ -9,6 +9,7 @@ const goodsTags = {
|
|
pid: { type: String, required: false, zh: '上级标签' }, //
|
|
pid: { type: String, required: false, zh: '上级标签' }, //
|
|
level: { type: Number, required: false, zh: '层级' }, //
|
|
level: { type: Number, required: false, zh: '层级' }, //
|
|
status: { type: String, required: false, default: '0', zh: '状态' }, // 字典status
|
|
status: { type: String, required: false, default: '0', zh: '状态' }, // 字典status
|
|
|
|
+ file: { type: Array, required: false, zh: '图片' }, //
|
|
};
|
|
};
|
|
const schema = new Schema(goodsTags, { toJSON: { getters: true, virtuals: true } });
|
|
const schema = new Schema(goodsTags, { toJSON: { getters: true, virtuals: true } });
|
|
schema.index({ id: 1 });
|
|
schema.index({ id: 1 });
|