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