Guest User

Untitled

a guest
May 30th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. sfGuardGroup:
  2. actAs:
  3. Timestampable: ~
  4. columns:
  5. id:
  6. type: integer
  7. primary: true
  8. autoincrement: true
  9. name:
  10. type: string(255)
  11. unique: true
  12. description:
  13. type: string(1000)
  14. relations:
  15. users:
  16. class: sfGuardUser
  17. refClass: sfGuardUserGroup
  18. local: group_id
  19. foreign: user_id
  20. foreignAlias: Groups
  21. permissions:
  22. class: sfGuardPermission
  23. local: group_id
  24. foreign: permission_id
  25. refClass: sfGuardGroupPermission
  26. foreignAlias: Groups
  27.  
  28. sfGuardPermission:
  29. actAs:
  30. Timestampable: ~
  31. columns:
  32. id:
  33. type: integer
  34. primary: true
  35. autoincrement: true
  36. name:
  37. type: string(255)
  38. unique: true
  39. description:
  40. type: string(1000)
  41.  
  42. sfGuardGroupPermission:
  43. options:
  44. symfony:
  45. form: false
  46. filter: false
  47. actAs:
  48. Timestampable: ~
  49. columns:
  50. group_id:
  51. type: integer
  52. primary: true
  53. permission_id:
  54. type: integer
  55. primary: true
  56. relations:
  57. sfGuardGroup:
  58. local: group_id
  59. onDelete: CASCADE
  60. sfGuardPermission:
  61. local: permission_id
  62. onDelete: CASCADE
  63.  
  64. sfGuardUser:
  65. actAs:
  66. Timestampable: ~
  67. columns:
  68. id:
  69. type: integer
  70. primary: true
  71. autoincrement: true
  72. username:
  73. type: string(128)
  74. notnull: true
  75. unique: true
  76. algorithm:
  77. type: string(128)
  78. default: sha1
  79. notnull: true
  80. salt:
  81. type: string(128)
  82. password:
  83. type: string(128)
  84. is_active:
  85. type: boolean
  86. default: 1
  87. is_super_admin:
  88. type: boolean
  89. default: false
  90. last_login:
  91. type: timestamp
  92. email:
  93. type: string(80)
  94. unique: true
  95. notnull: true
  96. fullname: string(255)
  97. image: string(255)
  98. specialization: clob
  99. registration_ip:
  100. type: string(15)
  101. validate:
  102. type: string(17)
  103. last_request: timestamp
  104. indexes:
  105. is_active_idx:
  106. fields: [is_active]
  107. relations:
  108. groups:
  109. class: sfGuardGroup
  110. local: user_id
  111. foreign: group_id
  112. refClass: sfGuardUserGroup
  113. foreignAlias: Users
  114. permissions:
  115. class: sfGuardPermission
  116. local: user_id
  117. foreign: permission_id
  118. refClass: sfGuardUserPermission
  119. foreignAlias: Users
  120. Directions:
  121. class: Direction
  122. local: user_id
  123. foreign: direction_id
  124. foreignAlias: Managers
  125. refClass: Manager__Direction
  126. Countries:
  127. class: Country
  128. local: user_id
  129. foreign: country_id
  130. foreignAlias: Managers
  131. refClass: Manager__Country
  132.  
  133. Manager__Country:
  134. options:
  135. symfony:
  136. filter: false
  137. form: false
  138. columns:
  139. user_id: { type: integer, primary: true }
  140. country_id: { type: integer, primary: true }
  141. relations:
  142. Manager:
  143. class: sfGuardUser
  144. onDelete: cascade
  145. local: user_id
  146. foreign: id
  147. Country:
  148. onDelete: cascade
  149.  
  150.  
  151. Manager__Direction:
  152. options:
  153. symfony:
  154. filter: false
  155. form: false
  156. columns:
  157. user_id: { type: integer, primary: true }
  158. direction_id: { type: integer, primary: true }
  159. relations:
  160. Manager:
  161. class: sfGuardUser
  162. onDelete: cascade
  163. local: user_id
  164. foreign: id
  165. Direction:
  166. onDelete: cascade
  167. local: direction_id
  168. foreign: id
  169.  
  170.  
  171.  
  172. sfGuardUserPermission:
  173. options:
  174. symfony:
  175. form: false
  176. filter: false
  177. actAs:
  178. Timestampable: ~
  179. columns:
  180. user_id:
  181. type: integer
  182. primary: true
  183. permission_id:
  184. type: integer
  185. primary: true
  186. relations:
  187. sfGuardUser:
  188. local: user_id
  189. onDelete: CASCADE
  190. sfGuardPermission:
  191. local: permission_id
  192. onDelete: CASCADE
  193.  
  194. sfGuardUserGroup:
  195. options:
  196. symfony:
  197. form: false
  198. filter: false
  199. actAs:
  200. Timestampable: ~
  201. columns:
  202. user_id:
  203. type: integer
  204. primary: true
  205. group_id:
  206. type: integer
  207. primary: true
  208. relations:
  209. sfGuardUser:
  210. local: user_id
  211. onDelete: CASCADE
  212. sfGuardGroup:
  213. local: group_id
  214. onDelete: CASCADE
  215.  
  216. sfGuardRememberKey:
  217. options:
  218. symfony:
  219. form: false
  220. filter: false
  221. actAs:
  222. Timestampable: ~
  223. columns:
  224. id:
  225. type: integer
  226. primary: true
  227. autoincrement: true
  228. user_id:
  229. type: integer
  230. remember_key:
  231. type: string(32)
  232. ip_address:
  233. type: string(50)
  234. primary: true
  235. relations:
  236. sfGuardUser:
  237. local: user_id
  238. foreignAlias: RememberKeys
  239. foreignType: one
  240. onDelete: CASCADE
Add Comment
Please, Sign In to add comment