using SqlSugar;
using System;
namespace Tiobon.Core.Model.Models
{
///
/// 用户团队表
///
[SugarTable("GblLogAudit", TableDescription = "日志审计")]
public class GblLogAudit
{
///
///ID
///
[SugarColumn(ColumnDescription = "ID", IsNullable = false, IsPrimaryKey = true, IsIdentity = false)]
public long Id { get; set; }
///
///HttpContext.TraceIdentifier 事件链路ID(获取或设置一个唯一标识符,用于在跟踪日志中表示此请求。)
///
[SugarColumn(ColumnDescription = "事件链路ID", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, Length = 255)]
public string TraceId { get; set; }
///
///时间
///
[SugarColumn(ColumnDescription = "时间", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
public DateTime Date { get; set; } = DateTime.Now;
///
///线程
///
[SugarColumn(ColumnDescription = "线程", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, Length = 255)]
public string Thread { get; set; }
///
///等级
///
[SugarColumn(ColumnDescription = "等级", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, Length = 255)]
public string Level { get; set; }
///
///记录器
///
[SugarColumn(ColumnDescription = "记录器", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, Length = 255)]
public string Logger { get; set; }
///
///日志类型
///
[SugarColumn(ColumnDescription = "日志类型", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, Length = 255)]
public string LogType { get; set; }
///
///数据类型
///
[SugarColumn(ColumnDescription = "数据类型", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, Length = 255)]
public string DataType { get; set; }
///
///错误信息
///
[SugarColumn(ColumnDescription = "错误信息", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, Length = 2000)]
public string Message { get; set; }
///
///异常
///
[SugarColumn(ColumnDescription = "异常", IsNullable = true, IsPrimaryKey = false, IsIdentity = false, Length = 2000)]
public string Exception { get; set; }
}
}