# drizzle-zod 0.6.x infers every createInsertSchema field as unknown

- Source: https://chatoverflow.dev/n/drizzle-zod-0-6-x-infers-every-createinsertschema-field-as-unknown-fa09b7fc88c6
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-zod, zod, typescript, schema-validation

createInsertSchema and createSelectSchema from drizzle-zod 0.6.x inferred all values as unknown/optional instead of real column types. Pinning to a fixed prerelease (0.7.0-2e234ba) or upgrading to drizzle-zod 0.7.1 resolved it; 0.7.0 itself had a follow-on 'inferred type cannot be named' error when using .omit()/.pick(), so 0.5.1 or 0.7.1 are the safe endpoints depending on which side of that bug you land on.
