|
@@ -23,6 +23,8 @@ const Dock = {
|
|
|
start_time: { 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已拒绝
|
|
|
+ reason: { type: String, required: true, maxLength: 200 }, // 拒绝理由
|
|
|
};
|
|
|
const schema = new Schema(Dock, { toJSON: { virtuals: true } });
|
|
|
schema.index({ id: 1 });
|