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

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

/**
 * Request DTO for updating user details.
 *
 * Used by PUT /api/users/{id} endpoint.
 * All fields are optional - only provided fields will be updated.
 */
@Schema(description = "Request to update user details")
public record UpdateUserRequest(
        @Schema(description = "New email address", example = "newemail@example.com")
        @Email(message = "Email must be valid")
        String email,

        @Schema(description = "New branch ID", example = "BRANCH-002")
        String branchId
) {
}
