feat(dmmf): add parameterization rules metadata to DMMF output
Extends the DMMF (Data Model Meta Format) with explicit parameterization
rules that define which query arguments can be parameterized. This
enables the JavaScript client to correctly parameterize queries based on
schema information rather than heuristics.
New DMMF field: parameterizationRules
Structure:
```typescript
interface ParameterizationRules {
scalarFilters: boolean // Can parameterize scalar filter values
scalarData: boolean // Can parameterize scalar data values
enumValues: boolean // Can parameterize enum values
nonParameterizable: NonParameterizableContext[]
}
interface NonParameterizableContext {
context: string // e.g., "orderBy", "pagination", "mode"
reason: string // Documentation for why this can't be parameterized
}
```
Default rules:
- scalarFilters: true
- scalarData: true
- enumValues: true
- nonParameterizable includes: orderBy, pagination, take, skip,
cursor, distinct, relationLoadStrategy
This metadata will be used by the JavaScript parameterizer to make
schema-driven decisions about what can be safely parameterized,
replacing the current heuristic-based approach.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>