using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace New_College.Model.Models
{
///
/// 日志记录
///
public class OperateLog : RootEntity
{
///
/// 区域名
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Area { get; set; }
///
/// 区域控制器名
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Controller { get; set; }
///
/// Action名称
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Action { get; set; }
///
/// IP地址
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string IPAddress { get; set; }
///
/// 描述
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Description { get; set; }
///
/// 登录时间
///
[SugarColumn(IsNullable = true)]
public DateTime? LogTime { get; set; }
///
/// 登录名称
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string LoginName { get; set; }
///
/// 用户ID
///
public int UserId { get; set; }
[SugarColumn(IsIgnore = true)]
public virtual sysUserInfo User { get; set; }
}
}