Guest User

Untitled

a guest
Jul 9th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. sfGuardGroup:
  2. actAs: [Timestampable]
  3. columns:
  4. id:
  5. type: integer(4)
  6. primary: true
  7. autoincrement: true
  8. name:
  9. type: string(255)
  10. unique: true
  11. description: string(1000)
  12. relations:
  13. users:
  14. class: sfGuardUser
  15. refClass: sfGuardUserGroup
  16. local: group_id
  17. foreign: user_id
  18. foreignAlias: Groups
  19. permissions:
  20. class: sfGuardPermission
  21. local: group_id
  22. foreign: permission_id
  23. refClass: sfGuardGroupPermission
  24. foreignAlias: Groups
  25.  
  26. sfGuardPermission:
  27. actAs: [Timestampable]
  28. columns:
  29. id:
  30. type: integer(4)
  31. primary: true
  32. autoincrement: true
  33. name:
  34. type: string(255)
  35. unique: true
  36. description: string(1000)
  37.  
  38. sfGuardGroupPermission:
  39. actAs: [Timestampable]
  40. columns:
  41. group_id:
  42. type: integer(4)
  43. primary: true
  44. permission_id:
  45. type: integer(4)
  46. primary: true
  47. relations:
  48. sfGuardGroup:
  49. local: group_id
  50. onDelete: CASCADE
  51. sfGuardPermission:
  52. local: permission_id
  53. onDelete: CASCADE
  54.  
  55. sfGuardUser:
  56. actAs: [Timestampable]
  57. columns:
  58. id:
  59. type: integer(4)
  60. primary: true
  61. autoincrement: true
  62. concession_id:
  63. type: integer(4)
  64. fournisseur_id:
  65. type: integer(4)
  66. username:
  67. type: string(128)
  68. notnull: true
  69. unique: true
  70. algorithm:
  71. type: string(128)
  72. default: sha1
  73. notnull: true
  74. salt: string(128)
  75. password: string(128)
  76. is_active:
  77. type: boolean
  78. default: 1
  79. last_login:
  80. type: timestamp
  81. firstname:
  82. type: string(128)
  83. lastname:
  84. type: string(128)
  85. notnull: true
  86. is_super_admin:
  87. type: boolean
  88. indexes:
  89. is_active_idx:
  90. fields: [is_active]
  91. relations:
  92. groups:
  93. class: sfGuardGroup
  94. local: user_id
  95. foreign: group_id
  96. refClass: sfGuardUserGroup
  97. foreignAlias: Users
  98. permissions:
  99. class: sfGuardPermission
  100. local: user_id
  101. foreign: permission_id
  102. refClass: sfGuardUserPermission
  103. foreignAlias: Users
  104. pbConcession:
  105. local: concession_id
  106. foreign: id
  107.  
  108. sfGuardUserPermission:
  109. actAs: [Timestampable]
  110. columns:
  111. user_id:
  112. type: integer(4)
  113. primary: true
  114. permission_id:
  115. type: integer(4)
  116. primary: true
  117. relations:
  118. sfGuardUser:
  119. local: user_id
  120. onDelete: CASCADE
  121. sfGuardPermission:
  122. local: permission_id
  123. onDelete: CASCADE
  124.  
  125. sfGuardUserGroup:
  126. actAs: [Timestampable]
  127. columns:
  128. user_id:
  129. type: integer(4)
  130. primary: true
  131. group_id:
  132. type: integer(4)
  133. primary: true
  134. relations:
  135. sfGuardUser:
  136. local: user_id
  137. onDelete: CASCADE
  138. sfGuardGroup:
  139. local: group_id
  140. onDelete: CASCADE
  141.  
  142. sfGuardRememberKey:
  143. actAs: [Timestampable]
  144. columns:
  145. id:
  146. type: integer(4)
  147. primary: true
  148. autoincrement: true
  149. user_id:
  150. type: integer(4)
  151. remember_key: string(32)
  152. ip_address:
  153. type: string(50)
  154. primary: true
  155. relations:
  156. sfGuardUser:
  157. local: user_id
  158. foreignAlias: RememberKeys
  159. foreignType: one
  160. onDelete: CASCADE
Add Comment
Please, Sign In to add comment