29 lines
607 B
TypeScript
29 lines
607 B
TypeScript
|
import { z, defineCollection } from 'astro:content'
|
||
|
|
||
|
const taInfo = defineCollection({
|
||
|
type: 'data',
|
||
|
schema: z.object({
|
||
|
info: z.object({
|
||
|
title: z.string(),
|
||
|
questReleaseDate: z.string(),
|
||
|
shortdescription: z.string(),
|
||
|
description: z.string(),
|
||
|
fightNumber: z.number().default(1),
|
||
|
}),
|
||
|
data: z.array(
|
||
|
z.object({
|
||
|
title: z.string(),
|
||
|
link: z.string().url(),
|
||
|
date: z.string(),
|
||
|
servant: z.string(),
|
||
|
turns: z.string(),
|
||
|
runner: z.string(),
|
||
|
})
|
||
|
),
|
||
|
}),
|
||
|
})
|
||
|
|
||
|
export const collections = {
|
||
|
taInfoData: taInfo,
|
||
|
}
|