|
@@ -4,14 +4,14 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
|
|
|
|
|
|
const goods = new Schema({
|
|
|
- totaltype: { type: String, required: true, maxLength: 5 },
|
|
|
- name: { type: String, required: true, maxLength: 200 },
|
|
|
- product_type_id: { type: Object, required: true, maxLength: 200 },
|
|
|
- introduction: { type: String, required: true, maxLength: 1000 },
|
|
|
- phase: { type: String, required: true, maxLength: 200 },
|
|
|
- price: { type: String, required: true, maxLength: 200 },
|
|
|
- priceunit: { type: String, required: true, maxLength: 200 },
|
|
|
- image: { type: String, required: true, maxLength: 200 },
|
|
|
+ totaltype: { type: String, required: false, maxLength: 5 },
|
|
|
+ name: { type: String, required: false, maxLength: 200 },
|
|
|
+ product_type_id: { type: Object, required: false, maxLength: 200 },
|
|
|
+ introduction: { type: String, required: false, maxLength: 1000 },
|
|
|
+ phase: { type: String, required: false, maxLength: 200 },
|
|
|
+ price: { type: String, required: false, maxLength: 200 },
|
|
|
+ priceunit: { type: String, required: false, maxLength: 200 },
|
|
|
+ image: { type: String, required: false, maxLength: 200 },
|
|
|
field: { type: String, maxLength: 200 },
|
|
|
scope: { type: String, maxLength: 200 },
|
|
|
coopermode: { type: String, maxLength: 200 },
|
|
@@ -37,8 +37,8 @@ const apply = new Schema({
|
|
|
user_name: { type: String, required: true, maxLength: 200 },
|
|
|
buyer: { type: String, required: true, maxLength: 1 },
|
|
|
goodsList: { type: [ goods ], default: [] },
|
|
|
- contact: { type: String, required: true, maxLength: 200 },
|
|
|
- contact_tel: { type: String, required: true, maxLength: 200 },
|
|
|
+ contact: { type: String, required: false, maxLength: 200 },
|
|
|
+ contact_tel: { type: String, required: false, maxLength: 200 },
|
|
|
email: { type: String, maxLength: 200 },
|
|
|
company: { type: String, maxLength: 200 },
|
|
|
apply_time: { type: String, maxLength: 200 },
|
|
@@ -61,14 +61,14 @@ vipuser.index({ id: 1 });
|
|
|
const Dock = {
|
|
|
room_id: { type: String, required: true, maxLength: 10 },
|
|
|
password: { type: String, required: false, maxLength: 200 },
|
|
|
- title: { type: String, required: true, maxLength: 200 },
|
|
|
+ title: { type: String, required: false, maxLength: 200 },
|
|
|
desc: { type: String, maxLength: 1000 },
|
|
|
status: { type: String, default: '0', maxLength: 1 },
|
|
|
start_time: { type: String, required: true, maxLength: 200 },
|
|
|
end_time: { type: String, required: true, maxLength: 200 },
|
|
|
join_end: { type: String, required: true, maxLength: 200 },
|
|
|
apply: { type: [ apply ], default: [] },
|
|
|
- user_id: { type: String, required: true, maxLength: 200 },
|
|
|
+ user_id: { type: String, required: false, maxLength: 200 },
|
|
|
province: { type: String, required: false },
|
|
|
place: { type: String, required: false },
|
|
|
file_path: { type: String, required: false },
|