using System;
using System.Collections.Generic;

namespace HoneyBox.Model.Entities;

/// <summary>
/// 用户账户表，存储用户登录令牌和IP信息
/// </summary>
public partial class UserAccount
{
    /// <summary>
    /// 主键ID
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 用户ID
    /// </summary>
    public int UserId { get; set; }

    /// <summary>
    /// 账户令牌
    /// </summary>
    public string AccountToken { get; set; } = null!;

    /// <summary>
    /// 令牌编号
    /// </summary>
    public string TokenNum { get; set; } = null!;

    /// <summary>
    /// 令牌时间
    /// </summary>
    public DateTime? TokenTime { get; set; }

    /// <summary>
    /// 最后登录时间
    /// </summary>
    public DateTime? LastLoginTime { get; set; }

    /// <summary>
    /// 最后登录IP
    /// </summary>
    public string LastLoginIp { get; set; } = null!;

    /// <summary>
    /// 备用登录IP
    /// </summary>
    public string? LastLoginIp1 { get; set; }

    /// <summary>
    /// IP地区编码
    /// </summary>
    public string? IpAdcode { get; set; }

    /// <summary>
    /// IP省份
    /// </summary>
    public string? IpProvince { get; set; }

    /// <summary>
    /// IP城市
    /// </summary>
    public string? IpCity { get; set; }
}
