|
@@ -6,7 +6,9 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
const ChatroommSchema = {
|
|
|
number: { type: String, required: false, maxLength: 200, default: new Date().getTime() }, // 房间号
|
|
|
teacherid: { type: String, required: true, maxLength: 200 }, // 教师id
|
|
|
+ teacher: { type: String, required: true, maxLength: 200 }, // 教师
|
|
|
studentid: { type: String, required: true, maxLength: 200 }, // 学生id
|
|
|
+ student: { type: String, required: true, maxLength: 200 }, // 学生
|
|
|
};
|
|
|
|
|
|
|