database.puml 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. * transaction_status_id
  32. * user_id
  33. * customer_number
  34. * outlet_id
  35. }
  36. entity TransactionDetail {
  37. * id
  38. __
  39. * price
  40. discount
  41. * quantity
  42. * transaction_id
  43. * laundry_id
  44. * product_id
  45. }
  46. entity Laundry {
  47. * id
  48. __
  49. * name
  50. * price
  51. * unit
  52. }
  53. entity TransactionStatus {
  54. * id
  55. __
  56. * name
  57. }
  58. entity User {
  59. * id
  60. __
  61. * name
  62. * phone
  63. * email
  64. * status
  65. * password
  66. * gender_id
  67. * role_id
  68. * outlet_id
  69. }
  70. entity Role {
  71. * id
  72. __
  73. * name
  74. }
  75. entity Expense {
  76. * id
  77. __
  78. * description
  79. * amount
  80. * user_id
  81. * outlet_id
  82. }
  83. entity Product {
  84. * id
  85. __
  86. * name
  87. * price
  88. * unit
  89. }
  90. entity Discount {
  91. * id
  92. __
  93. * discount
  94. }
  95. Mutation ||--|| Expense
  96. Mutation ||--|{ Outlet
  97. Mutation ||--|| Transaction
  98. Transaction }|--|| TransactionDetail
  99. Transaction ||--|{ TransactionStatus
  100. Transaction ||--|{ Outlet
  101. Transaction ||--|{ Customer
  102. Transaction ||--|{ User
  103. Expense ||--|{ User
  104. Expense ||--|{ Outlet
  105. User ||--|{ Role
  106. User ||--|{ Outlet
  107. TransactionDetail ||--|{ Laundry
  108. TransactionDetail ||--|{ Product