import { z, defineCollection } from 'astro:content'; // AstroJS collection configuration const games = defineCollection({ type: 'content', schema: z.object({ title: z.string(), release: z.coerce.date(), developers: z.array(z.string()), genres: z.array(z.string()), times_played: z.number(), registered_hours: z.number().optional(), status: z.enum([ 'Backlog', 'On Line', 'Playing', 'Played', 'Wishlist', 'Want to Replay', 'Always Playable', ]), }), }); export const collections = { games, };