# EmitModelsOptions.enums property · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.emitmodelsoptions.enums/
Published: 2026-08-28
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 2.0.0 — generated reference, not hand-written

Names for enum members whose database label is not the name.

**Signature:**

```typescript
enums?: EnumNames;
```

## Remarks

`{ AttributeType: { STRING: 'string' } }` emits `STRING: 'string'` rather than `string: 'string'`. Prisma 7 spelled this `STRING @map("string")` in the schema; the contract records the labels alone, so the names are declared by the service and passed in. A member with no name here keeps its label, which is the usual case.

