Add currency inflation.

This commit is contained in:
2020-06-10 20:59:55 +01:00
parent ecc758d90d
commit ae3d6a2502
6 changed files with 4393 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ namespace Marechai.Database.Models
public virtual DbSet<StorageByOwnedMachine> StorageByOwnedMachine { get; set; }
public virtual DbSet<Audit> Audit { get; set; }
public virtual DbSet<Iso4217> Iso4217 { get; set; }
public virtual DbSet<CurrencyInflation> CurrenciesInflation { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
@@ -1559,6 +1560,11 @@ namespace Marechai.Database.Models
entity.HasIndex(d => d.Numeric);
entity.HasIndex(d => d.Withdrawn);
});
modelBuilder.Entity<CurrencyInflation>(entity =>
{
entity.HasIndex(d => d.Year);
});
}
}
}