using SqlSugar;

namespace YBDevice.Entity
{
    /// <summary>
    /// 测量记录
    /// </summary>
    public class YB_Result
    {
        /// <summary>
        /// 测量记录
        /// </summary>
        public YB_Result()
        {
        }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public System.Int32 Id { get; set; }

        /// <summary>
        /// 体重,单位kg
        /// </summary>
        public System.Decimal Weight { get; set; }

        /// <summary>
        /// 身高,单位厘米
        /// </summary>
        public System.Decimal Height { get; set; }

        /// <summary>
        /// 阻抗,单位欧姆
        /// </summary>
        public System.Decimal Imp { get; set; }

        /// <summary>
        /// 类型,1-单阻抗,2-八电极
        /// </summary>
        public System.Int32 Type { get; set; }

        /// <summary>
        /// 认领状态,0-未认领,1-已认领,-1-未知状态
        /// </summary>
        public System.Int32 TaskStatus { get; set; }

        /// <summary>
        /// 认领时间
        /// </summary>
        public System.DateTime? TakeTime { get; set; }

        /// <summary>
        /// 粉丝ID,主要为了微信扫码使用
        /// </summary>
        public System.String FansId { get; set; }

        /// <summary>
        /// 公众号appid
        /// </summary>
        public System.String PublicId { get; set; }

        /// <summary>
        /// 订单ID
        /// </summary>
        public System.Guid OrderId { get; set; }

        /// <summary>
        /// 商户ID
        /// </summary>
        public System.Int32 BusinessId { get; set; }

        /// <summary>
        /// 记录唯一码,扫码的时候只能用一次
        /// </summary>
        public System.String VrCode { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        public System.Int32 EquId { get; set; }

        /// <summary>
        /// 机器码
        /// </summary>
        public System.String Ecode { get; set; }

        /// <summary>
        /// 家庭成员ID,为0则为自己
        /// </summary>
        public System.Int32 FamilyId { get; set; }

        /// <summary>
        /// 所属用户ID
        /// </summary>
        public System.Int32 UserId { get; set; }

        /// <summary>
        /// 测量时间
        /// </summary>
        public System.DateTime Createtime { get; set; }
    }
}
