mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Working on create organization and delete.
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user