using SqlSugar;

namespace YBDevice.Entity
{
    /// <summary>
    /// 注册用户管理的微信数据
    /// </summary>
    [SugarTable("YB_UserWX", TableDescription = "注册用户管理的微信数据", IsDisabledUpdateAll = false, IsDisabledDelete = true)]
    public class YB_UserWX
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public System.Int32 Id { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [SugarColumn(ColumnDescription = "用户ID")]
        public System.Int32 UserId { get; set; }

        /// <summary>
        /// 用户openid
        /// </summary>
        [SugarColumn(ColumnDescription = "用户openid", ColumnDataType = "varchar(50)",IndexGroupNameList =new string[] { "index_openid"})]
        public System.String openid { get; set; }

        /// <summary>
        /// 用户unionid
        /// </summary>
        [SugarColumn(ColumnDescription = "用户unionid", ColumnDataType = "varchar(50)")]
        public System.String unionid { get; set; }
        /// <summary>
        /// 是否退出登录，1-否,0-是
        /// </summary>
        [SugarColumn(ColumnDescription = "是否退出登录，1-否,0-是", IsNullable =true,DefaultValue ="1", IndexGroupNameList = new string[] { "index_isoutlogin" })]
        public int IsOutLogin { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间")]
        public System.DateTime createtime { get; set; }
    }
}
