feat: Define data models and set up DB connection with Dapper
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
namespace Mercados.Core;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
14
src/Mercados.Core/Entities/CotizacionBolsa.cs
Normal file
14
src/Mercados.Core/Entities/CotizacionBolsa.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Mercados.Core.Entities
|
||||
{
|
||||
public class CotizacionBolsa
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Ticker { get; set; } = string.Empty; // "AAPL", "GGAL.BA", etc.
|
||||
public string Mercado { get; set; } = string.Empty; // "EEUU" o "Local"
|
||||
public decimal PrecioActual { get; set; }
|
||||
public decimal Apertura { get; set; }
|
||||
public decimal CierreAnterior { get; set; }
|
||||
public decimal PorcentajeCambio { get; set; }
|
||||
public DateTime FechaRegistro { get; set; }
|
||||
}
|
||||
}
|
||||
18
src/Mercados.Core/Entities/CotizacionGanado.cs
Normal file
18
src/Mercados.Core/Entities/CotizacionGanado.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Mercados.Core.Entities
|
||||
{
|
||||
public class CotizacionGanado
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Categoria { get; set; } = string.Empty;
|
||||
public string Especificaciones { get; set; } = string.Empty;
|
||||
public decimal Maximo { get; set; }
|
||||
public decimal Minimo { get; set; }
|
||||
public decimal Promedio { get; set; }
|
||||
public decimal Mediano { get; set; }
|
||||
public int Cabezas { get; set; }
|
||||
public int KilosTotales { get; set; }
|
||||
public int KilosPorCabeza { get; set; }
|
||||
public decimal ImporteTotal { get; set; }
|
||||
public DateTime FechaRegistro { get; set; }
|
||||
}
|
||||
}
|
||||
12
src/Mercados.Core/Entities/CotizacionGrano.cs
Normal file
12
src/Mercados.Core/Entities/CotizacionGrano.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Mercados.Core.Entities
|
||||
{
|
||||
public class CotizacionGrano
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Nombre { get; set; } = string.Empty; // "Soja", "Trigo", etc.
|
||||
public decimal Precio { get; set; }
|
||||
public decimal VariacionPrecio { get; set; }
|
||||
public DateTime FechaOperacion { get; set; }
|
||||
public DateTime FechaRegistro { get; set; }
|
||||
}
|
||||
}
|
||||
10
src/Mercados.Core/Entities/FuenteDato.cs
Normal file
10
src/Mercados.Core/Entities/FuenteDato.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Mercados.Core.Entities
|
||||
{
|
||||
public class FuenteDato
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Nombre { get; set; } = string.Empty; // "BCR", "Finnhub", "YahooFinance", "MercadoAgroganadero"
|
||||
public DateTime UltimaEjecucionExitosa { get; set; }
|
||||
public string? Url { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user