AdoS8NotificationLayer.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S8;
  2. [SugarTable("ado_s8_notification_layer", "S8 通知分层")]
  3. public class AdoS8NotificationLayer
  4. {
  5. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  6. public long Id { get; set; }
  7. [SugarColumn(ColumnName = "tenant_id", ColumnDataType = "bigint")]
  8. public long TenantId { get; set; }
  9. [SugarColumn(ColumnName = "factory_id", ColumnDataType = "bigint")]
  10. public long FactoryId { get; set; }
  11. [SugarColumn(ColumnName = "scene_code", Length = 64)]
  12. public string SceneCode { get; set; } = string.Empty;
  13. [SugarColumn(ColumnName = "severity", Length = 32)]
  14. public string Severity { get; set; } = "MEDIUM";
  15. [SugarColumn(ColumnName = "level_code", Length = 32)]
  16. public string LevelCode { get; set; } = string.Empty;
  17. [SugarColumn(ColumnName = "target_role_ids", Length = 2000, IsNullable = true)]
  18. public string? TargetRoleIds { get; set; }
  19. [SugarColumn(ColumnName = "notify_channel", Length = 128, IsNullable = true)]
  20. public string? NotifyChannel { get; set; }
  21. [SugarColumn(ColumnName = "created_at")]
  22. public DateTime CreatedAt { get; set; } = DateTime.Now;
  23. [SugarColumn(ColumnName = "updated_at", IsNullable = true)]
  24. public DateTime? UpdatedAt { get; set; }
  25. }