using SqlSugar;

namespace YBDevice.Entity
{
    /// <summary>
    /// 家庭成员数据,针对全设备类型
    /// </summary>
    [SugarTable("YB_FamilyData", TableDescription = "家庭成员数据,针对全设备类型", IsDisabledUpdateAll = false, IsDisabledDelete = true)]
    public class YB_FamilyData
    {

        /// <summary>
        /// 家庭成员ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public System.Int32 FamilyId { get; set; }

        /// <summary>
        /// 爸爸身高
        /// </summary>
        [SugarColumn(ColumnDescription = "爸爸身高", ColumnDataType = "decimal(10,2)")]
        public System.Decimal DadHeight { get; set; }

        /// <summary>
        /// 妈妈身高
        /// </summary>
        [SugarColumn(ColumnDescription = "妈妈身高", ColumnDataType = "decimal(10,2)")]
        public System.Decimal MomHeight { get; set; }

        /// <summary>
        /// 成年之后的身高预测
        /// </summary>
        [SugarColumn(ColumnDescription = "成年之后的身高预测", ColumnDataType = "decimal(10,2)")]
        public System.Decimal AdultHeight { get; set; }

        /// <summary>
        /// 半年前的身高
        /// </summary>
        [SugarColumn(ColumnDescription = "半年前的身高", ColumnDataType = "decimal(10,2)")]
        public System.Decimal HalfYearHeight { get; set; }

        /// <summary>
        /// 一年前的身高
        /// </summary>
        [SugarColumn(ColumnDescription = "一年前的身高", ColumnDataType = "decimal(10,2)")]
        public System.Decimal YearHeight { get; set; }

        /// <summary>
        /// 累计测量次数
        /// </summary>
        [SugarColumn(ColumnDescription = "累计测量次数")]
        public System.Int32 TotalCount { get; set; }

        /// <summary>
        /// 今日测量次数
        /// </summary>
        [SugarColumn(ColumnDescription = "今日测量次数")]
        public System.Int32 TodayCount { get; set; }

        /// <summary>
        /// 第一次测量身高
        /// </summary>
        [SugarColumn(ColumnDescription = "第一次测量身高", ColumnDataType = "decimal(10,2)")]
        public System.Decimal FirstHeight { get; set; }

        /// <summary>
        /// 第一次测量的体重
        /// </summary>
        [SugarColumn(ColumnDescription = "第一次测量的体重", ColumnDataType = "decimal(18,2)")]
        public System.Decimal FirstWeight { get; set; }

        /// <summary>
        /// 最近一次测量体重
        /// </summary>
        [SugarColumn(ColumnDescription = "最近一次测量体重", ColumnDataType = "decimal(18,2)")]
        public System.Decimal LastWeight { get; set; }

        /// <summary>
        /// 最近一次身高
        /// </summary>
        [SugarColumn(ColumnDescription = "最近一次身高", ColumnDataType = "decimal(10,2)")]
        public System.Decimal LastHeight { get; set; }
        /// <summary>
        /// 最近一次头围
        /// </summary>
        [SugarColumn(ColumnDescription = "最近一次头围", ColumnDataType = "decimal(10,2)",IsNullable =true)]
        public System.Decimal LastHead { get; set; }
        /// <summary>
        /// 最近一次体重测量时间
        /// </summary>
        [SugarColumn(ColumnDescription = "最近一次体重测量时间", IsNullable = true)]
        public System.DateTime? LastResultTime { get; set; }

        /// <summary>
        /// 最近一次身高测量时间
        /// </summary>
        [SugarColumn(ColumnDescription = "最近一次身高测量时间", IsNullable = true)]
        public System.DateTime? LastResultHeightTime { get; set; }


        /// <summary>
        /// 第一次测量时间
        /// </summary>
        [SugarColumn(ColumnDescription = "第一次测量时间", IsNullable = true)]
        public System.DateTime? FirstResultTime { get; set; }

        /// <summary>
        /// 较上次的体重变化,上一次减去本次
        /// </summary>
        [SugarColumn(ColumnDescription = "较上次的体重变化,上一次减去本次", ColumnDataType = "decimal(18,2)")]
        public System.Decimal LastTimeWeight { get; set; }

        /// <summary>
        /// 较上次的身高变化,上次减去本次
        /// </summary>
        [SugarColumn(ColumnDescription = "较上次的身高变化,上次减去本次", ColumnDataType = "decimal(10,2)")]
        public System.Decimal LastTimeHeight { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "编码")]
        public System.DateTime CreateTime { get; set; }
    }
}
