|
@@ -6,6 +6,7 @@ const LookuserSchema = {
|
|
roomid: { type: String, required: false, maxLength: 200 }, // 房间名称
|
|
roomid: { type: String, required: false, maxLength: 200 }, // 房间名称
|
|
roomname: { type: String, required: false, maxLength: 200 }, // 房间号
|
|
roomname: { type: String, required: false, maxLength: 200 }, // 房间号
|
|
userid: { type: String, required: false, maxLength: 200 }, // 观看用户id
|
|
userid: { type: String, required: false, maxLength: 200 }, // 观看用户id
|
|
|
|
+ username: { type: String, required: false, maxLength: 200 }, // 观看用户名称
|
|
};
|
|
};
|
|
|
|
|
|
const schema = new Schema(LookuserSchema, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(LookuserSchema, { toJSON: { virtuals: true } });
|