Skip to content

@map not carried over to makeEnum #5383

@daniellwdb

Description

@daniellwdb

Given the following enum in schema.prisma

enum Role {
  ADMIN     @map("admin")

  @@map("role")
}

The generated JavaScript contains

exports.Role = makeEnum({
  ADMIN: 'ADMIN',
});

The value should be the same as inside the map

Metadata

Metadata

Labels

bug/2-confirmedBug has been reproduced and confirmed.kind/bugA reported bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions