Working on create organization and delete.

This commit is contained in:
charles-gauthereau
2024-12-29 19:34:48 +01:00
parent 05edbf4a42
commit a6f48ea762
17 changed files with 390 additions and 35 deletions
@@ -2,8 +2,9 @@ import {z} from "zod";
export const OrganizationSchema = z.object({
name: z.string(),
slug: z.string(),
name: z.string().min(5).max(40),
slug: z.string().regex(/^[a-zA-Z0-9_-]*$/).min(5).max(20),
});
export type OrganizationSchema = z.infer<typeof OrganizationSchema>;