using SqlSugar;
using QYZH.InteractiveMagazine.Models.Enum;

namespace QYZH.InteractiveMagazine.Models.Entity
{
    ///<summary>
    ///用户表 — 游戏/角色数据，关联 WxUser
    ///</summary>
    [SugarTable("Users")]
    public partial class Users : SqlSugarBaseEntity
    {
        /// <summary>
        /// Desc:关联微信用户Id
        /// Default:
        /// Nullable:False
        /// </summary>
        public long WxUserId { get; set; }

        /// <summary>
        /// Desc:昵称
        /// Default:
        /// Nullable:True
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Desc:当前成长值
        /// Default:0
        /// Nullable:False
        /// </summary>
        public int GrowthPoints { get; set; }

        /// <summary>
        /// Desc:头像地址
        /// Default:
        /// Nullable:True
        /// </summary>
        public string AvatarUrl { get; set; }

        /// <summary>
        /// Desc:积分余额
        /// Default:0
        /// Nullable:False
        /// </summary>
        public int Points { get; set; }

        /// <summary>
        /// Desc:用户类型: Normal, VIP
        /// Default:Normal
        /// Nullable:False
        /// </summary>
        public UsersTypeEnum Type { get; set; }

        /// <summary>
        /// Desc:是否上次在线用户
        /// Default:0
        /// Nullable:False
        /// </summary>
        public bool IsLastOnline { get; set; }

        /// <summary>
        /// Desc:用户作答信息上传地址
        /// Default:
        /// Nullable:False
        /// </summary>
        public string UploadDomain { get; set; } = string.Empty;
    }
}
