update files
This commit is contained in:
@@ -28,7 +28,15 @@ const courses = defineCollection({
|
||||
course: z.object({
|
||||
hours: z.number(),
|
||||
reciclagem: z.boolean().default(false),
|
||||
modules: z.array(z.string()),
|
||||
modules: z.array(
|
||||
z.union([
|
||||
z.object({
|
||||
summary: z.string(),
|
||||
content: z.string(),
|
||||
}),
|
||||
z.string(),
|
||||
]),
|
||||
),
|
||||
trainer: reference('trainers').optional(),
|
||||
}),
|
||||
seo: z
|
||||
|
||||
Reference in New Issue
Block a user