using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Admin.NET.Core
{
///
/// 系统操作/审计日志表
///
[Table("sys_log_audit")]
[Comment("审计日志表")]
public class SysLogAudit : EntityBase
{
///
/// 表名
///
[Comment("表名")]
[MaxLength(50)]
public string TableName { get; set; }
///
/// 列名
///
[Comment("列名")]
[MaxLength(50)]
public string ColumnName { get; set; }
///
/// 新值
///
[Comment("新值")]
public string NewValue { get; set; }
///
/// 旧值
///
[Comment("旧值")]
public string OldValue { get; set; }
///
/// 操作时间
///
[Comment("操作时间")]
public DateTimeOffset? CreatedTime { get; set; }
///
/// 操作人Id
///
[Comment("操作人Id")]
public long UserId { get; set; }
///
/// 操作人名称
///
[Comment("操作人名称")]
[MaxLength(50)]
public string UserName { get; set; }
///
/// 操作方式:新增、更新、删除
///
[Comment("操作方式")]
public DataOpType Operate { get; set; }
}
}