doc/md: update enum doc (#4145)

This commit is contained in:
Hila Kashai
2024-07-16 15:32:10 +03:00
committed by GitHub
parent 3b3f84c347
commit d1bb11ab63

View File

@@ -62,7 +62,7 @@ CREATE TYPE status AS ENUM ('active', 'inactive', 'pending');
```hcl title="schema.hcl"
schema "public" {}
composite "status" {
enum "status" {
schema = schema.public
values = ["active", "inactive", "pending"]
}
@@ -198,4 +198,4 @@ if _, err := ac.SchemaApply(ctx, &atlasexec.SchemaApplyParams{
:::
The code for this guide can be found in [GitHub](https://github.com/ent/ent/tree/master/examples/enumtypes).
The code for this guide can be found in [GitHub](https://github.com/ent/ent/tree/master/examples/enumtypes).