Add art types and categories

This commit is contained in:
2025-07-20 10:07:09 +02:00
parent b2c77ec9e0
commit 92081828f0
20 changed files with 989 additions and 103 deletions

View File

@ -0,0 +1,9 @@
import * as z from "zod/v4";
export const artTypeSchema = z.object({
name: z.string().min(3, "Name is required. Min 3 characters."),
slug: z.string().min(3, "Slug is required. Min 3 characters.").regex(/^[a-z]+$/, "Only lowercase letters are allowed (no numbers, spaces, or uppercase)"),
description: z.string().optional(),
})
export type artTypeSchema = z.infer<typeof artTypeSchema>