Test Docker
This commit is contained in:
		| @@ -10,7 +10,11 @@ public class EleccionesDbContext(DbContextOptions<EleccionesDbContext> options) | ||||
|     public DbSet<AmbitoGeografico> AmbitosGeograficos { get; set; } | ||||
|     public DbSet<ResultadoVoto> ResultadosVotos { get; set; } | ||||
|     public DbSet<EstadoRecuento> EstadosRecuentos { get; set; } | ||||
|     // Podríamos añadir más tablas como CategoriaElectoral o ProyeccionBanca aquí | ||||
|     public DbSet<ProyeccionBanca> ProyeccionesBancas { get; set; } | ||||
|     public DbSet<Telegrama> Telegramas { get; set; } | ||||
|     public DbSet<ResumenVoto> ResumenesVotos { get; set; } | ||||
|     public DbSet<EstadoRecuentoGeneral> EstadosRecuentosGenerales { get; set; } | ||||
|     public DbSet<CategoriaElectoral> CategoriasElectorales { get; set; } | ||||
|  | ||||
|     protected override void OnModelCreating(ModelBuilder modelBuilder) | ||||
|     { | ||||
| @@ -27,5 +31,13 @@ public class EleccionesDbContext(DbContextOptions<EleccionesDbContext> options) | ||||
|             entity.Property(e => e.MesasTotalizadasPorcentaje).HasPrecision(5, 2); | ||||
|             entity.Property(e => e.ParticipacionPorcentaje).HasPrecision(5, 2); | ||||
|         }); | ||||
|         modelBuilder.Entity<ResumenVoto>() | ||||
|         .Property(e => e.VotosPorcentaje).HasPrecision(5, 2); | ||||
|  | ||||
|         modelBuilder.Entity<EstadoRecuentoGeneral>(entity => | ||||
|         { | ||||
|             entity.Property(e => e.MesasTotalizadasPorcentaje).HasPrecision(5, 2); | ||||
|             entity.Property(e => e.ParticipacionPorcentaje).HasPrecision(5, 2); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user