Guest User

Untitled

a guest
Jun 14th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. User:
  2. User_1:
  3. username: tboerger
  4. password: p1550r
  5. email: t.boerger@mosez.net
  6. User_2:
  7. username: foo
  8. password: qayqay
  9. email: t.boerger@mosez.net
  10. User_3:
  11. username: bar
  12. password: qayqay
  13. email: t.boerger@mosez.net
  14. User_4:
  15. username: baz
  16. password: qayqay
  17. email: t.boerger@mosez.net
  18.  
  19. UserProfile:
  20. UserProfile_1:
  21. User: User_1
  22. first_name: Thomas
  23. last_name: Boerger
  24. UserProfile_2:
  25. User: User_2
  26. first_name: Foo
  27. last_name: Haha
  28. UserProfile_3:
  29. User: User_3
  30. first_name: Bar
  31. last_name: Haha
  32. UserProfile_4:
  33. User: User_4
  34. first_name: Baz
  35. last_name: Haha
  36.  
  37. Right:
  38. Right_1:
  39. title: admin
  40. internal: admin
  41.  
  42. Group:
  43. Group_1:
  44. title: admin
  45. internal: admin
  46.  
  47. GroupRight:
  48. GroupRight_1:
  49. Group: Group_1
  50. Right: Right_1
  51.  
  52. UserGroup:
  53. UserGroup_1:
  54. Group: Group_1
  55. User: User_1
  56. UserGroup_2:
  57. Group: Group_1
  58. User: User_2
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. options:
  69. type: INNODB
  70. collate: utf8_unicode_ci
  71. charset: utf8
  72.  
  73. User:
  74. columns:
  75. id:
  76. type: integer(10)
  77. primary: true
  78. autoincrement: true
  79. slug:
  80. type: string(64)
  81. username:
  82. type: string(64)
  83. password:
  84. type: string(64)
  85. email:
  86. type: string(64)
  87. indexes:
  88. username:
  89. fields: [username]
  90. type: unique
  91. actAs:
  92. Activation:
  93. Authorable:
  94. Timestampable:
  95. Sluggable:
  96. fields: [username]
  97. type: string
  98. length: 64
  99. unique: true
  100. canUpdate: true
  101. relations:
  102. Profile:
  103. class: UserProfile
  104. local: id
  105. foreign: user_id
  106. type: one
  107. foreignType: one
  108. foreignAlias: User
  109. Created:
  110. class: User
  111. local: created_by
  112. foreign: id
  113. type: one
  114. foreignType: many
  115. foreignAlias: CreatedUsers
  116. Updated:
  117. class: User
  118. local: updated_by
  119. foreign: id
  120. type: one
  121. foreignType: many
  122. foreignAlias: UpdatedUsers
  123. Groups:
  124. class: Group
  125. local: user_id
  126. foreign: group_id
  127. refClass: UserGroup
  128. foreignAlias: Users
  129. Rights:
  130. class: Right
  131. local: user_id
  132. foreign: right_id
  133. refClass: UserRight
  134. foreignAlias: Users
  135.  
  136.  
  137. UserProfile:
  138. columns:
  139. user_id:
  140. type: integer(10)
  141. primary: true
  142. first_name:
  143. type: string(255)
  144. last_name:
  145. type: string(255)
  146. relations:
  147. User:
  148. class: User
  149. local: user_id
  150. foreign: id
  151. type: one
  152. foreignType: one
  153. foreignAlias: Profile
  154.  
  155. Group:
  156. columns:
  157. id:
  158. type: integer(10)
  159. primary: true
  160. autoincrement: true
  161. internal:
  162. type: string(64)
  163. title:
  164. type: string(64)
  165. description:
  166. type: string(2000)
  167. indexes:
  168. internal:
  169. fields: [internal]
  170. type: unique
  171. actAs:
  172. Activation:
  173. Authorable:
  174. Timestampable:
  175. relations:
  176. Users:
  177. class: User
  178. refClass: UserGroup
  179. local: group_id
  180. foreign: user_id
  181. foreignAlias: Groups
  182. Rights:
  183. class: Right
  184. local: group_id
  185. foreign: right_id
  186. refClass: GroupRight
  187. foreignAlias: Groups
  188.  
  189. Right:
  190. columns:
  191. id:
  192. type: integer(10)
  193. primary: true
  194. autoincrement: true
  195. internal:
  196. type: string(64)
  197. title:
  198. type: string(64)
  199. description:
  200. type: string(2000)
  201. actAs:
  202. Activation:
  203. Authorable:
  204. Timestampable:
  205.  
  206. GroupRight:
  207. columns:
  208. group_id:
  209. type: integer(10)
  210. primary: true
  211. right_id:
  212. type: integer(10)
  213. primary: true
  214. relations:
  215. Group:
  216. local: group_id
  217. onDelete: CASCADE
  218. Right:
  219. local: right_id
  220. onDelete: CASCADE
  221. actAs:
  222. Timestampable:
  223.  
  224. UserRight:
  225. columns:
  226. user_id:
  227. type: integer(10)
  228. primary: true
  229. right_id:
  230. type: integer(10)
  231. primary: true
  232. relations:
  233. User:
  234. local: user_id
  235. onDelete: CASCADE
  236. Right:
  237. local: right_id
  238. onDelete: CASCADE
  239. actAs:
  240. Timestampable:
  241.  
  242. UserGroup:
  243. columns:
  244. user_id:
  245. type: integer(10)
  246. primary: true
  247. group_id:
  248. type: integer(10)
  249. primary: true
  250. relations:
  251. User:
  252. local: user_id
  253. onDelete: CASCADE
  254. Group:
  255. local: group_id
  256. onDelete: CASCADE
  257. actAs:
  258. Timestampable:
Add Comment
Please, Sign In to add comment