Skip to content

Commit

Permalink
Add QualificationId and AlertId to Event table (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Oct 30, 2024
1 parent 57dcfa8 commit 8a71697
Show file tree
Hide file tree
Showing 6 changed files with 3,261 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ public void Configure(EntityTypeBuilder<Event> builder)
builder.HasIndex(e => e.Payload).HasMethod("gin");
builder.HasIndex(e => e.Key).IsUnique().HasFilter("key is not null").HasDatabaseName(Event.KeyUniqueIndexName);
builder.HasIndex(e => new { e.PersonId, e.EventName }).HasFilter("person_id is not null");
builder.HasIndex(e => new { e.QualificationId, e.EventName }).HasFilter("qualification_id is not null");
builder.HasIndex(e => new { e.AlertId, e.EventName }).HasFilter("alert_id is not null");
}
}
Loading

0 comments on commit 8a71697

Please sign in to comment.