using SqlSugar;

namespace YBDevice.Entity
{
    /// <summary>
    /// 测量记录扩展表
    /// </summary>
    public class YB_ResultExt
    {
        /// <summary>
        /// 测量记录扩展表
        /// </summary>
        public YB_ResultExt()
        {
        }

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

        /// <summary>
        /// 称重记录ID
        /// </summary>
        public System.Int32 ResultId { get; set; }

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

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

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

        /// <summary>
        /// 阻抗值
        /// </summary>
        public System.Decimal Imp { get; set; }

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

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

        /// <summary>
        /// 设备序列号
        /// </summary>
        public System.String FacEcode { get; set; }

        /// <summary>
        /// 来源,1-蓝牙传输,2-手动记录,3-扫码记录
        /// </summary>
        public System.Int32 SourceType { get; set; }

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

        /// <summary>
        /// 所属的公众号/小程序
        /// </summary>
        public System.String PublicId { get; set; }

        /// <summary>
        /// 扫码时使用的用户唯一标识
        /// </summary>
        public System.String FansId { get; set; }

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

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

        /// <summary>
        /// 创建时间
        /// </summary>
        public System.DateTime CreateTime { get; set; }
    }
}
