|
@@ -9,7 +9,7 @@ const RoomSchema = {
|
|
|
url: { type: String, required: false, maxLength: 200 }, // 房间地址
|
|
|
anchorid: { type: String, required: false, maxLength: 200 }, // 主播id
|
|
|
username: { type: String, required: false, maxLength: 200 }, // 主播名称
|
|
|
- status: { type: String, required: false, maxLength: 64 }, // 状态0、开启1、关闭
|
|
|
+ status: { type: String, required: false, maxLength: 64, default: '0' }, // 状态0、开启1、关闭
|
|
|
};
|
|
|
|
|
|
const schema = new Schema(RoomSchema, { toJSON: { virtuals: true } });
|