feat: Diseño del esquema de BD y configuración de Entity Framework Core
This commit is contained in:
		| @@ -0,0 +1,24 @@ | ||||
| // src/Elecciones.Database/Entities/EstadoRecuento.cs | ||||
| using System.ComponentModel.DataAnnotations.Schema; | ||||
| using System.ComponentModel.DataAnnotations; | ||||
|  | ||||
| namespace Elecciones.Database.Entities; | ||||
|  | ||||
| public class EstadoRecuento | ||||
| { | ||||
|     [Key] | ||||
|     public int AmbitoGeograficoId { get; set; } | ||||
|     [ForeignKey("AmbitoGeograficoId")] | ||||
|     public AmbitoGeografico AmbitoGeografico { get; set; } = null!; | ||||
|  | ||||
|     public DateTime FechaTotalizacion { get; set; } | ||||
|     public int MesasEsperadas { get; set; } | ||||
|     public int MesasTotalizadas { get; set; } | ||||
|     public decimal MesasTotalizadasPorcentaje { get; set; } | ||||
|     public int CantidadElectores { get; set; } | ||||
|     public int CantidadVotantes { get; set; } | ||||
|     public decimal ParticipacionPorcentaje { get; set; } | ||||
|     public long VotosNulos { get; set; } | ||||
|     public long VotosEnBlanco { get; set; } | ||||
|     public long VotosRecurridos { get; set; } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user