Premier commit de la v2 de l'app

This commit is contained in:
UltraLionFr
2025-07-29 05:15:33 +02:00
parent 2f14898357
commit b593c60ab2
67 changed files with 5003 additions and 388 deletions
+15
View File
@@ -0,0 +1,15 @@
import { z } from "zod";
export const projectSchema = z.object({
id: z.string().uuid(),
joueur: z.string(),
projet: z.string(),
description: z.string(),
coords: z.string().nullable(),
etat: z.enum(["En cours", "Terminé", "Pause"]),
monde: z.enum(["Overworld", "Nether", "End"]),
tags: z.array(z.string()),
createdAt: z.date().or(z.string().transform((s) => new Date(s))),
});
export type SafeProject = z.infer<typeof projectSchema>;