import { z, defineCollection } from "astro:content"; // AstroJS collection configuration const games = defineCollection({ type: "content", schema: z.object({ Title: z.string(), Release: z.date(), Developer: z.string(), Genres: z.array(z.string()), Status: z.enum([ "Backlog", "On Line", "Playing", "Played", "Want to Replay", "Always Playable", ]), Times_Played: z.number(), banner: z.optional(z.string().url()), }), }); export const collections = { games, };