Generate a Zod schema for a model using VelaStack's field DSL. Given the model path and any fields, it generates src/lib/schemas/<name>.ts with validators matched to PocketBase field types. The output slots directly into sveltekit-superforms, remote form functions, or any client or server code that needs runtime validation. Reach for it when you want the schema by itself without the form UI or CRUD routes.
import { z } from "zod";
export const contactSchema = z.object({
name: z.string().optional(),
email: z.email().optional(),
});