mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
doc/md: update enum doc (#4145)
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user