create index over booking uuid

This commit is contained in:
Thomas Ruoff
2020-08-22 00:07:37 +02:00
parent 0bcf50fa14
commit 848e2d16c0

View File

@@ -9,6 +9,7 @@ const BookingSchema = new mongoose.Schema(
uuid: {
type: String,
default: uuidv4,
index: true,
},
booker: {
type: mongoose.Schema.Types.ObjectId,