using TakeoutSaaS.Shared.Abstractions.Entities;

namespace TakeoutSaaS.Domain.Identity.Entities;

/// <summary>
/// 小程序用户实体。
/// </summary>
public sealed class MiniUser : MultiTenantEntityBase
{
    /// <summary>
    /// 微信 OpenId。
    /// </summary>
    public string OpenId { get; set; } = string.Empty;

    /// <summary>
    /// 微信 UnionId，可能为空。
    /// </summary>
    public string? UnionId { get; set; }

    /// <summary>
    /// 昵称。
    /// </summary>
    public string Nickname { get; set; } = string.Empty;

    /// <summary>
    /// 头像地址。
    /// </summary>
    public string? Avatar { get; set; }
}
