using System.ComponentModel.DataAnnotations;

namespace ERPCore.Dtos.Hrm;

/// <summary>Advisory match surfaced by the reverse-direction email-lookup (docs/12-BACKEND-HRM.md A.5).</summary>
public sealed record EmployeeMatchDto(int EmployeeId, string EmployeeCode, string FullName, string Email);

public sealed record UserMatchDto(int UserId, string Username, string DisplayName, string Email);

public sealed record EmployeeMatchResponse(EmployeeMatchDto? Match);

public sealed record UserMatchResponse(UserMatchDto? Match);

public sealed class LinkUserRequest
{
    [Required] public int UserId { get; set; }
}
