41 lines
982 B
C#
41 lines
982 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace line_gestao_api.Models;
|
|
|
|
public class Notification
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
[Required]
|
|
public string Tipo { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string Titulo { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string Mensagem { get; set; } = string.Empty;
|
|
|
|
public DateTime Data { get; set; } = DateTime.UtcNow;
|
|
|
|
public DateTime? ReferenciaData { get; set; }
|
|
|
|
public int? DiasParaVencer { get; set; }
|
|
|
|
public bool Lida { get; set; }
|
|
|
|
public DateTime? LidaEm { get; set; }
|
|
|
|
[Required]
|
|
public string DedupKey { get; set; } = string.Empty;
|
|
|
|
public Guid? UserId { get; set; }
|
|
public User? User { get; set; }
|
|
|
|
public Guid? VigenciaLineId { get; set; }
|
|
public VigenciaLine? VigenciaLine { get; set; }
|
|
|
|
public string? Usuario { get; set; }
|
|
public string? Cliente { get; set; }
|
|
public string? Linha { get; set; }
|
|
}
|