feat(fundamentals): multi-ticker DB caching, parallel html scraper, and frontend mappings
This commit is contained in:
@@ -67,13 +67,16 @@ public class FundamentalsDbContext : DbContext, ISettingsDbContext
|
||||
|
||||
modelBuilder.Entity<FundamentalDataEntity>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Isin);
|
||||
entity.HasKey(e => e.Id);
|
||||
|
||||
entity.OwnsOne(e => e.Ticker, t =>
|
||||
{
|
||||
t.Property(p => p.Ticker).HasColumnName("Ticker").HasDefaultValue(string.Empty);
|
||||
t.Property(p => p.Exchange).HasColumnName("TickerExchange").HasDefaultValue(string.Empty);
|
||||
t.HasIndex(p => p.Ticker);
|
||||
});
|
||||
|
||||
entity.HasIndex(e => new { e.AssetDataIsin });
|
||||
});
|
||||
|
||||
modelBuilder.Entity<KeyExecutiveEntity>(entity =>
|
||||
|
||||
Reference in New Issue
Block a user