|
@@ -6,7 +6,7 @@ const apply = new Schema({
|
|
user_id: { type: String, required: true, maxLength: 200 }, // 用户id
|
|
user_id: { type: String, required: true, maxLength: 200 }, // 用户id
|
|
user_name: { type: String, required: true, maxLength: 200 }, // 用户名称
|
|
user_name: { type: String, required: true, maxLength: 200 }, // 用户名称
|
|
buyer: { type: String, required: true, maxLength: 1 }, // 买家/卖家 0/1
|
|
buyer: { type: String, required: true, maxLength: 1 }, // 买家/卖家 0/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 }, // 邮箱
|
|
@@ -20,12 +20,12 @@ apply.index({ userid: 1 });
|
|
const Dock = {
|
|
const Dock = {
|
|
title: { type: String, required: true, maxLength: 200 }, // 对接会标题
|
|
title: { type: String, required: true, maxLength: 200 }, // 对接会标题
|
|
desc: { type: String, maxLength: 1000 }, // 简介
|
|
desc: { type: String, maxLength: 1000 }, // 简介
|
|
- status: { type: String, default: "0", maxLength: 1 }, // 状态:0准备中;1已开始;2已结束
|
|
|
|
|
|
+ status: { type: String, default: '0', maxLength: 1 }, // 状态:0准备中;1已开始;2已结束
|
|
start_time: { type: String, required: true, maxLength: 200 }, // 开始时间
|
|
start_time: { type: String, required: true, maxLength: 200 }, // 开始时间
|
|
end_time: { type: String, required: true, maxLength: 200 }, // 结束时间
|
|
end_time: { type: String, required: true, maxLength: 200 }, // 结束时间
|
|
join_end: { type: String, required: true, maxLength: 200 }, // 报名截止时间
|
|
join_end: { type: String, required: true, maxLength: 200 }, // 报名截止时间
|
|
- apply: { type: [apply], default: [] },
|
|
|
|
- is_allowed: { type: String, default: "0", maxLength: 1 }, // 0未审核;1已允许;2已拒绝
|
|
|
|
|
|
+ apply: { type: [ apply ], default: [] },
|
|
|
|
+ is_allowed: { type: String, default: '0', maxLength: 1 }, // 0未审核;1已允许;2已拒绝
|
|
reason: { type: String, required: false, maxLength: 200 }, // 拒绝理由
|
|
reason: { type: String, required: false, maxLength: 200 }, // 拒绝理由
|
|
user_id: { type: String, required: true, maxLength: 200 }, // 申请用户
|
|
user_id: { type: String, required: true, maxLength: 200 }, // 申请用户
|
|
province: { type: String, required: false }, // 省
|
|
province: { type: String, required: false }, // 省
|
|
@@ -33,6 +33,8 @@ const Dock = {
|
|
place: { type: String, required: false }, // 位置
|
|
place: { type: String, required: false }, // 位置
|
|
roomname: { type: String, required: false }, // 房间号
|
|
roomname: { type: String, required: false }, // 房间号
|
|
u_id: { type: String, required: false, maxLength: 200 }, // 所属用户
|
|
u_id: { type: String, required: false, maxLength: 200 }, // 所属用户
|
|
|
|
+ adminuser: { type: String, required: false, maxLength: 200 }, // 所属用户姓名
|
|
|
|
+ phone: { type: String, required: false, maxLength: 200 }, // 所属电话
|
|
};
|
|
};
|
|
const schema = new Schema(Dock, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(Dock, { toJSON: { virtuals: true } });
|
|
schema.index({ id: 1 });
|
|
schema.index({ id: 1 });
|