AdoS8NotificationLog.cs 1.1 KB

1234567891011121314151617181920212223242526272829
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S8;
  2. /// <summary>
  3. /// 通知发送日志(规则命中后的落库;非「列表 SQL 结果集」独立业务对象)。
  4. /// </summary>
  5. [SugarTable("ado_s8_notification_log", "S8 通知日志")]
  6. public class AdoS8NotificationLog
  7. {
  8. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnName = "tenant_id", ColumnDataType = "bigint")]
  11. public long TenantId { get; set; }
  12. [SugarColumn(ColumnName = "factory_id", ColumnDataType = "bigint")]
  13. public long FactoryId { get; set; }
  14. [SugarColumn(ColumnName = "exception_id", ColumnDataType = "bigint", IsNullable = true)]
  15. public long? ExceptionId { get; set; }
  16. [SugarColumn(ColumnName = "channel", Length = 64)]
  17. public string Channel { get; set; } = "log";
  18. [SugarColumn(ColumnName = "payload", Length = 4000, IsNullable = true)]
  19. public string? Payload { get; set; }
  20. [SugarColumn(ColumnName = "created_at")]
  21. public DateTime CreatedAt { get; set; } = DateTime.Now;
  22. }