新增差异日志记录到库

This commit is contained in:
不做码农
2023-07-20 18:20:59 +08:00
parent 1ba31c17cf
commit 95b0178dd4
10 changed files with 111 additions and 23 deletions

View File

@@ -0,0 +1,21 @@
namespace ZR.Model.System
{
[SugarTable("SqlDiffLog")]
public class SqlDiffLog
{
[SugarColumn(IsPrimaryKey = true)]
public long PId { get; set; }
public string TableName { get; set; }
[SugarColumn(Length = 4000)]
public object BusinessData { get; set; }
public string DiffType { get; set; }
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string Sql { get; set; }
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string BeforeData { get; set; }
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string AfterData { get; set; }
public string UserName { get; set; }
public DateTime AddTime { get; set; }
}
}