using SqlSugar;

namespace QYZH.InteractiveMagazine.Models.Entity
{
    /// <summary>
    /// 微信用户表 — 存储微信身份信息和基本资料
    /// 一个 WxUser 可关联多个 Users（多角色/多用户）
    /// </summary>
    [SugarTable("WxUser")]
    public partial class WxUser : SqlSugarBaseEntity
    {
        public WxUser() { }

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

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

        /// <summary>
        /// Desc:微信OpenId
        /// Default:
        /// Nullable:False
        /// </summary>
        public string OpenId { get; set; }

        /// <summary>
        /// Desc:微信UnionId
        /// Default:
        /// Nullable:True
        /// </summary>
        public string UnionId { get; set; }

        /// <summary>
        /// Desc:手机号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string Phone { get; set; }
    }
}
