Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. sfGuardUser:
  2. actAs:
  3. Timestampable: ~
  4. columns:
  5. id:
  6. type: integer(4)
  7. primary: true
  8. autoincrement: true
  9. username:
  10. type: string(128)
  11. notnull: true
  12. unique: true
  13. algorithm:
  14. type: string(128)
  15. default: sha1
  16. notnull: true
  17. salt:
  18. type: string(128)
  19. password:
  20. type: string(128)
  21. is_active:
  22. type: boolean
  23. default: 1
  24. is_super_admin:
  25. type: boolean
  26. default: false
  27. last_login:
  28. type: timestamp
  29. indexes:
  30. is_active_idx:
  31. fields: [is_active]
  32.  
  33. sfGuardUserProfile:
  34. columns:
  35. date_birth: {type: date }
  36. gender: { type: string(12)}
  37. nif: { type: string(12), notnull: true}
  38. address: { type: string(150) }
  39. city: { type: string(50), notnull: true}
  40. province: { type: string(50), notnull: true}
  41. zip_code: { type: string(8), notnull: true}
  42. country: { type: string(50)}
  43. telephone: { type: string(15), notnull: true }
  44. mobile: { type: string(15) }
  45. professional: { type: boolean,default:false }
  46. relations:
  47. User:
  48. class: sfGuardUser
  49. foreign: id
  50. local: user_id
  51. type: one
  52. onDelete: cascade
  53. foreignType: one
  54. foreignAlias: Profile
  55. DcFenixNewsletterSubscriptor:
  56. local: id
  57. foreign: user_id
  58. foreignAlias: Profile
  59.  
  60. DcFenixNewsletterSubscriberList:
  61. tableName: fenix_newsletter_suscriber_list
  62. actAs: { Timestampable: ~ }
  63. columns:
  64. name: { type: string(4000), notnull: true }
  65. description: { type: string(4000), notnull: true }
  66. relations:
  67. DcFenixNewsletterSubscriptor:
  68. local: id
  69. foreign: list_id
  70. foreignAlias: SubscriberList
  71.  
  72.  
  73.  
  74.  
  75. DcFenixNewsletterSubscriptor:
  76. tableName: fenix_newsletter_subscriptor
  77. columns:
  78. user_id: {type: integer, notnull: true, primary: true}
  79. list_id: {type: integer, notnull: true, primary: true}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement