EmitModelsOptions.enums property
Names for enum members whose database label is not the name.
Signature:
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.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.