zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

[Feature Request] Export foreign key schema in Zod plugin

Open brunobely opened this issue 1 month ago • 0 comments

Is your feature request related to a problem? Please describe. When integrating ZenStack with TanStack DB, having access to the model + foreign keys is very helpful.

Describe the solution you'd like Adding an export to this generated line of code, i.e., export const fkSchema = ...; instead of just const fkSchema = ...;

Describe alternatives you've considered For now I'm using [ModelName]ScalarSchema.passthrough(), which isn't type-safe.

brunobely avatar Nov 05 '25 20:11 brunobely