feat(podcast): add drafts for the initial episodes

This commit is contained in:
Oliver Davies 2023-11-06 21:48:21 +00:00
parent 8bc240aa6a
commit 23d9e92a5d
6 changed files with 78 additions and 6 deletions

View file

@ -20,6 +20,15 @@ const dailyEmailCollection = defineCollection({
}),
});
const podcastEpisodeCollection = defineCollection({
schema: z.object({
date: z.date(),
draft: z.boolean().optional(),
guests: z.array(z.string()),
topic: z.string(),
}),
});
const talkCollection = defineCollection({
schema: z.object({
description: z.string(),
@ -65,6 +74,7 @@ const testimonialCollection = defineCollection({
export const collections = {
"daily-email": dailyEmailCollection,
"podcast-episode": podcastEpisodeCollection,
blog: blogCollection,
talk: talkCollection,
testimonial: testimonialCollection,