mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
Summary: Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1380 Reviewed By: alexsn Differential Revision: D17075317 fbshipit-source-id: 021cb0bde3849af5a5d842b715a7b7dbd861c54f
11 lines
211 B
Markdown
11 lines
211 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 ./...
|
|
```
|