database.puml 903B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @startuml Database
  2. entity User {
  3. * id
  4. __
  5. * name
  6. * username
  7. * status
  8. * password
  9. _
  10. * role_id
  11. }
  12. entity Role {
  13. * id
  14. __
  15. * name
  16. }
  17. entity Customer {
  18. * id
  19. __
  20. * name
  21. * address
  22. * phone
  23. * npwp
  24. }
  25. entity Product {
  26. * id
  27. __
  28. * number
  29. * name
  30. * unit
  31. }
  32. entity Supplier {
  33. * id
  34. __
  35. * name
  36. * address
  37. * phone
  38. * email
  39. * npwp
  40. }
  41. entity Purchase {
  42. * id
  43. __
  44. * price
  45. * ppn11
  46. * qty
  47. * product_number
  48. __
  49. * product_id
  50. * supplier_id
  51. * user_id
  52. }
  53. entity Sales {
  54. * id
  55. __
  56. * price
  57. * ppn11
  58. * qty
  59. * invoice_number
  60. __
  61. * product_id
  62. * customer_id
  63. * user_id
  64. }
  65. entity StockProduct {
  66. * id
  67. __
  68. * product_number
  69. * invoice_number
  70. * amount
  71. __
  72. * product_id
  73. }
  74. User ||--|{ Role
  75. Purchase ||--|{ Product
  76. Purchase ||--|{ Supplier
  77. Purchase ||--|{ User
  78. Sales ||--|{ Product
  79. Sales ||--|{ Customer
  80. Sales ||--|{ User
  81. StockProduct ||--|| Product