import type { SQLOutputValue } from "node:sqlite"; export interface PasswordResetTokenRow { token: string; user_id: string; expires_at: string; used_at: string | null; [key: string]: SQLOutputValue; } export function isPasswordResetTokenRow( obj: unknown, ): obj is PasswordResetTokenRow { return !!obj && typeof obj === "object" && "token" in obj && typeof obj.token === "string" && "user_id" in obj && typeof obj.user_id === "string" && "expires_at" in obj && typeof obj.expires_at === "string" && "used_at" in obj && (obj.used_at === null || typeof obj.used_at === "string"); }