UNPKG

@datazod/zod-sql

Version:

Convert Zod schemas to SQL table definitions with support for SQLite, PostgreSQL, and MySQL

35 lines 816 B
import { z } from 'zod'; /** * Pre-built schemas for common table fields */ export declare const timeStampsSchema: z.ZodObject<{ created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { created_at: string; updated_at: string; }, { created_at: string; updated_at: string; }>; export declare const autoIdSchema: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; export declare const autoIdSchemaWithTimestamps: z.ZodObject<{ id: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { created_at: string; updated_at: string; id: string; }, { created_at: string; updated_at: string; id: string; }>; //# sourceMappingURL=predefined-schemas.d.ts.map