import { z } from "zod";

const translationSchema = z.object({
  en: z.string().min(1, "English version is required"),
  es: z.string().min(1, "Spanish version is required"),
});

export const courseSchema = z.object({
  title: translationSchema,
  description: translationSchema,
  tags: z.array(z.string()).default([]),
});