aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-09-02 17:50:39 -0500
committerJP Dillingham <jp@dillingham.me>2024-09-02 17:50:39 -0500
commit4368231d4487c7d0ec85572bf7f1a9343e1d0e83 (patch)
treea9df6e454507778dd89f5f8c9ba63c725909b467 /src
parent59de4b493724b6c863c0666f56524398dc6a9594 (diff)
downloadslskd-4368231d4487c7d0ec85572bf7f1a9343e1d0e83.tar.gz
add indexes
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;