Advertisement
Aguezz

Kuliah - Data Warehouse - Data Warehouse

Jun 10th, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. @startuml "Database Design"
  2.  
  3. entity "employees" {}
  4.  
  5. entity "customers" {}
  6.  
  7. entity "suppliers" {}
  8.  
  9. entity "stores" {}
  10.  
  11. entity "clothes" {}
  12.  
  13. entity "sales_transactions" {
  14. employee_id : int <<fk>>
  15. supplier_id : int <<fk>>
  16. clothes_id : int <<fk>>
  17. --
  18. date : date
  19. unit_price : decimal
  20. quantity : int
  21. }
  22.  
  23. entity "purchase_transactions" {
  24. employee_id : int <<fk>>
  25. supplier_id : int <<fk>>
  26. clothes_id : int <<fk>>
  27. --
  28. date : date
  29. unit_price : decimal
  30. quantity : int
  31. }
  32.  
  33. entity "rental_transactions" {
  34. employee_id : int <<fk>>
  35. supplier_id : int <<fk>>
  36. clothes_id : int <<fk>>
  37. --
  38. date : date
  39. unit_price : decimal
  40. quantity : int
  41. }
  42.  
  43. stores --o{ employees
  44. stores --o{ clothes
  45.  
  46. employees --o{ purchase_transactions
  47. customers --o{ purchase_transactions
  48. clothes --o{ purchase_transactions
  49.  
  50. employees --o{ sales_transactions
  51. suppliers --o{ sales_transactions
  52. clothes --o{ sales_transactions
  53.  
  54. employees --o{ rental_transactions
  55. customers --o{ rental_transactions
  56. clothes --o{ rental_transactions
  57.  
  58. @enduml
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement