package de.effigenix.infrastructure.usermanagement.web.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;

/**
 * Request DTO for user login.
 *
 * Used by POST /api/auth/login endpoint.
 * Contains username and password for authentication.
 */
@Schema(description = "Login request with username and password")
public record LoginRequest(
        @Schema(description = "Username", example = "admin", required = true)
        @NotBlank(message = "Username is required")
        String username,

        @Schema(description = "Password", example = "admin123", required = true)
        @NotBlank(message = "Password is required")
        String password
) {
}
