using SqlSugar;

namespace Waste.Domain
{
    /// <summary>
    /// 账户表
    /// </summary>
    public class W_Account
    {
        /// <summary>
        /// 账户表
        /// </summary>
        public W_Account()
        {
        }

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

        private System.String _UserName;
        /// <summary>
        /// 账户
        /// </summary>
        public System.String UserName { get { return this._UserName; } set { this._UserName = value?.Trim(); } }

        private System.String _RealName;
        /// <summary>
        /// 昵称
        /// </summary>
        public System.String RealName { get { return this._RealName; } set { this._RealName = value?.Trim(); } }

        private System.String _Phone;
        /// <summary>
        /// 手机号
        /// </summary>
        public System.String Phone { get { return this._Phone; } set { this._Phone = value?.Trim(); } }

        private System.String _Password;
        /// <summary>
        /// 密码
        /// </summary>
        public System.String Password { get { return this._Password; } set { this._Password = value?.Trim(); } }

        private System.String _Secret;
        /// <summary>
        /// 密钥
        /// </summary>
        public System.String Secret { get { return this._Secret; } set { this._Secret = value?.Trim(); } }

        private System.Guid _RoleId;
        /// <summary>
        /// 角色ID
        /// </summary>
        public System.Guid RoleId { get { return this._RoleId; } set { this._RoleId = value; } }

        private System.Int32 _AccountType;
        /// <summary>
        /// 账户类型
        /// </summary>
        public System.Int32 AccountType { get { return this._AccountType; } set { this._AccountType = value; } }

        private System.Guid _BusinessId;
        /// <summary>
        /// 客户ID
        /// </summary>
        public System.Guid BusinessId { get { return this._BusinessId; } set { this._BusinessId = value; } }

        private System.Int32 _Status;
        /// <summary>
        /// 状态,0-禁用,1-启用
        /// </summary>
        public System.Int32 Status { get { return this._Status; } set { this._Status = value; } }

        private System.String _LastVisitIP;
        /// <summary>
        /// 最近访问IP
        /// </summary>
        public System.String LastVisitIP { get { return this._LastVisitIP; } set { this._LastVisitIP = value?.Trim(); } }

        private System.DateTime? _LastVisitTime;
        /// <summary>
        /// 最近访问时间
        /// </summary>
        public System.DateTime? LastVisitTime { get { return this._LastVisitTime; } set { this._LastVisitTime = value; } }

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