PrismaP
Prisma12mo ago
3 replies
vpjm

Enum with custom value

Hi, does anyone know if it's possible to do this in Prisma :
CREATE TYPE "FileType" AS ENUM ('image/jpeg', 'image/png');

Because I can't find a way to specify the enum values like this:
enum FileType {
  IMAGE_JPEG = "image/jpeg",
  IMAGE_PNG = "image/png"
}
Was this page helpful?