database.puml 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. @startuml Database
  2. entity Outlet {
  3. * id
  4. __
  5. * name
  6. * address
  7. * phone
  8. }
  9. entity Customer {
  10. * id
  11. __
  12. * customer_number
  13. * name
  14. * phone
  15. * gender
  16. }
  17. entity Mutation {
  18. * id
  19. __
  20. * type
  21. * amount
  22. * outlet_id
  23. transaction_id
  24. expense_id
  25. }
  26. entity Transaction {
  27. * id
  28. __
  29. * transaction_number
  30. discount
  31. description
  32. * transaction_status_id
  33. * user_id
  34. * customer_number
  35. * outlet_id
  36. }
  37. entity TransactionDetail {
  38. * id
  39. __
  40. * price
  41. discount
  42. * quantity
  43. * transaction_id
  44. * laundry_id
  45. * product_id
  46. }
  47. entity Laundry {
  48. * id
  49. __
  50. * name
  51. * price
  52. * unit
  53. }
  54. entity TransactionStatus {
  55. * id
  56. __
  57. * name
  58. }
  59. entity User {
  60. * id
  61. __
  62. * name
  63. * phone
  64. * email
  65. * status
  66. * password
  67. * gender_id
  68. * role_id
  69. * outlet_id
  70. }
  71. entity Role {
  72. * id
  73. __
  74. * name
  75. }
  76. entity Expense {
  77. * id
  78. __
  79. * description
  80. * amount
  81. * user_id
  82. * outlet_id
  83. }
  84. entity Product {
  85. * id
  86. __
  87. * name
  88. * price
  89. * unit
  90. }
  91. entity Discount {
  92. * id
  93. __
  94. * discount
  95. }
  96. Mutation ||--|| Expense
  97. Mutation ||--|{ Outlet
  98. Mutation ||--|| Transaction
  99. Transaction }|--|| TransactionDetail
  100. Transaction ||--|{ TransactionStatus
  101. Transaction ||--|{ Outlet
  102. Transaction ||--|{ Customer
  103. Transaction ||--|{ User
  104. Expense ||--|{ User
  105. Expense ||--|{ Outlet
  106. User ||--|{ Role
  107. User ||--|{ Outlet
  108. TransactionDetail ||--|{ Laundry
  109. TransactionDetail ||--|{ Product