forked from anjoy8/Blog.Core
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathOperateLog.cs
More file actions
64 lines (61 loc) · 2.04 KB
/
OperateLog.cs
File metadata and controls
64 lines (61 loc) · 2.04 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
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Blog.Core.Model.Models
{
/// <summary>
/// 日志记录
/// </summary>
public class OperateLog : RootEntity
{
/// <summary>
///获取或设置是否禁用,逻辑上的删除,非物理删除
/// </summary>
[SugarColumn(IsNullable = true)]
public bool? IsDeleted { get; set; }
/// <summary>
/// 区域名
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Area { get; set; }
/// <summary>
/// 区域控制器名
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Controller { get; set; }
/// <summary>
/// Action名称
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Action { get; set; }
/// <summary>
/// IP地址
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string IPAddress { get; set; }
/// <summary>
/// 描述
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string Description { get; set; }
/// <summary>
/// 登录时间
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? LogTime { get; set; }
/// <summary>
/// 登录名称
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string LoginName { get; set; }
/// <summary>
/// 用户ID
/// </summary>
public int UserId { get; set; }
[SugarColumn(IsIgnore = true)]
public virtual sysUserInfo User { get; set; }
}
}