diff --git a/doc/md/schema-fields.md b/doc/md/schema-fields.md index 97c713a2d..900b260f0 100755 --- a/doc/md/schema-fields.md +++ b/doc/md/schema-fields.md @@ -52,6 +52,7 @@ The following types are currently supported by the framework: - `time.Time` - `[]byte` (only supported by SQL dialects). - `JSON` (only supported by SQL dialects) - **experimental**. +- `Enum` (only supported by SQL dialects).
```go @@ -86,6 +87,9 @@ func (User) Fields() []ent.Field { Optional(), field.JSON("strings", []string{}). Optional(), + field.Enum("state"). + Values("on", "off"). + Optional(), } } ```