using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YBDevice.Entity.DataModel.ThirdOpen
{
    /// <summary>
    /// 家庭成员数据
    /// </summary>
    [SugarTable("T_FamilyData", TableDescription = "家庭成员数据", IsDisabledUpdateAll = false, IsDisabledDelete = true)]
    public class T_FamilyData
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 身高值,CM
        /// </summary>
        [SugarColumn(ColumnDescription = "身高值,CM", ColumnDataType = "decimal(18,2)")]
        public decimal Height { get; set; }
        /// <summary>
        /// 体重,CM
        /// </summary>
        [SugarColumn(ColumnDescription = "体重,CM", ColumnDataType = "decimal(18,2)")]
        public decimal Weight { get; set; }
        /// <summary>
        /// 性别,1-男,2-女
        /// </summary>
        [SugarColumn(ColumnDescription = "性别,1-男,2-女")]
        public int Sex { get; set; }
        /// <summary>
        /// 出生年月
        /// </summary>
        [SugarColumn(ColumnDescription = "出生年月", IsNullable = true)]
        public DateTime? Brithday { get; set; }

        /// <summary>
        /// 最近记录ID
        /// </summary>
        [SugarColumn(ColumnDescription = "最近记录ID", IsNullable = true)]
        public Guid? LastResultId { get; set; }

        /// <summary>
        /// 最近记录时间
        /// </summary>
        [SugarColumn(ColumnDescription = "最近记录时间", IsNullable = true)]
        public DateTime? LastResultTime { get; set; }
    }
}
