|
@@ -8,6 +8,7 @@ const RoomSchema = {
|
|
filedir: { type: String, required: false, maxLength: 200 }, // 封面图片
|
|
filedir: { type: String, required: false, maxLength: 200 }, // 封面图片
|
|
url: { type: String, required: false, maxLength: 200 }, // 房间地址
|
|
url: { type: String, required: false, maxLength: 200 }, // 房间地址
|
|
anchorid: { type: String, required: false, maxLength: 200 }, // 主播id
|
|
anchorid: { type: String, required: false, maxLength: 200 }, // 主播id
|
|
|
|
+ status: { type: String, required: false, maxLength: 64 }, // 状态0、开启1、关闭
|
|
};
|
|
};
|
|
|
|
|
|
const schema = new Schema(RoomSchema, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(RoomSchema, { toJSON: { virtuals: true } });
|