Added location to database, model, and event templates

This commit is contained in:
Alexis
2024-06-06 22:43:31 +02:00
parent c6009a4bca
commit e63422f091
11 changed files with 98 additions and 30 deletions

View File

@@ -5,6 +5,7 @@ import { dateSchema, type RPGDate } from './Date'
export interface CalendarEvent {
id?: number
title: string
location?: string
startDate: RPGDate
endDate?: RPGDate
description?: string
@@ -21,6 +22,7 @@ export const postEventBodySchema = z.object({
event: z.object({
title: z.string(),
description: z.string().optional().nullable(),
location: z.string().optional().nullable(),
startDate: dateSchema.required(),
endDate: dateSchema.optional().nullable()
}),