Guest User

Untitled

a guest
Oct 24th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. UserCategory:
  2. actAs: { Timestampable: ~ }
  3. columns:
  4. user_types: { type: string(255), notnull: true, unique: true }
  5.  
  6. User:
  7. actAs: { Timestampable: ~ }
  8. columns:
  9. user_category_id: { type: integer, notnull: true }
  10. first_name: { type: string(255), notnull: true }
  11. last_name: { type: string(255), notnull: true }
  12. email: { type: string(255), notnull: true, unique: true }
  13. password: { type: string(255), notnull: true }
  14. token: { type: string(255), notnull: true, unique: true }
  15. date_of_birth: { type: date, notnull: true }
  16. gender:
  17. type: enum
  18. values: [male, female]
  19. is_activated: { type: boolean, notnull: true, default: 0 }
  20. relations:
  21. UserCategory: { onDelete: CASCADE, local: user_category_id, foreign: id, foreignAlias: Users }
  22.  
  23. UserQualification:
  24. actAs: { Timestampable: ~ }
  25. columns:
  26. user_id: { type: integer, notnull: true }
  27. country: { type: string(255) }
  28. type_of_institution: { type: string(255) }
  29. university: { type: string(255) }
  30. college: { type: string(255) }
  31. degree: { type: string(255) }
  32. subject_of_specialization: { type: string(255) }
  33. study_year_from_month: { type: integer(2) }
  34. study_year_from_year: { type: year }
  35. study_year_to_month: { type: integer(2) }
  36. study_year_to_year: { type: year }
  37. relations:
  38. User: { onDelete: CASCADE, local: user_id, foreign: id, foreignAlias: Qualifications }
Add Comment
Please, Sign In to add comment