|
@@ -41,6 +41,8 @@ const dock = {
|
|
|
};
|
|
|
const schema = new Schema(dock, { toJSON: { virtuals: true } });
|
|
|
schema.index({ id: 1 });
|
|
|
+schema.index({ room_id: 1 });
|
|
|
+schema.index({ start_time: 1 });
|
|
|
schema.index({ 'meta.createdAt': 1 });
|
|
|
schema.plugin(metaPlugin);
|
|
|
module.exports = app => {
|