added groups

This commit is contained in:
2025-04-13 22:19:54 +02:00
parent a2492fefbd
commit 3fc08a3c10
21 changed files with 635 additions and 40 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
import { z } from "zod";
export const groupSchema = z.object({
name: z.string().optional(),
name: z
.string()
.min(2, { message: "Group name must be at least 2 characters." }),
description: z.string().optional(),
});
export const groupMemberSchema = z.object({