/**
 * Submit Attempt DTO
 *
 * Data Transfer Object for exercise attempt submission
 * Using Zod for validation
 */

import { z } from 'zod';

export const SubmitAttemptSchema = z.object({
  answer: z.string(),
  timeSpent: z.number().int().min(0),
  hintsUsed: z.number().int().default(0),
  skipped: z.boolean().default(false),
});

export type SubmitAttemptDto = z.infer<typeof SubmitAttemptSchema>;
