database.puml 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. @startuml Database
  2. entity Outlet {
  3. * id
  4. __
  5. * outlet_number
  6. * name
  7. * address
  8. * phone
  9. }
  10. entity Customer {
  11. * id
  12. __
  13. * customer_number
  14. * name
  15. * phone
  16. * address
  17. * gender
  18. }
  19. entity Mutation {
  20. * id
  21. __
  22. * type
  23. * amount
  24. * outlet_id
  25. transaction_id
  26. expense_id
  27. }
  28. entity Transaction {
  29. * id
  30. __
  31. * transaction_number
  32. discount
  33. * transaction_status_id
  34. * user_id
  35. * customer_id
  36. * outlet_id
  37. }
  38. entity TransactionDetail {
  39. * id
  40. __
  41. * price
  42. discount
  43. * quantity
  44. * transaction_id
  45. * laundry_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. * address
  66. * status
  67. * password
  68. * gender_id
  69. * role_id
  70. * outlet_id
  71. }
  72. entity Role {
  73. * id
  74. __
  75. * name
  76. }
  77. entity Expense {
  78. * id
  79. __
  80. * expense_number
  81. * description
  82. * amount
  83. * user_id
  84. * outlet_id
  85. }
  86. Mutation }|--|| Expense
  87. Mutation }|--|| Transaction
  88. Mutation ||--|{ Outlet
  89. Transaction }|--|| TransactionDetail
  90. Transaction ||--|{ TransactionStatus
  91. Transaction ||--|{ Outlet
  92. Transaction ||--|{ Customer
  93. Transaction ||--|{ User
  94. Expense ||--|{ User
  95. Expense ||--|{ Outlet
  96. User ||--|{ Role
  97. User ||--|{ Outlet
  98. TransactionDetail ||--|{ Laundry