finish add enrollment from seat:wqs

This commit is contained in:
2026-01-27 23:13:36 -03:00
parent ecd91dbc5e
commit 6d0d006bb0
9 changed files with 395 additions and 247 deletions

View File

@@ -4,6 +4,7 @@ import { z } from 'zod'
export const MAX_ITEMS = 50
export const enrollment = z.object({
id: z.uuidv4().optional(),
user: z
.object(
{
@@ -34,7 +35,8 @@ export const enrollment = z.object({
scheduled_for: z
.date()
.optional()
.transform((date) => (date ? format(date, 'yyyy-MM-dd') : undefined))
.transform((date) => (date ? format(date, 'yyyy-MM-dd') : undefined)),
seat: z.object({ order_id: z.uuidv4() }).optional()
})
export const formSchema = z.object({