namespace Application.Auth.DTOs;

public record LoginRequest(string Username, string Password);

public record RegisterRequest(string Username, string Password, string? Name = null, string? Email = null);

public record AuthResponse(
    bool Success,
    string? Token = null,
    UserInfo? User = null,
    string? Error = null,
    string? RecoveryCode = null
);

public record ResetPasswordRequest(string Username, string RecoveryCode, string NewPassword);

public record ResetPasswordResponse(bool Success, string? Error = null);

public record UserInfo(
    int Id,
    string Username,
    string Role,
    int? StudentId,
    string? StudentName
);
