Guest User

Untitled

a guest
Jun 14th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. User:
  2. columns:
  3. id:
  4. type: integer(10)
  5. primary: true
  6. autoincrement: true
  7. slug:
  8. type: string(64)
  9. username:
  10. type: string(64)
  11. password:
  12. type: string(64)
  13. email:
  14. type: string(64)
  15. indexes:
  16. username:
  17. fields: [username]
  18. type: unique
  19. actAs:
  20. Activation:
  21. Authorable:
  22. Timestampable:
  23. Sluggable:
  24. fields: [username]
  25. type: string
  26. length: 64
  27. unique: true
  28. canUpdate: true
  29. relations:
  30. UserProfile:
  31. type: one
  32. foreignType: one
  33. Created:
  34. class: User
  35. local: created_by
  36. foreign: id
  37. type: one
  38. foreignType: many
  39. foreignAlias: CreatedUsers
  40. Updated:
  41. class: User
  42. local: updated_by
  43. foreign: id
  44. type: one
  45. foreignType: many
  46. foreignAlias: UpdatedUsers
  47. Groups:
  48. class: Group
  49. local: user_id
  50. foreign: group_id
  51. refClass: UserGroup
  52. foreignAlias: Users
  53. Rights:
  54. class: Right
  55. local: user_id
  56. foreign: right_id
  57. refClass: UserRight
  58. foreignAlias: Users
  59.  
  60.  
  61. UserProfile:
  62. columns:
  63. user_id:
  64. type: integer(10)
  65. primary: true
  66. first_name:
  67. type: string(255)
  68. last_name:
  69. type: string(255)
Add Comment
Please, Sign In to add comment