|
@@ -4,10 +4,10 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
|
|
|
const RoomSchema = {
|
|
const RoomSchema = {
|
|
name: { type: String, required: false, maxLength: 200 }, // 房间名称
|
|
name: { type: String, required: false, maxLength: 200 }, // 房间名称
|
|
- type: { type: String, required: true, maxLength: 64 }, // 类型0、直播1、会议
|
|
|
|
- filedir: { type: String, required: true, maxLength: 200 }, // 封面图片
|
|
|
|
- url: { type: String, required: true, maxLength: 200 }, // 房间地址
|
|
|
|
- anchorid: { type: String, required: true, maxLength: 200 }, // 主播id
|
|
|
|
|
|
+ type: { type: String, required: false, maxLength: 64 }, // 类型0、直播1、会议
|
|
|
|
+ filedir: { type: String, required: false, maxLength: 200 }, // 封面图片
|
|
|
|
+ url: { type: String, required: false, maxLength: 200 }, // 房间地址
|
|
|
|
+ anchorid: { type: String, required: false, maxLength: 200 }, // 主播id
|
|
};
|
|
};
|
|
|
|
|
|
const schema = new Schema(RoomSchema, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(RoomSchema, { toJSON: { virtuals: true } });
|