snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
16
examples/m2m2types/README.md
Normal file
16
examples/m2m2types/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Groups-Users M2M Relation
|
||||
|
||||
In this groups-users example, we have a M2M relation between groups and their users.
|
||||
Each group **has many** users, and each user can be joined to **many** groups.
|
||||
|
||||
### Generate Assets
|
||||
|
||||
```console
|
||||
go generate ./...
|
||||
```
|
||||
|
||||
### Run Example
|
||||
|
||||
```console
|
||||
go test
|
||||
```
|
||||
Reference in New Issue
Block a user