aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Events/Types/EventRecord.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Events/Types/EventRecord.cs b/src/slskd/Events/Types/EventRecord.cs
index b5bc5bd0..8ca0ff4d 100644
--- a/src/slskd/Events/Types/EventRecord.cs
+++ b/src/slskd/Events/Types/EventRecord.cs
@@ -24,7 +24,10 @@ using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
+using Microsoft.EntityFrameworkCore;
+[Index(nameof(Timestamp))]
+[Index(nameof(Type))]
public record EventRecord
{
public DateTime Timestamp { get; init; } = DateTime.UtcNow;