Guest User

Untitled

a guest
Aug 30th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. MenuItem:
  2. actAs: { Timestampable: ~ }
  3. columns:
  4. name: { type: string(255), notnull: true, unique: true }
  5. label: { type: string(255), notnull: true }
  6. displaymethod_id: { type: integer, notnull: true }
  7. default_protocol: { type: string(5), notnull: true }
  8. default_server: { type: string(255), notnull: true }
  9. default_url: { type: string(255), notnull: true }
  10. picture: { type: string(255), notnull: false }
  11. auth_required: { type: boolean, notnull: true }
  12. relations:
  13. DisplayMethod: { local: displaymethod_id, foreign: id, foreignAlias: MenuItem }
  14. Users: { refClass: MenuItemUser, local: item_id, foreign: user_id, class: sfGuardUser }
  15.  
  16. DisplayMethod:
  17. actAs: { Timestampable: ~ }
  18. columns:
  19. name: { type: string(255), notnull: true, unique: true }
  20. label: { type: string(255), notnull: true }
  21.  
  22. MenuItemUser:
  23. actAs: { Timestampable: ~ }
  24. columns:
  25. user_id: { type: integer, notnull: true}
  26. item_id: { type: integer, notnull: true }
  27. item_order: { type: integer, notnull: true }
  28. item_user: { type: string(255), notnull: false }
  29. item_pass: { type: string(255), notnull: false }
  30. relations:
  31. MenuItem: { local: item_id, foreign: id, foreignAlias: MenuItemUsers }
  32. sfGuardUser: { local: user_id, foreign: id, foreignAlias: MenuItemUsers }
Add Comment
Please, Sign In to add comment