Add cache for user agent/name

This commit is contained in:
2025-10-10 03:03:41 +07:00
parent 3128e3e9d9
commit ba3b0f6232
5 changed files with 1596 additions and 7 deletions

View File

@@ -99,6 +99,10 @@ public class ManagingDbContext : DbContext
entity.Property(e => e.AgentName).HasMaxLength(255);
entity.Property(e => e.AvatarUrl).HasMaxLength(500);
entity.Property(e => e.TelegramChannel).HasMaxLength(255);
// Create indexes for performance
entity.HasIndex(e => e.Name).IsUnique();
entity.HasIndex(e => e.AgentName);
});
// Configure GeneticRequest entity