Guest User

Untitled

a guest
Jul 9th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. User:
  2. tableName: users
  3. columns:
  4. id:
  5. type: integer
  6. primary: true
  7. unsigned: true
  8. notnull: true
  9. autoincrement: true
  10. old_id:
  11. type: integer
  12. lastname:
  13. type: string(32)
  14. firstname:
  15. type: string(32)
  16. email:
  17. type: string(64)
  18. login:
  19. type: string(32)
  20. pass:
  21. type: blob
  22. level:
  23. type: string(24)
  24. store_id:
  25. type: integer(1)
  26. unsigned: true
  27. notnull: true
  28. relations:
  29. Store:
  30. local: store_id
  31. foreign: id
  32. Rights:
  33. class: Right
  34. refClass: UserRight
  35. local: user_id
  36. foreign: right_id
  37. indexes:
  38. oldindex:
  39. fields: old_id
  40. options:
  41. type: InnoDB
  42. collate: utf8_general_ci
  43. charset: utf8
  44.  
  45. Right:
  46. tableName: rights
  47. columns:
  48. id:
  49. type: integer
  50. primary: true
  51. autoincrement: true
  52. name:
  53. type: string
  54. notnull: true
  55. options:
  56. type: InnoDB
  57. collate: utf8_general_ci
  58. charset: utf8
  59. relations:
  60. Users:
  61. class: User
  62. refClass: UserRight
  63. local: right_id
  64. foreign: user_id
  65.  
  66. UserRight:
  67. tableName: user_rights
  68. columns:
  69. user_id:
  70. type: integer
  71. unsigned: true
  72. right_id:
  73. type: integer
  74. unsigned: true
  75. relations:
  76. User:
  77. local: user_id
  78. foreign: id
  79. onDelete: CASCADE
  80. Right:
  81. local: right_id
  82. foreign: id
Add Comment
Please, Sign In to add comment