namespace SafeCampus.System;
///
/// 访问日志表
///
[SugarTable("sys_log_visit_{year}{month}{day}", TableDescription = "访问日志表")]
[SplitTable(SplitType.Year)]//按年分表 (自带分表支持 年、季、月、周、日)
[Tenant(SqlSugarConst.DB_DEFAULT)]
[IgnoreInitTable]
public class SysLogVisit : BaseEntity
{
///
/// 日志分类
///
[SugarColumn(ColumnName = "Category", ColumnDescription = "日志分类", Length = 200)]
public string Category { get; set; }
///
/// 日志名称
///
[SugarColumn(ColumnName = "Name", ColumnDescription = "日志名称", Length = 200)]
public string Name { get; set; }
///
/// 执行状态
///
[SugarColumn(ColumnName = "ExeStatus", ColumnDescription = "执行状态", Length = 200)]
public string ExeStatus { get; set; }
///
/// 操作ip
///
[SugarColumn(ColumnName = "OpIp", ColumnDescription = "操作ip", Length = 200)]
public string OpIp { get; set; }
///
/// 操作地址
///
[SugarColumn(ColumnName = "OpAddress", ColumnDescription = "操作地址", Length = 200)]
public string OpAddress { get; set; }
///
/// 操作浏览器
///
[SugarColumn(ColumnName = "OpBrowser", ColumnDescription = "操作浏览器", Length = 200)]
public string OpBrowser { get; set; }
///
/// 操作系统
///
[SugarColumn(ColumnName = "OpOs", ColumnDescription = "操作系统", Length = 200)]
public string OpOs { get; set; }
///
/// 操作时间
///
[SugarColumn(ColumnName = "OpTime", ColumnDescription = "操作时间")]
[SplitField]//分表字段 在插入的时候会根据这个字段插入哪个表,在更新删除的时候用这个字段找出相关表
public DateTime OpTime { get; set; }
///
/// 操作人姓名
///
[SugarColumn(ColumnName = "OpUser", ColumnDescription = "操作人姓名", Length = 200, IsNullable = true)]
public string OpUser { get; set; }
///
/// 操作人姓名
///
[SugarColumn(ColumnName = "OpAccount", ColumnDescription = "操作人账号", Length = 200, IsNullable = true)]
public string OpAccount { get; set; }
}