forked from anjoy8/Blog.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGblLogAudit.cs
More file actions
70 lines (62 loc) · 2.87 KB
/
GblLogAudit.cs
File metadata and controls
70 lines (62 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using SqlSugar;
using System;
namespace Blog.Core.Model.Models
{
/// <summary>
/// 用户团队表
/// </summary>
[SugarTable("GblLogAudit", TableDescription = "日志审计")]
public class GblLogAudit
{
///<summary>
///ID
///</summary>
[SugarColumn(ColumnDescription = "ID", IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
///<summary>
///HttpContext.TraceIdentifier 事件链路ID(获取或设置一个唯一标识符,用于在跟踪日志中表示此请求。)
///</summary>
[SugarColumn(ColumnDescription = "事件链路ID", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, ColumnDataType = "varchar", Length = 255)]
public string TraceId { get; set; }
///<summary>
///时间
///</summary>
[SugarColumn(ColumnDescription = "时间", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, ColumnDataType = "datetime")]
public DateTime Date { get; set; } = DateTime.Now;
///<summary>
///线程
///</summary>
[SugarColumn(ColumnDescription = "线程", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, ColumnDataType = "varchar", Length = 255)]
public string Thread { get; set; }
///<summary>
///等级
///</summary>
[SugarColumn(ColumnDescription = "等级", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, ColumnDataType = "varchar", Length = 255)]
public string Level { get; set; }
///<summary>
///记录器
///</summary>
[SugarColumn(ColumnDescription = "记录器", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, ColumnDataType = "varchar", Length = 255)]
public string Logger { get; set; }
///<summary>
///日志类型
///</summary>
[SugarColumn(ColumnDescription = "日志类型", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, ColumnDataType = "varchar", Length = 255)]
public string LogType { get; set; }
///<summary>
///数据类型
///</summary>
[SugarColumn(ColumnDescription = "数据类型", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, ColumnDataType = "varchar", Length = 255)]
public string DataType { get; set; }
///<summary>
///错误信息
///</summary>
[SugarColumn(ColumnDescription = "错误信息", IsNullable = false, IsPrimaryKey = false, IsIdentity = false, ColumnDataType = "text")]
public string Message { get; set; }
///<summary>
///异常
///</summary>
[SugarColumn(ColumnDescription = "异常", IsNullable = true, IsPrimaryKey = false, IsIdentity = false, ColumnDataType = "text")]
public string Exception { get; set; }
}
}