Advertisement
Guest User

Untitled

a guest
Jan 15th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. @startuml
  2.  
  3. class ConcertInfo{
  4. genre: str
  5. when: DateTime
  6. event_name: str
  7. expected_payment: int
  8. description: str
  9. created: DateTime
  10. updated: DateTime
  11. }
  12.  
  13. class User{
  14. username: str
  15. password: str
  16. email: str
  17. first_name: str
  18. last_name: str
  19. user_type: str
  20. tel_number: str
  21. created: DateTime
  22. updated: DateTime
  23. }
  24.  
  25. class Decision{
  26. reason: str
  27. }
  28.  
  29. enum Status{
  30. ACTIVE
  31. DELETED
  32. TAKEN
  33. }
  34.  
  35. class InternalEvent{
  36. song_list: str
  37. needed_stuff: str
  38. owned_stuff: str
  39. instrumental_link: url
  40. comments: str
  41. created: DateTime
  42. updated: DateTime
  43. }
  44.  
  45. class Event{
  46. poster: file
  47. ticket_price: float
  48. active: bool
  49. is_filled: bool
  50. created: DateTime
  51. updated: DateTime
  52. }
  53.  
  54. class Comment{
  55. body: str
  56. username: str
  57. active: bool
  58. created: DateTime
  59. updated: DateTime
  60. }
  61.  
  62. class InternalEventUpdate << View >>{
  63. get(internal_event_id)
  64. form_valid()
  65. }
  66. class Negotiate << View >>{
  67. post(concert_times_id, price)
  68. }
  69. class Decline << View >>{
  70. post(concert_times_id)
  71. form_valid()
  72. }
  73. class Accept << View >>{
  74. post(concert_times_id, user_id)
  75. create_events(concert_times_id)
  76. }
  77. class BandUpdate << View >>{
  78. get(user_id)
  79. form_valid()
  80. }
  81.  
  82. Negotiate ..> ConcertInfo
  83. Accept ..> ConcertInfo
  84. Decline ..> ConcertInfo
  85. BandUpdate ..> User
  86. InternalEventUpdate ..> InternalEvent
  87.  
  88. ConcertInfo o-- User
  89. ConcertInfo *-- Decision
  90. ConcertInfo *-- Status
  91. ConcertInfo *-- InternalEvent
  92. ConcertInfo *-- Event
  93. User *-- Decision
  94. Event *-- Comment
  95.  
  96. @enduml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement