28 lines
709 B
C#
28 lines
709 B
C#
using KLHZ.Trader.Core.Contracts.Messaging.Dtos.Intarfaces;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace KLHZ.Trader.Core.DataLayer.Entities.Prices
|
|
{
|
|
[Table("price_changes")]
|
|
public class PriceChange : INewPrice
|
|
{
|
|
[Column("id")]
|
|
public long Id { get; set; }
|
|
|
|
[Column("time")]
|
|
public DateTime Time { get; set; }
|
|
|
|
[Column("value")]
|
|
public decimal Value { get; set; }
|
|
|
|
[Column("figi")]
|
|
public required string Figi { get; set; }
|
|
|
|
[Column("ticker")]
|
|
public required string Ticker { get; set; }
|
|
|
|
[NotMapped]
|
|
public bool IsHistoricalData { get; set; }
|
|
}
|
|
}
|