|
@@ -56,6 +56,7 @@ const basic = new Schema({
|
|
|
});
|
|
|
basic.index({ id: 1 });
|
|
|
basic.index({ achieve_num: 1 });
|
|
|
+
|
|
|
|
|
|
const brief = new Schema({
|
|
|
achieve_brief: { type: String },
|
|
@@ -67,8 +68,8 @@ const brief = new Schema({
|
|
|
prospect: { type: String },
|
|
|
opinion: { type: String },
|
|
|
});
|
|
|
-
|
|
|
brief.index({ id: 1 });
|
|
|
+
|
|
|
|
|
|
const research = new Schema({
|
|
|
name: { type: String },
|
|
@@ -89,6 +90,7 @@ const research = new Schema({
|
|
|
email: { type: String },
|
|
|
});
|
|
|
research.index({ id: 1 });
|
|
|
+
|
|
|
|
|
|
const datalist = new Schema({
|
|
|
work_report: { type: Object },
|
|
@@ -104,9 +106,16 @@ const datalist = new Schema({
|
|
|
gf: { type: Object },
|
|
|
company_standard: { type: Object },
|
|
|
});
|
|
|
-
|
|
|
datalist.index({ id: 1 });
|
|
|
|
|
|
+
|
|
|
+const file = new Schema({
|
|
|
+ page5: { type: String },
|
|
|
+ page6: { type: String },
|
|
|
+ nameList: { type: String },
|
|
|
+});
|
|
|
+file.index({ id: 1 });
|
|
|
+
|
|
|
|
|
|
const achieve_apply = {
|
|
|
user_id: { type: ObjectId },
|
|
@@ -121,7 +130,7 @@ const achieve_apply = {
|
|
|
brief: { type: brief },
|
|
|
research: { type: [ research ] },
|
|
|
datalist: { type: datalist },
|
|
|
- file: { type: Object },
|
|
|
+ file: { type: file },
|
|
|
remark: { type: String, maxLength: 200 },
|
|
|
create_time: { type: String, default: moment().format('YYYY-MM-DD HH:mm:ss') },
|
|
|
};
|