import { z } from "zod";

export const taskSchema = z.object({
  id: z.string(),
  name: z.string(),
  description: z.string(),
  feature_name: z.string().nullable(),
  feature_id: z.string().nullable(),
  feature: z.any(),
  project: z.any(),
  status: z.enum(["backlog", "todo", "in_progress", "done"]).optional(),
  priority: z.string().nullable(),
});

export type Task = z.infer<typeof taskSchema>;
