|
@@ -12,21 +12,21 @@ const schedule = {
|
|
|
red_name: { type: String },
|
|
|
red_logo: { type: Array },
|
|
|
red_members: { type: Array },
|
|
|
- red_branch: { type: String },
|
|
|
- red_integral: { type: String },
|
|
|
+ red_branch: { type: Array },
|
|
|
+ red_integral: { type: Array },
|
|
|
|
|
|
blue_id: { type: String },
|
|
|
blue_name: { type: String },
|
|
|
blue_logo: { type: Array },
|
|
|
blue_members: { type: Array },
|
|
|
- blue_branch: { type: String },
|
|
|
- blue_integral: { type: String },
|
|
|
+ blue_branch: { type: Array },
|
|
|
+ blue_integral: { type: Array },
|
|
|
match_time: { type: String },
|
|
|
match_file: { type: Array },
|
|
|
status: { type: String, default: '0' },
|
|
|
|
|
|
match_position: { type: String },
|
|
|
- format: { type: Array },
|
|
|
+ format: { type: Array },
|
|
|
is_bye: { type: Boolean, default: false },
|
|
|
remark: { type: String },
|
|
|
};
|
|
@@ -39,7 +39,7 @@ schema.index({ match_time: 1 });
|
|
|
schema.index({ status: 1 });
|
|
|
schema.index({ 'meta.createdAt': 1 });
|
|
|
schema.plugin(metaPlugin);
|
|
|
-module.exports = (app) => {
|
|
|
+module.exports = app => {
|
|
|
const { mongoose } = app;
|
|
|
return mongoose.model('Schedule', schema, 'schedule');
|
|
|
};
|