using SqlSugar;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Myshipping.Core.Entity;
///
/// 在线用户表
///
[SugarTable("sys_online_user")]
[Description("在线用户表")]
public class OnlineUser : AutoIncrementEntity
{
///
/// 连接Id
///
public string ConnectionId { get; set; }
///
/// 用户Id
///
public long UserId { get; set; }
///
/// 账号
///
[Required, MaxLength(20)]
public string Account { get; set; }
///
/// 姓名
///
[MaxLength(20)]
public string Name { get; set; }
///
/// 最后连接时间
///
public DateTime LastTime { get; set; }
///
/// 最后登录IP
///
[MaxLength(20)]
public string LastLoginIp { get; set; }
///
/// 租户id
///
[SugarColumn(ColumnDescription = "租户id")]
public virtual long TenantId { get; set; }
}