---
description: Generate schemas using code.
---

# Code Schemas

To enable this optional feature, add the `codeSchemas` element to your [optionalFeatures](../../api-documentation/configuration-reference/optional-features) array in your configuration object.

### Feature Effect

Prisma Util will run the functions from your [codeGenerators](../../api-documentation/configuration-reference/code-generators) configuration property and will treat the result of those functions as different files.

To target files outputted by a code generator using [File:Model.column](../../concepts/model-representation) associations, use `codeSchemas:#generatorIndex` as the file name.
