using SqlSugar;

namespace Waste.Domain
{
    /// <summary>
    /// 设备表
    /// </summary>
    public class W_Device
    {
        /// <summary>
        /// 设备表
        /// </summary>
        public W_Device()
        {
        }

        private System.Guid _Id;
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public System.Guid Id { get { return this._Id; } set { this._Id = value; } }

        private System.String _FacEcode;
        /// <summary>
        /// 设备出厂编号
        /// </summary>
        public System.String FacEcode { get { return this._FacEcode; } set { this._FacEcode = value?.Trim(); } }

        private System.String _Ecode;
        /// <summary>
        /// 设备编号
        /// </summary>
        public System.String Ecode { get { return this._Ecode; } set { this._Ecode = value?.Trim(); } }

        private System.Int32 _DeviceType;
        /// <summary>
        /// 设备型号
        /// </summary>
        public System.Int32 DeviceType { get { return this._DeviceType; } set { this._DeviceType = value; } }

        private System.String _Name;
        /// <summary>
        /// 设备名称
        /// </summary>
        public System.String Name { get { return this._Name; } set { this._Name = value?.Trim(); } }

        private System.Guid _Businessid;
        /// <summary>
        /// 所属商户
        /// </summary>
        public System.Guid Businessid { get { return this._Businessid; } set { this._Businessid = value; } }

        private System.Int32 _NetType;
        /// <summary>
        /// 联网方式,1-4G,2-Wifi
        /// </summary>
        public System.Int32 NetType { get { return this._NetType; } set { this._NetType = value; } }

        private System.String _Province;
        /// <summary>
        /// 
        /// </summary>
        public System.String Province { get { return this._Province; } set { this._Province = value?.Trim(); } }

        private System.String _City;
        /// <summary>
        /// 城市
        /// </summary>
        public System.String City { get { return this._City; } set { this._City = value?.Trim(); } }

        private System.String _Area;
        /// <summary>
        /// 区县
        /// </summary>
        public System.String Area { get { return this._Area; } set { this._Area = value?.Trim(); } }

        private System.String _Address;
        /// <summary>
        /// 详细地址
        /// </summary>
        public System.String Address { get { return this._Address; } set { this._Address = value?.Trim(); } }

        private System.String _Remark;
        /// <summary>
        /// 备注
        /// </summary>
        public System.String Remark { get { return this._Remark; } set { this._Remark = value?.Trim(); } }

        private System.DateTime? _InstallTime;
        /// <summary>
        /// 安装到小区的时间
        /// </summary>
        public System.DateTime? InstallTime { get { return this._InstallTime; } set { this._InstallTime = value; } }

        private System.DateTime? _ActiveTime;
        /// <summary>
        /// 激活时间
        /// </summary>
        public System.DateTime? ActiveTime { get { return this._ActiveTime; } set { this._ActiveTime = value; } }

        private System.Int32 _Status;
        /// <summary>
        /// 设备状态,0-异常,1-正常
        /// </summary>
        public System.Int32 Status { get { return this._Status; } set { this._Status = value; } }

        private System.DateTime? _LastHeartTime;
        /// <summary>
        /// 最近使用时间
        /// </summary>
        public System.DateTime? LastHeartTime { get { return this._LastHeartTime; } set { this._LastHeartTime = value; } }

        private System.DateTime _CreateTime;
        /// <summary>
        /// 注册时间
        /// </summary>
        public System.DateTime CreateTime { get { return this._CreateTime; } set { this._CreateTime = value; } }

        private System.Decimal _Tare;
        /// <summary>
        /// 皮重,KG
        /// </summary>
        public System.Decimal Tare { get { return this._Tare; } set { this._Tare = value; } }
    }
}
