jhipster-jdl-3.jh 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. entity AccountDetails{
  2. profile Profile,
  3. firstName String,
  4. lastName String,
  5. password Password,
  6. securityQuestion String,
  7. securityAnswer SecurityAnswer,
  8. email String,
  9. phoneNumber String
  10. }
  11. entity Profile{
  12. account AccountDetails,
  13. profilePic Photo,
  14. bio String,
  15. featurePhotos Album,
  16. private Boolean
  17. }
  18. entity Post {
  19. profile Profile,
  20. comment Comment,
  21. commentCount Long,
  22. timeStamp Date,
  23. scheduleTime Date,
  24. content String,
  25. photo Photo,
  26. video Video,
  27. memo Memo,
  28. likes Long,
  29. dislikes Long
  30. }
  31. entity Comment {
  32. profile Profile,
  33. timeStamp Date,
  34. content String,
  35. likes Long,
  36. dislikes Long
  37. }
  38. entity Album{
  39. photo Photo,
  40. name String,
  41. description String,
  42. creationDate Date
  43. }
  44. entity Friend{
  45. user Profile,
  46. friend Profile,
  47. status String,
  48. topFriend Boolean
  49. }
  50. entity Memo{
  51. memoURL String,
  52. size Long,
  53. type String
  54. }
  55. entity Video {
  56. videoURL String,
  57. size Long,
  58. type String
  59. }
  60. entity Photo {
  61. userId Long,
  62. imageURL String,
  63. size Long,
  64. type String
  65. }
  66. relationship OneToOne {
  67. AccountDetails to User
  68. }
  69. relationship OneToOne {
  70. User to Profile
  71. }
  72. relationship OneToMany {
  73. Profile to Post
  74. }
  75. relationship OneToMany {
  76. Post to Comment
  77. }
  78. relationship OneToMany {
  79. Profile to Album
  80. }
  81. relationship ManyToMany {
  82. Album to Photo
  83. }
  84. relationship ManyToMany{
  85. Post to Photo
  86. }
  87. relationship ManyToMany{
  88. Post to Video
  89. }
  90. relationship ManyToMany{
  91. Post to Memo
  92. }
  93. relationship OneToMany{
  94. Profile to Friend{user}
  95. }
  96. relationship ManyToOne{
  97. Friend{friend} to Profile
  98. }