Guest User

Untitled

a guest
Feb 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. entity("Person")
  2. .hasOne("name", { is: Text })
  3. .hasOne("age", { is: Number })
  4. .is("mother").ofMany("children", { are: "people" })
  5. .is("owner").ofMany("cars")
  6. .is("creator").ofMany("created_cars", { are: "cars" });
  7.  
  8. entity("Car")
  9. .hasOne("engine")
  10. .hasOne("creator", { is: "person" });
  11.  
  12. entity("Engine")
  13. .belongsTo("car");
Add Comment
Please, Sign In to add comment