Skip to content

Commit 2f76d59

Browse files
committed
Merge branch 'mongoose' of https://github.com/austenstone/github-value into mongoose
2 parents c35641a + 3e3fe39 commit 2f76d59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/src/database.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ class Database {
245245
seatsSchema.index({ org: 1, createdAt: 1 });
246246
seatsSchema.index({ assignee: 1, last_activity_at: 1 });
247247
seatsSchema.index({ last_activity_at: 1, createdAt: 1 });
248+
seatsSchema.index({ team: 1, member: 1 }, { unique: true });
249+
seatsSchema.index({ createdAt: 1 });
250+
seatsSchema.index({ queryAt: 1 });
248251

249252
mongoose.model('Seats', seatsSchema);
250253

0 commit comments

Comments
 (0)