liuyu 4 years ago
parent
commit
66be015724
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/model/room.js

+ 4 - 4
app/model/room.js

@@ -4,10 +4,10 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 
 const RoomSchema = {
   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 } });