using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Atomx.Common.Entities { /// /// 价格走势 /// [Table("PriceTrends")] public class PriceTrend { /// /// 数据ID /// [DatabaseGenerated(DatabaseGeneratedOption.None)] [Key] public long Id { get; set; } /// /// 日期 /// public int Date { get; set; } /// /// 类型 /// public int Type { get; set; } /// /// 当前价格 /// public decimal Price { get; set; } /// /// 最低价格 /// public decimal LowestPrice { get; set; } /// /// 最高价格 /// public decimal HighestPrice { get; set; } /// /// 当前零售价格 /// public decimal RetailPrice { get; set; } /// /// 最低零售价格 /// public decimal LowestRetailPrice { get; set; } /// /// 最高零售价格 /// public decimal HighestRetailPrice { get; set; } /// /// 创建时间 /// [Column(TypeName = "timestamptz")] public DateTime CreateTime { get; set; } /// /// 更新时间 /// [Column(TypeName = "timestamptz")] public DateTime? UpdateTime { get; set; } } }