using SqlSugar;
using System;

namespace YBDevice.Entity
{
    /// <summary>
    /// 家庭成员统计数据,按月统计,取每月的最高体重和身高
    /// </summary>
    [SugarTable("YB_FamilyReportData", TableDescription = "家庭成员统计数据,按月统计,取每月的最高体重和身高", IsDisabledUpdateAll = false, IsDisabledDelete = true)]
    public class YB_FamilyReportData
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public System.Int32 Id { get; set; }

        /// <summary>
        /// 家庭成员ID
        /// </summary>
        [SugarColumn(ColumnDescription = "家庭成员ID",IndexGroupNameList =new string[] { "index_familyid"})]
        public System.Int32 FamilyId { get; set; }

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

        /// <summary>
        /// 体重,KG
        /// </summary>
        [SugarColumn(ColumnDescription = "体重,KG", ColumnDataType = "decimal(18,2)")]
        public System.Decimal Weight { get; set; }

        /// <summary>
        /// 头围,CM
        /// </summary>
        [SugarColumn(ColumnDescription = "头围,CM", ColumnDataType = "decimal(18,2)")]
        public System.Decimal Head { get; set; }

        /// <summary>
        /// 月度最近体重的测量时间
        /// </summary>
        [SugarColumn(ColumnDescription = "月度最近体重的测量时间")]
        public DateTime? LastWeightTime { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        [SugarColumn(ColumnDescription = "设备类型")]
        public int DevType { get; set; }

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