Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. sfGuardUser:
  2. actAs: [Timestampable]
  3. columns:
  4. first_name: string(255)
  5. last_name: string(255)
  6. email_address:
  7. type: string(255)
  8. notnull: true
  9. unique: true
  10. username:
  11. type: string(128)
  12. notnull: true
  13. unique: true
  14. date_of_birth:
  15. type: date
  16. default: null
  17. terms:
  18. type: bool
  19. gender:
  20. type: boolean
  21. default: null
  22. newsletter:
  23. type: boolean
  24. default: 1
  25. found: #google or yahoo
  26. type: boolean
  27. bids_left:
  28. type: integer
  29. default: 0
  30. referred_by:
  31. type: string(128)
  32. algorithm:
  33. type: string(128)
  34. default: sha1
  35. notnull: true
  36. salt: string(128)
  37. password: string(128)
  38. is_active:
  39. type: boolean
  40. default: 1
  41. is_super_admin:
  42. type: boolean
  43. default: false
  44. last_login:
  45. type: timestamp
  46. indexes:
  47. is_active_idx:
  48. fields: [is_active]
  49. relations:
  50. Groups:
  51. class: sfGuardGroup
  52. local: user_id
  53. foreign: group_id
  54. refClass: sfGuardUserGroup
  55. foreignAlias: Users
  56. Permissions:
  57. class: sfGuardPermission
  58. local: user_id
  59. foreign: permission_id
  60. refClass: sfGuardUserPermission
  61. foreignAlias: Users
  62.  
  63.  
  64. sfGuardUserProfile:
  65. tableName: sf_guard_user_profile
  66. columns:
  67. id:
  68. type: integer(4)
  69. primary: true
  70. autoincrement: true
  71. user_id:
  72. type: integer(4)
  73. notnull: true
  74. email:
  75. type: string(80)
  76. fullname:
  77. type: string(80)
  78. validate:
  79. type: string(17)
  80. # Don't forget this!
  81. relations:
  82. User:
  83. class: sfGuardUser
  84. #foreign: id
  85. local: user_id
  86. type: one
  87. onDelete: cascade
  88. foreignType: one
  89. foreignAlias: Profile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement