mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
* entc/gen: adding hook condition tests
Signed-off-by: Alex Snast <alexsn@fb.com>
* Revert "entc/gen: adding hook condition tests"
This reverts commit 3a46ea6cbf.
* entc/gen: adding hook conditions
Signed-off-by: Alex Snast <alexsn@fb.com>
* entc/gen: adding hook condition tests
Signed-off-by: Alex Snast <alexsn@fb.com>
City-Street Unique Index Example
In this example, we have a City with many Streets, and we want to set the
street name to be unique under each city.
Generate Assets
go generate ./...