mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
create index over booking uuid
This commit is contained in:
@@ -9,6 +9,7 @@ const BookingSchema = new mongoose.Schema(
|
|||||||
uuid: {
|
uuid: {
|
||||||
type: String,
|
type: String,
|
||||||
default: uuidv4,
|
default: uuidv4,
|
||||||
|
index: true,
|
||||||
},
|
},
|
||||||
booker: {
|
booker: {
|
||||||
type: mongoose.Schema.Types.ObjectId,
|
type: mongoose.Schema.Types.ObjectId,
|
||||||
|
|||||||
Reference in New Issue
Block a user