|
@@ -6,12 +6,13 @@ const apply = new Schema({
|
|
user_id: { type: String, required: true, maxLength: 200 },
|
|
user_id: { type: String, required: true, maxLength: 200 },
|
|
user_name: { type: String, required: true, maxLength: 200 },
|
|
user_name: { type: String, required: true, maxLength: 200 },
|
|
buyer: { type: String, required: true, maxLength: 1 },
|
|
buyer: { type: String, required: true, maxLength: 1 },
|
|
- goodsList: [ Object ],
|
|
+ goodsList: [Object],
|
|
contact: { type: String, required: true, maxLength: 200 },
|
|
contact: { type: String, required: true, maxLength: 200 },
|
|
contact_tel: { type: String, required: true, maxLength: 200 },
|
|
contact_tel: { type: String, required: true, maxLength: 200 },
|
|
email: { type: String, maxLength: 200 },
|
|
email: { type: String, maxLength: 200 },
|
|
company: { type: String, maxLength: 200 },
|
|
company: { type: String, maxLength: 200 },
|
|
apply_time: { type: String, maxLength: 200 },
|
|
apply_time: { type: String, maxLength: 200 },
|
|
|
|
+ role: { type: String, maxLength: 200 },
|
|
status: { type: String, default: 0, maxLength: 1 },
|
|
status: { type: String, default: 0, maxLength: 1 },
|
|
});
|
|
});
|
|
apply.index({ id: 1 });
|
|
apply.index({ id: 1 });
|