Understand the generated output structure
masterWhen you run the generator, it produces a structured set of files containing tRPC routers and Zod validation schemas.
Typical Directory Layout:
generated/routers/index.ts: The main app router that combines all individual model routers.generated/routers/helpers/createRouter.ts: A base router factory used for middleware and shield setup.generated/routers/[Model].router.ts: Individual routers containing CRUD operations for a specific Prisma model (e.g.,User.router.ts).generated/schemas/: Contains Zod validation schemas (enabled ifwithZod: trueis configured).generated/schemas/objects/: Input type schemas.generated/schemas/index.ts: Barrel exports for all schemas.
generated/
├── routers/
│ ├── index.ts # Main app router combining all model routers
│ ├── helpers/
│ │ └── createRouter.ts # Base router factory with middleware/shield setup
│ ├── User.router.ts # User CRUD operations
│ └── Post.router.ts # Post CRUD operations
└── schemas/ # Zod validation schemas (if withZod: true)
├── objects/ # Input type schemas
├── findManyUser.schema.ts
├── createOneUser.schema.ts
└── index.ts # Barrel exports