Feat Widgets

This commit is contained in:
2025-09-01 14:04:40 -03:00
parent 608ae655be
commit 12860f2406
30 changed files with 1904 additions and 247 deletions

View File

@@ -19,6 +19,7 @@ public class EleccionesDbContext(DbContextOptions<EleccionesDbContext> options)
public DbSet<Configuracion> Configuraciones { get; set; }
public DbSet<Bancada> Bancadas { get; set; }
public DbSet<OcupanteBanca> OcupantesBancas { get; set; }
public DbSet<LogoAgrupacionCategoria> LogosAgrupacionesCategorias { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
@@ -75,5 +76,9 @@ public class EleccionesDbContext(DbContextOptions<EleccionesDbContext> options)
// Opcional: puede definir un índice
entity.HasIndex(o => o.BancadaId).IsUnique();
});
modelBuilder.Entity<LogoAgrupacionCategoria>(entity =>
{
entity.HasIndex(l => new { l.AgrupacionPoliticaId, l.CategoriaId }).IsUnique();
});
}
}