Files
upstream-ent/examples/edgeindex/README.md
upstream-mirror 4b3ad0b611
Some checks failed
Atlas CI Public / lint (push) Failing after 13s
Atlas CI Public / sync (push) Has been skipped
snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
2026-09-15 22:12:36 +05:00

17 lines
252 B
Markdown

# City-Street Unique Index Example
In this example, we have a `City` with many `Street`s, and we want to set the
street name to be unique under each city.
### Generate Assets
```console
go generate ./...
```
### Run Example
```console
go test
```