From 848e2d16c0ec04d15b287b4c29ed05129fed7b15 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sat, 22 Aug 2020 00:07:37 +0200 Subject: [PATCH] create index over booking uuid --- db/booking.js | 1 + 1 file changed, 1 insertion(+) diff --git a/db/booking.js b/db/booking.js index 0d716e6..0551743 100644 --- a/db/booking.js +++ b/db/booking.js @@ -9,6 +9,7 @@ const BookingSchema = new mongoose.Schema( uuid: { type: String, default: uuidv4, + index: true, }, booker: { type: mongoose.Schema.Types.ObjectId,