using System.ComponentModel.DataAnnotations;

namespace MealPlan.Api.DTOs.Auth;

/// <summary>Payload for <c>POST /api/auth/register</c>.</summary>
public class RegisterRequestDto
{
    [Required]
    [EmailAddress]
    [MaxLength(256)]
    public string Email { get; set; } = string.Empty;

    [MaxLength(256)]
    public string? UserName { get; set; }

    [Required]
    [MinLength(8)]
    [MaxLength(256)]
    public string Password { get; set; } = string.Empty;
}
