|
@@ -23,10 +23,15 @@ const expert = {
|
|
|
scienceaward: { type: String, required: false, maxLength: 200 }, // 科技奖励
|
|
|
social: { type: String, required: false, maxLength: 200 }, // 社会任职
|
|
|
status: { type: String, required: false, default: '0', maxLength: 200 }, // 审核状态,0-注册,1-通过,2-拒绝
|
|
|
+ major: { type: String, required: false, maxLength: 200 }, // 专业
|
|
|
+ card: { type: String, required: false, maxLength: 200 }, // 身份证号
|
|
|
|
|
|
isdel: { type: String, required: false, default: '0' }, // 0=>未删除;1=>已删除
|
|
|
remark: { type: String, maxLength: 200 },
|
|
|
- create_time: { type: String, default: moment().format('YYYY-MM-DD HH:mm:ss') },
|
|
|
+ create_time: {
|
|
|
+ type: String,
|
|
|
+ default: moment().format('YYYY-MM-DD HH:mm:ss'),
|
|
|
+ },
|
|
|
};
|
|
|
const schema = new Schema(expert, { toJSON: { virtuals: true } });
|
|
|
schema.index({ id: 1 });
|