feat: add optional category field to posts schema
This commit is contained in:
parent
ad7f685b0d
commit
c2ac236f65
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ const posts = defineCollection({
|
|||
schema: z.object({
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
pinned: z.boolean().optional()
|
||||
pinned: z.boolean().optional(),
|
||||
category: z.string().optional(),
|
||||
})
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue