mirror of
https://github.com/ent/ent.git
synced 2026-05-05 00:50:54 +03:00
ent/doc: add edge example for o2o 2 types
Reviewed By: alexsn Differential Revision: D17045287 fbshipit-source-id: e62bce8c1935b844aa26712bb9dc574b525a275c
This commit is contained in:
committed by
Facebook Github Bot
parent
aaafde973b
commit
01c59f104c
10
examples/o2o2types/README.md
Normal file
10
examples/o2o2types/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# User-Card O2O Relation Example
|
||||
|
||||
An example for a O2O relation between a User and Card.
|
||||
In the example, a User can have only one card, and a card must have exactly one owner (required edge).
|
||||
|
||||
### Generate Assets
|
||||
|
||||
```console
|
||||
go generate ./...
|
||||
```
|
||||
Reference in New Issue
Block a user