using System.ComponentModel.DataAnnotations; namespace MealPlan.Api.DTOs.Auth; /// Payload for POST /api/auth/register. 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; }