mirror of
https://github.com/ent/ent.git
synced 2026-05-02 23:50:54 +03:00
Reviewed By: alexsn Differential Revision: D17045287 fbshipit-source-id: e62bce8c1935b844aa26712bb9dc574b525a275c
249 B
249 B
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
go generate ./...