Add cache for user agent/name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user