43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace line_gestao_api.Models;
|
|
|
|
public class SolicitacaoLinha : ITenantEntity
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
public Guid TenantId { get; set; }
|
|
|
|
public Guid? MobileLineId { get; set; }
|
|
public MobileLine? MobileLine { get; set; }
|
|
|
|
[MaxLength(30)]
|
|
public string? Linha { get; set; }
|
|
|
|
[MaxLength(200)]
|
|
public string? UsuarioLinha { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(60)]
|
|
public string TipoSolicitacao { get; set; } = string.Empty;
|
|
|
|
public decimal? FranquiaLineAtual { get; set; }
|
|
public decimal? FranquiaLineNova { get; set; }
|
|
|
|
public Guid? SolicitanteUserId { get; set; }
|
|
public ApplicationUser? SolicitanteUser { get; set; }
|
|
|
|
[MaxLength(200)]
|
|
public string? SolicitanteNome { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(1000)]
|
|
public string Mensagem { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[MaxLength(30)]
|
|
public string Status { get; set; } = "PENDENTE";
|
|
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
}
|