| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  | // <auto-generated /> | 
					
						
							|  |  |  |  | using System; | 
					
						
							|  |  |  |  | using Elecciones.Database; | 
					
						
							|  |  |  |  | using Microsoft.EntityFrameworkCore; | 
					
						
							|  |  |  |  | using Microsoft.EntityFrameworkCore.Infrastructure; | 
					
						
							|  |  |  |  | using Microsoft.EntityFrameworkCore.Metadata; | 
					
						
							|  |  |  |  | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #nullable disable | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | namespace Elecciones.Database.Migrations | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     [DbContext(typeof(EleccionesDbContext))] | 
					
						
							|  |  |  |  |     partial class EleccionesDbContextModelSnapshot : ModelSnapshot | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         protected override void BuildModel(ModelBuilder modelBuilder) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  | #pragma warning disable 612, 618 | 
					
						
							|  |  |  |  |             modelBuilder | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |                 .UseCollation("Modern_Spanish_CI_AS") | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |                 .HasAnnotation("ProductVersion", "9.0.8") | 
					
						
							|  |  |  |  |                 .HasAnnotation("Relational:MaxIdentifierLength", 128); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |             SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.AdminUser", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<int>("Id") | 
					
						
							|  |  |  |  |                         .ValueGeneratedOnAdd() | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("PasswordHash") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("PasswordSalt") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("Username") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasMaxLength(100) | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(100)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasKey("Id"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("AdminUsers"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.AgrupacionPolitica", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<string>("Id") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(450)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |                     b.Property<string>("Color") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |                     b.Property<string>("IdTelegrama") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |                     b.Property<string>("LogoUrl") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |                     b.Property<string>("Nombre") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |                     b.Property<string>("NombreCorto") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int?>("OrdenDiputados") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int?>("OrdenSenadores") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |                     b.HasKey("Id"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("AgrupacionesPoliticas"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.AmbitoGeografico", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<int>("Id") | 
					
						
							|  |  |  |  |                         .ValueGeneratedOnAdd() | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("CircuitoId") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("DistritoId") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("EstablecimientoId") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("MesaId") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("MunicipioId") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("NivelId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("Nombre") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("SeccionId") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("SeccionProvincialId") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasKey("Id"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("AmbitosGeograficos"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.Bancada", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<int>("Id") | 
					
						
							|  |  |  |  |                         .ValueGeneratedOnAdd() | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("AgrupacionPoliticaId") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(450)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("Camara") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-30 11:31:45 -03:00
										 |  |  |  |                     b.Property<int>("NumeroBanca") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |                     b.HasKey("Id"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasIndex("AgrupacionPoliticaId"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("Bancadas"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.CategoriaElectoral", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<int>("Id") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("Nombre") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("Orden") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasKey("Id"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("CategoriasElectorales"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.Configuracion", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<string>("Clave") | 
					
						
							|  |  |  |  |                         .HasMaxLength(100) | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(100)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("Valor") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasMaxLength(100) | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(100)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasKey("Clave"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("Configuraciones"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.EstadoRecuento", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<int>("AmbitoGeograficoId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-23 11:01:54 -03:00
										 |  |  |  |                     b.Property<int>("CategoriaId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |                     b.Property<int>("CantidadElectores") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("CantidadVotantes") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<DateTime>("FechaTotalizacion") | 
					
						
							|  |  |  |  |                         .HasColumnType("datetime2"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("MesasEsperadas") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("MesasTotalizadas") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<decimal>("MesasTotalizadasPorcentaje") | 
					
						
							|  |  |  |  |                         .HasPrecision(5, 2) | 
					
						
							|  |  |  |  |                         .HasColumnType("decimal(5,2)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<decimal>("ParticipacionPorcentaje") | 
					
						
							|  |  |  |  |                         .HasPrecision(5, 2) | 
					
						
							|  |  |  |  |                         .HasColumnType("decimal(5,2)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<long>("VotosEnBlanco") | 
					
						
							|  |  |  |  |                         .HasColumnType("bigint"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-16 13:05:44 -03:00
										 |  |  |  |                     b.Property<decimal>("VotosEnBlancoPorcentaje") | 
					
						
							| 
									
										
										
										
											2025-08-17 20:08:38 -03:00
										 |  |  |  |                         .HasPrecision(18, 4) | 
					
						
							|  |  |  |  |                         .HasColumnType("decimal(18,4)"); | 
					
						
							| 
									
										
										
										
											2025-08-16 13:05:44 -03:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |                     b.Property<long>("VotosNulos") | 
					
						
							|  |  |  |  |                         .HasColumnType("bigint"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-16 13:05:44 -03:00
										 |  |  |  |                     b.Property<decimal>("VotosNulosPorcentaje") | 
					
						
							| 
									
										
										
										
											2025-08-17 20:08:38 -03:00
										 |  |  |  |                         .HasPrecision(18, 4) | 
					
						
							|  |  |  |  |                         .HasColumnType("decimal(18,4)"); | 
					
						
							| 
									
										
										
										
											2025-08-16 13:05:44 -03:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |                     b.Property<long>("VotosRecurridos") | 
					
						
							|  |  |  |  |                         .HasColumnType("bigint"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-16 13:05:44 -03:00
										 |  |  |  |                     b.Property<decimal>("VotosRecurridosPorcentaje") | 
					
						
							| 
									
										
										
										
											2025-08-17 20:08:38 -03:00
										 |  |  |  |                         .HasPrecision(18, 4) | 
					
						
							|  |  |  |  |                         .HasColumnType("decimal(18,4)"); | 
					
						
							| 
									
										
										
										
											2025-08-16 13:05:44 -03:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-23 11:01:54 -03:00
										 |  |  |  |                     b.HasKey("AmbitoGeograficoId", "CategoriaId"); | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("EstadosRecuentos"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.EstadoRecuentoGeneral", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<int>("AmbitoGeograficoId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-17 20:08:38 -03:00
										 |  |  |  |                     b.Property<int>("CategoriaId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |  |                     b.Property<int>("CantidadElectores") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("CantidadVotantes") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-23 13:19:35 -03:00
										 |  |  |  |                     b.Property<DateTime>("FechaTotalizacion") | 
					
						
							|  |  |  |  |                         .HasColumnType("datetime2"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |  |                     b.Property<int>("MesasEsperadas") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("MesasTotalizadas") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<decimal>("MesasTotalizadasPorcentaje") | 
					
						
							|  |  |  |  |                         .HasPrecision(5, 2) | 
					
						
							|  |  |  |  |                         .HasColumnType("decimal(5,2)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<decimal>("ParticipacionPorcentaje") | 
					
						
							|  |  |  |  |                         .HasPrecision(5, 2) | 
					
						
							|  |  |  |  |                         .HasColumnType("decimal(5,2)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-17 20:08:38 -03:00
										 |  |  |  |                     b.HasKey("AmbitoGeograficoId", "CategoriaId"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasIndex("CategoriaId"); | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("EstadosRecuentosGenerales"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.OcupanteBanca", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<int>("Id") | 
					
						
							|  |  |  |  |                         .ValueGeneratedOnAdd() | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("BancadaId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("FotoUrl") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("NombreOcupante") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("Periodo") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasKey("Id"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasIndex("BancadaId") | 
					
						
							|  |  |  |  |                         .IsUnique(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("OcupantesBancas"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.ProyeccionBanca", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<int>("Id") | 
					
						
							|  |  |  |  |                         .ValueGeneratedOnAdd() | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("AgrupacionPoliticaId") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(450)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("AmbitoGeograficoId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-23 12:27:27 -03:00
										 |  |  |  |                     b.Property<int>("CategoriaId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-23 12:54:57 -03:00
										 |  |  |  |                     b.Property<DateTime>("FechaTotalizacion") | 
					
						
							|  |  |  |  |                         .HasColumnType("datetime2"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |  |                     b.Property<int>("NroBancas") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasKey("Id"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasIndex("AgrupacionPoliticaId"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-23 12:27:27 -03:00
										 |  |  |  |                     b.HasIndex("AmbitoGeograficoId", "CategoriaId", "AgrupacionPoliticaId") | 
					
						
							|  |  |  |  |                         .IsUnique(); | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("ProyeccionesBancas"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.ResultadoVoto", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<long>("Id") | 
					
						
							|  |  |  |  |                         .ValueGeneratedOnAdd() | 
					
						
							|  |  |  |  |                         .HasColumnType("bigint"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id")); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("AgrupacionPoliticaId") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(450)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("AmbitoGeograficoId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<long>("CantidadVotos") | 
					
						
							|  |  |  |  |                         .HasColumnType("bigint"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-23 11:01:54 -03:00
										 |  |  |  |                     b.Property<int>("CategoriaId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-16 13:05:44 -03:00
										 |  |  |  |                     b.Property<decimal>("PorcentajeVotos") | 
					
						
							| 
									
										
										
										
											2025-08-17 20:08:38 -03:00
										 |  |  |  |                         .HasPrecision(18, 4) | 
					
						
							|  |  |  |  |                         .HasColumnType("decimal(18,4)"); | 
					
						
							| 
									
										
										
										
											2025-08-16 13:05:44 -03:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |                     b.HasKey("Id"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasIndex("AgrupacionPoliticaId"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-23 11:35:26 -03:00
										 |  |  |  |                     b.HasIndex("AmbitoGeograficoId", "CategoriaId", "AgrupacionPoliticaId") | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |                         .IsUnique(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("ResultadosVotos"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.ResumenVoto", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<int>("Id") | 
					
						
							|  |  |  |  |                         .ValueGeneratedOnAdd() | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("AgrupacionPoliticaId") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("AmbitoGeograficoId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<long>("Votos") | 
					
						
							|  |  |  |  |                         .HasColumnType("bigint"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<decimal>("VotosPorcentaje") | 
					
						
							|  |  |  |  |                         .HasPrecision(5, 2) | 
					
						
							|  |  |  |  |                         .HasColumnType("decimal(5,2)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasKey("Id"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("ResumenesVotos"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.Telegrama", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Property<string>("Id") | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(450)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<int>("AmbitoGeograficoId") | 
					
						
							|  |  |  |  |                         .HasColumnType("int"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<string>("ContenidoBase64") | 
					
						
							|  |  |  |  |                         .IsRequired() | 
					
						
							|  |  |  |  |                         .HasColumnType("nvarchar(max)"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<DateTime>("FechaEscaneo") | 
					
						
							|  |  |  |  |                         .HasColumnType("datetime2"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Property<DateTime>("FechaTotalizacion") | 
					
						
							|  |  |  |  |                         .HasColumnType("datetime2"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasKey("Id"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.ToTable("Telegramas"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.Bancada", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.HasOne("Elecciones.Database.Entities.AgrupacionPolitica", "AgrupacionPolitica") | 
					
						
							|  |  |  |  |                         .WithMany() | 
					
						
							|  |  |  |  |                         .HasForeignKey("AgrupacionPoliticaId"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Navigation("AgrupacionPolitica"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.EstadoRecuento", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.HasOne("Elecciones.Database.Entities.AmbitoGeografico", "AmbitoGeografico") | 
					
						
							|  |  |  |  |                         .WithMany() | 
					
						
							|  |  |  |  |                         .HasForeignKey("AmbitoGeograficoId") | 
					
						
							|  |  |  |  |                         .OnDelete(DeleteBehavior.Cascade) | 
					
						
							|  |  |  |  |                         .IsRequired(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Navigation("AmbitoGeografico"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-17 20:08:38 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.EstadoRecuentoGeneral", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.HasOne("Elecciones.Database.Entities.CategoriaElectoral", "CategoriaElectoral") | 
					
						
							|  |  |  |  |                         .WithMany() | 
					
						
							|  |  |  |  |                         .HasForeignKey("CategoriaId") | 
					
						
							|  |  |  |  |                         .OnDelete(DeleteBehavior.Cascade) | 
					
						
							|  |  |  |  |                         .IsRequired(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Navigation("CategoriaElectoral"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.OcupanteBanca", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.HasOne("Elecciones.Database.Entities.Bancada", "Bancada") | 
					
						
							|  |  |  |  |                         .WithOne("Ocupante") | 
					
						
							|  |  |  |  |                         .HasForeignKey("Elecciones.Database.Entities.OcupanteBanca", "BancadaId") | 
					
						
							|  |  |  |  |                         .OnDelete(DeleteBehavior.Cascade) | 
					
						
							|  |  |  |  |                         .IsRequired(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Navigation("Bancada"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.ProyeccionBanca", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.HasOne("Elecciones.Database.Entities.AgrupacionPolitica", "AgrupacionPolitica") | 
					
						
							|  |  |  |  |                         .WithMany() | 
					
						
							|  |  |  |  |                         .HasForeignKey("AgrupacionPoliticaId") | 
					
						
							|  |  |  |  |                         .OnDelete(DeleteBehavior.Cascade) | 
					
						
							|  |  |  |  |                         .IsRequired(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasOne("Elecciones.Database.Entities.AmbitoGeografico", "AmbitoGeografico") | 
					
						
							|  |  |  |  |                         .WithMany() | 
					
						
							|  |  |  |  |                         .HasForeignKey("AmbitoGeograficoId") | 
					
						
							|  |  |  |  |                         .OnDelete(DeleteBehavior.Cascade) | 
					
						
							|  |  |  |  |                         .IsRequired(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Navigation("AgrupacionPolitica"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Navigation("AmbitoGeografico"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.ResultadoVoto", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.HasOne("Elecciones.Database.Entities.AgrupacionPolitica", "AgrupacionPolitica") | 
					
						
							|  |  |  |  |                         .WithMany() | 
					
						
							|  |  |  |  |                         .HasForeignKey("AgrupacionPoliticaId") | 
					
						
							|  |  |  |  |                         .OnDelete(DeleteBehavior.Cascade) | 
					
						
							|  |  |  |  |                         .IsRequired(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.HasOne("Elecciones.Database.Entities.AmbitoGeografico", "AmbitoGeografico") | 
					
						
							|  |  |  |  |                         .WithMany() | 
					
						
							|  |  |  |  |                         .HasForeignKey("AmbitoGeograficoId") | 
					
						
							|  |  |  |  |                         .OnDelete(DeleteBehavior.Cascade) | 
					
						
							|  |  |  |  |                         .IsRequired(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Navigation("AgrupacionPolitica"); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                     b.Navigation("AmbitoGeografico"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							| 
									
										
										
										
											2025-08-29 09:54:22 -03:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |             modelBuilder.Entity("Elecciones.Database.Entities.Bancada", b => | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     b.Navigation("Ocupante"); | 
					
						
							|  |  |  |  |                 }); | 
					
						
							| 
									
										
										
										
											2025-08-14 13:12:16 -03:00
										 |  |  |  | #pragma warning restore 612, 618 | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | } |