Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

110 Zeilen
2.6 KiB

  1. classDiagram
  2. class ShippingCompany {
  3. +Int id*
  4. +String name*
  5. +Date createdAt*
  6. +Collection~Vessel~ vessels*
  7. }
  8. class Vessel {
  9. +Int id*
  10. +ShippingCompany company*
  11. +String name*
  12. +String type*
  13. +Date createdAt*
  14. +Collection~Trip~ trips*
  15. }
  16. class Trip {
  17. +Int id*
  18. +Vessel vessel*
  19. +String pilotageReference*
  20. +String captainName
  21. +Location startLocation*
  22. +Location endLocation*
  23. +Date startDate*
  24. +Date endDate*
  25. +Date createdAt*
  26. +Collection~TripLocation~ tripLocations*
  27. +Collection~UserTrip~ userTrips*
  28. }
  29. class TripLocation {
  30. +Int id*
  31. +Trip trip*
  32. +Location location*
  33. +Date date*
  34. +Date createdAt*
  35. }
  36. class Location {
  37. +Int id*
  38. +Zone zone*
  39. +String name*
  40. +Date createdAt*
  41. +Collection~TripLocation~ tripLocations*
  42. +Collection~UserTripLocation~ userTripLocations*
  43. +Collection~UserTripWorkLog~ startWorkLogs*
  44. +Collection~UserTripWorkLog~ endWorkLogs*
  45. }
  46. class Zone {
  47. +Int id*
  48. +String name*
  49. +Date createdAt*
  50. +Collection~Location~ locations*
  51. }
  52. class User {
  53. +Int id*
  54. +String firstName*
  55. +String lastName*
  56. +String email*
  57. +String pilotageId*
  58. +Boolean active*
  59. +Date createdAt*
  60. +Collection~UserTrip~ userTrips*
  61. }
  62. class UserTrip {
  63. +Int id*
  64. +Trip trip*
  65. +User user*
  66. +String captainName*
  67. +Date startDate*
  68. +Date endDate*
  69. +Date createdAt*
  70. +Collection~UserTripLocation~ tripLocations*
  71. +Collection~UserTripWorkLog~ workLogs*
  72. }
  73. class UserTripLocation {
  74. +Int id*
  75. +UserTrip userTrip*
  76. +Location location*
  77. +Date plannedDate*
  78. +Date createdAt*
  79. }
  80. class UserTripWorkLog {
  81. +Int id*
  82. +UserTrip userTrip*
  83. +Location startLocation*
  84. +Location endLocation*
  85. +Date startDate*
  86. +Date endDate*
  87. +Date createdAt*
  88. }
  89. ShippingCompany "1" -- "*" Vessel
  90. Vessel "1" -- "*" Trip
  91. Trip "1" -- "*" TripLocation
  92. Trip "1" -- "*" UserTrip
  93. TripLocation "1" -- "1" Location
  94. UserTrip "1" -- "*" UserTripWorkLog
  95. UserTrip "1" -- "*" UserTripLocation
  96. UserTripLocation "1" -- "1" Location
  97. UserTripWorkLog "1" -- "1" Location : startLocation
  98. UserTripWorkLog "1" -- "1" Location : endLocation
  99. User "1" -- "*" UserTrip
  100. Zone "1" -- "*" Location