Guest User

Untitled

a guest
Jun 22nd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. sfGuardUserProfile:
  2. tableName: sf_guard_user_profile
  3. columns:
  4. user_id: { type: integer(4), notnull: true }
  5. email: { type: string(255) }
  6. name: { type: string(255) }
  7. relations:
  8. User:
  9. class: sfGuardUser
  10. local: user_id
  11. foreign: id
  12. foreignAlias: Profile
  13. onDelete: CASCADE
  14. Bookclubs:
  15. class: Bookclub
  16. refClass: Membership
  17. foreignAlias: Users
  18.  
  19. #User:
  20. # tableName: users
  21. # columns:
  22. # email: { type: string(255), notnull: true, unique: true }
  23. # name: { type: string(255), notnull: true }
  24. # password: { type: string(255), notnull: true }
  25. # relations:
  26. # Bookclubs:
  27. # class: Bookclub
  28. # refClass: Membership
  29. # foreignAlias: Users
  30.  
  31. Bookclub:
  32. tableName: bookclubs
  33. columns:
  34. name: { type: string(255), notnull: true, unique: true }
  35. relations:
  36. Users:
  37. class: sfGuardUser
  38. refClass: Membership
  39. foreignAlias: Bookclubs
  40.  
  41. Membership:
  42. tableName: memberships
  43. columns:
  44. user_id: { type: integer, notnull: true }
  45. bookclub_id: { type: integer, notnull: true }
  46. is_admin: { type: boolean, notnull: true }
  47. relations:
  48. sfGuardUserProfile:
  49. foreignAlias: Memberships
  50. Bookclub:
  51. foreignAlias: Memberships
  52.  
  53. Wallpost:
  54. tableName: wallposts
  55. actAs: { Timestampable: ~ }
  56. columns:
  57. user_id: { type: integer, notnull: true }
  58. bookclub_id: { type: integer, notnull: true }
  59. message: { type: string(255), notnull: true }
  60. relations:
  61. sfGuardUserProfile:
  62. foreignAlias: Wallposts
  63. Bookclub:
  64. foreignAlias: Wallposts
  65.  
  66. Blogpost:
  67. tableName: blogposts
  68. actAs: { Timestampable: ~ }
  69. columns:
  70. user_id: { type: integer, notnull: true }
  71. post: { type: string(10000), notnull: true }
  72. relations:
  73. sfGuardUserProfile:
  74. foreignAlias: Blogposts
  75.  
  76. Newspost:
  77. tableName: newsposts
  78. actAs: { Timestampable: ~ }
  79. columns:
  80. user_id: { type: integer, notnull: true }
  81. post: { type: string(10000), notnull: true }
  82. relations:
  83. sfGuardUserProfile:
  84. foreignAlias: Newsposts
  85.  
  86. Article:
  87. tableName: articles
  88. actAs: { Timestampable: ~ }
  89. columns:
  90. author: { type: string(255), notnull: true }
  91. title: { type: string(255), notnull: true }
  92. article: { type: string(10000), notnull: true }
Add Comment
Please, Sign In to add comment