Advertisement
Guest User

Untitled

a guest
May 9th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. User:
  2. tableName: user
  3. columns:
  4. group_id:
  5. type: integer
  6. country_id:
  7. type: integer
  8. email:
  9. type: string(255)
  10. notnull: true
  11. password:
  12. type: string(255)
  13. notnull: true
  14. name:
  15. type: string(255)
  16. notnull: true
  17. last_login:
  18. type: timestamp
  19. superuser:
  20. type: boolean
  21. notnull: true
  22. default: false
  23. indexes:
  24. email:
  25. fields: email
  26. relations:
  27. Group:
  28. local: group_id
  29. foreign: id
  30. onDelete: SET NULL
  31. Country:
  32. local: country_id
  33. foreign: id
  34. onDelete: SET NULL
  35. Contacts:
  36. class: Contact
  37. local: user_id
  38. foreign: contact_id
  39. refClass: UserContact
  40. Customers:
  41. class: Customer
  42. local: user_id
  43. foreign: customer_id
  44. refClass: CustomerUser
  45. actAs: [Timestampable]
  46. options:
  47. type: InnoDB
  48. collate: utf8_unicode_ci
  49. charset: utf8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement