import { defineCollection, z } from 'astro:content';

const blog = defineCollection({
  type: 'content',
  schema: z.object({
    title: z.string(),
    description: z.string(),
    pubDate: z.date(),
    author: z.string(),
    category: z.string(),
    tags: z.array(z.string()),
    imagePrompt: z.string().optional(),
  }),
});

export const collections = { blog };