namespace GreenHome.Domain; public sealed class AlertNotification { public int Id { get; set; } public int DeviceId { get; set; } public Device Device { get; set; } = null!; public int UserId { get; set; } public User User { get; set; } = null!; public string AlertType { get; set; } = string.Empty; // Temperature, Humidity, Soil, Gas, Lux public string Message { get; set; } = string.Empty; public string? MessageOutboxIds { get; set; } // JSON array of message outbox IDs public string? ErrorMessage { get; set; } // Error details if sending failed public DateTime SentAt { get; set; } = DateTime.UtcNow; public bool IsSent { get; set; } = true; }