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

const blog = defineCollection({
  type: 'content',
  schema: z.object({
    title:       z.string(),
    description: z.string(),
    pubDate:     z.coerce.date(),
    tags:        z.array(z.string()).optional().default([]),
    day:         z.number().optional(),   // Day 1, Day 2, etc.
    draft:       z.boolean().optional().default(false),
  }),
});

export const collections = { blog };
