Skip to content
masterclass Buddy

Prisma · Concept

enum

Prisma enums define a fixed set of allowed values. Model fields can use an enum type instead of an unrestricted scalar.

Last updated

Syntax

enum Name {
  MEMBER
  OTHER = "stored-value"
}

model Model {
  field Name
}

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Scalar fields
  • Data model definition
  • Supported databases
  • Default values

Source: Data modeling in Prisma ORM | Prisma Documentation. Checked 2026-11-03.