123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. entity User {
  2. userId Long,
  3. }
  4. entity UserProfile {
  5. profileId Long,
  6. firstName String,
  7. lastName String,
  8. userStack String,
  9. }
  10. entity Cohort {
  11. cohortId Double,
  12. gradDate String
  13. }
  14. entity Employer {
  15. employerId Long,
  16. companyName String,
  17. city String,
  18. state String
  19. }
  20. entity Post {
  21. postId Long,
  22. timestamp LocalDate,
  23. content String,
  24. likes String,
  25. }
  26. entity Privacy {
  27. privacyId Long,
  28. publicView Boolean,
  29. cohortView Boolean,
  30. employerView Boolean
  31. }
  32. relationship ManyToOne {
  33. UserProfile{employer} to Employer
  34. }
  35. relationship ManyToOne {
  36. Post{poster} to User
  37. }
  38. relationship ManyToOne {
  39. UserProfile{cohort} to Cohort
  40. }
  41. relationship OneToOne {
  42. UserProfile{user} to User
  43. }
  44. relationship OneToOne {
  45. Post{poster} to User
  46. }
  47. relationship OneToOne {
  48. UserProfile{cohort} to Cohort
  49. }
  50. relationship OneToOne {
  51. UserProfile{employer} to Employer
  52. }
  53. relationship OneToOne {
  54. Post{privacySetting} to Privacy
  55. }