From 4368231d4487c7d0ec85572bf7f1a9343e1d0e83 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 2 Sep 2024 17:50:39 -0500 Subject: add indexes --- src/slskd/Events/Types/EventRecord.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3