Guest User

Untitled

a guest
May 30th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ---
  2. detect_relations: true
  3.  
  4. User:
  5. columns:
  6. username: string
  7. password: string(32)
  8. emailaddress: string(255)
  9. relations:
  10. Profile:
  11. local: id
  12. foreign: user_id
  13.  
  14. -- Every user can have 1-many profiles
  15. Profile:
  16. columns:
  17. prefix: string
  18. firstname: string
  19. middlename: string
  20. lastname: string
  21. user_id: integer
  22. relations:
  23. User:
  24. Address:
  25. local: id
  26. foreign: profile_id
  27.  
  28. -- Every profile has 0-many address
  29. Address:
  30. columns:
  31. profile_id: integer
  32. street: string
  33. number: string
  34. addition: string
  35. city: string
  36. provence: string
  37. country: string
  38. relations:
  39. Profile:
Add Comment
Please, Sign In to add comment