namespace SpaceGame.Api.Auth.Runtime;

public sealed record UserAccount(
  Guid Id,
  string Email,
  string PasswordHash,
  DateTimeOffset CreatedAtUtc,
  IReadOnlyList<string> Roles);

public sealed record RefreshTokenRecord(
  Guid Id,
  Guid UserId,
  string TokenHash,
  DateTimeOffset CreatedAtUtc,
  DateTimeOffset ExpiresAtUtc,
  DateTimeOffset? RevokedAtUtc);

public sealed record PasswordResetTokenRecord(
  Guid Id,
  Guid UserId,
  string TokenHash,
  DateTimeOffset CreatedAtUtc,
  DateTimeOffset ExpiresAtUtc,
  DateTimeOffset? ConsumedAtUtc);
