|
@@ -6,7 +6,6 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
const CommentSchema = {
|
|
const CommentSchema = {
|
|
newsid: { type: String, required: true, maxLength: 500 }, // 信息ID
|
|
newsid: { type: String, required: true, maxLength: 500 }, // 信息ID
|
|
uid: { type: String, required: true, maxLength: 500 }, // 用户ID
|
|
uid: { type: String, required: true, maxLength: 500 }, // 用户ID
|
|
- name: { type: String, required: true, maxLength: 500 }, // 用户名称
|
|
|
|
content: { type: String, required: true }, // 评论内容
|
|
content: { type: String, required: true }, // 评论内容
|
|
public_time: { type: String, required: false, maxLength: 500 }, // 发布时间
|
|
public_time: { type: String, required: false, maxLength: 500 }, // 发布时间
|
|
};
|
|
};
|