namespace ZR.Model.Business { /// /// 审计日志 /// [SugarTable("odf_audit_logs")] public class OdfAuditLogs { /// /// Id /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 操作的表名 /// public string TableName { get; set; } /// /// 操作的记录ID /// public int? RecordId { get; set; } /// /// 操作类型: INSERT/UPDATE/DELETE /// public string OperationType { get; set; } /// /// 操作人用户ID /// public long OperatorId { get; set; } /// /// 操作人用户名 /// public string? OperatorName { get; set; } /// /// 操作来源: App/Admin /// public string SourceClient { get; set; } /// /// 修改前数据 (JSON) /// [SugarColumn(ColumnDataType = "nvarchar(max)")] public string? OldData { get; set; } /// /// 修改后数据 (JSON) /// [SugarColumn(ColumnDataType = "nvarchar(max)")] public string? NewData { get; set; } /// /// 操作时间 /// public DateTime? OperationTime { get; set; } /// /// 操作人所属部门 /// public long? DeptId { get; set; } /// /// 备注 /// public string? Remark { get; set; } } }