> For the complete documentation index, see [llms.txt](https://sserra.gitbook.io/bulldog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sserra.gitbook.io/bulldog/using-with-enum.md).

# Using with Enum

Bulldog supports Enum type using the @Enum annotation.

```kotlin
@Bulldog(name = "UserSettings")
object UserModel {
    @Enum(value = Roles.user)
    val role: Roles = Roles.USER
}

enum class Roles{
  ADMIN, USER;
  
  companion object {
        const val user = "USER"
        const val admin = "ADMIN"
    }
}�
```

You just need annotate the field the enum field and pass a default value.
