52 lines
1.6 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace ZR.ServiceCore.Model
{
[SugarTable("SqlDiffLog", "数据差异日志")]
[Tenant("0")]
public class SqlDiffLog
{
/// <summary>
/// 主键
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
[JsonConverter(typeof(ValueToStringConverter))]
public long PId { get; set; }
/// <summary>
/// 表名
/// </summary>
public string TableName { get; set; }
/// <summary>
/// 业务数据内容
/// </summary>
[SugarColumn(Length = 4000)]
public string BusinessData { get; set; }
/// <summary>
/// 差异类型insertupdatedelete
/// </summary>
public string DiffType { get; set; }
/// <summary>
/// 执行sql语句
/// </summary>
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string Sql { get; set; }
/// <summary>
/// 变更前数据
/// </summary>
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string BeforeData { get; set; }
/// <summary>
/// 变更后数据
/// </summary>
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string AfterData { get; set; }
/// <summary>
/// 操作用户名
/// </summary>
public string UserName { get; set; }
public DateTime AddTime { get; set; }
/// <summary>
/// 数据库配置id
/// </summary>
public string ConfigId { get; set; }
}
}