feat(Assets): update asset services and background workers
This commit is contained in:
@@ -22,6 +22,7 @@ public class AssetsDbContext : DbContext
|
||||
modelBuilder.Entity<AssetEntity>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new {e.Isin, e.InstrumentCategory});
|
||||
entity.HasIndex(e => e.LastUpdatedAt);
|
||||
|
||||
entity.HasDiscriminator<string>("AssetType")
|
||||
.HasValue<StockEntity>("Stock")
|
||||
@@ -76,4 +77,4 @@ public class AssetsDbContext : DbContext
|
||||
.HasMany(a => a.Tags)
|
||||
.WithMany(t => t.Assets);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user