Guest User

Untitled

a guest
May 6th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. options:
  2. type: INNODB
  3. collate: utf8_general_ci
  4. charset: utf8
  5.  
  6. User:
  7. columns:
  8. id:
  9. type: integer
  10. primary: true
  11. autoincrement: true
  12. firstname:
  13. type: string(20)
  14. lastname:
  15. type: string(20)
  16. email:
  17. type: string(100)
  18. password:
  19. type: string(64)
  20. actAs:
  21. Timestampable:
  22. created:
  23. name: date_created
  24. updated:
  25. name: date_modified
  26. relations:
  27. UserAttributes:
  28. class: UserAttributes
  29. local: id
  30. foreign: user_id
  31. foreignType: many
  32. type: many
  33.  
  34. UserAttributes:
  35. columns:
  36. id:
  37. type: integer
  38. primary: true
  39. autoincrement: true
  40. user_id:
  41. type: integer
  42. name:
  43. type: string(20)
  44. value:
  45. type: string(200)
  46. default: false
  47. relations:
  48. User:
  49. class: User
  50. local: user_id
  51. foreign: id
  52. foreignType: one
  53. type: one
Add Comment
Please, Sign In to add comment