|
@@ -20,6 +20,8 @@ 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 }, // 开始时间
|
|
|
|
+ join_end: { type: String, required: true, maxLength: 200 }, // 报名截止时间
|
|
apply: { type: [ apply ], default: [] },
|
|
apply: { type: [ apply ], default: [] },
|
|
};
|
|
};
|
|
const schema = new Schema(Dock, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(Dock, { toJSON: { virtuals: true } });
|