Skip to main content
Version: 3.0 Alpha

Enum

Enums are container declarations for grouping constant identifiers. You can use them to express concepts like user roles, product categories, etc.

Syntax​

enum NAME {
FIELD*
}
  • ENUM_NAME

    Name of the enum. Needs to be unique in the entire model. Must be a valid identifier.

  • FIELD

    Field identifier. Needs to be unique in the model. Must be a valid identifier.

Example​

enum UserRole {
USER
ADMIN
}
Comments
Feel free to ask questions, give feedback, or report issues.

Don't Spam


You can edit/delete your comments by going directly to the discussion, clicking on the 'comments' link below