using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Atomx.Common.Entities
{
    /// <summary>
    /// 价格走势
    /// </summary>
    [Table("PriceTrends")]
    public class PriceTrend
    {
        /// <summary>
        /// 数据ID
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Key]
        public long Id { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public int Date { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 当前价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 最低价格
        /// </summary>
        public decimal LowestPrice { get; set; }

        /// <summary>
        /// 最高价格
        /// </summary>
        public decimal HighestPrice { get; set; }

        /// <summary>
        /// 当前零售价格
        /// </summary>
        public decimal RetailPrice { get; set; }

        /// <summary>
        /// 最低零售价格
        /// </summary>
        public decimal LowestRetailPrice { get; set; }

        /// <summary>
        /// 最高零售价格
        /// </summary>
        public decimal HighestRetailPrice { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column(TypeName = "timestamptz")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Column(TypeName = "timestamptz")]
        public DateTime? UpdateTime { get; set; }

    }
}
