Skip to content

Commit

Permalink
Index user by oid and keypadId
Browse files Browse the repository at this point in the history
  • Loading branch information
megastary committed Mar 11, 2024
1 parent 6447836 commit ddb2220
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const userSchema = new Schema({
oid: {
type: String,
required: true,
unique: true,
index: true,
},
displayName: {
type: String,
Expand All @@ -22,6 +24,7 @@ const userSchema = new Schema({
type: Number,
required: true,
maxlength: 5,
index: true,
},
admin: {
type: Boolean,
Expand Down

0 comments on commit ddb2220

Please sign in to comment.