snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
16
examples/edgeindex/README.md
Normal file
16
examples/edgeindex/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# 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
|
||||
```
|
||||
Reference in New Issue
Block a user