| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- @startuml Database
-
- entity User {
- * id
- __
- * name
- * username
- * status
- * password
- _
- * role_id
- }
-
- entity Role {
- * id
- __
- * name
- }
-
- entity Customer {
- * id
- __
- * name
- * address
- * phone
- * npwp
- }
-
- entity Product {
- * id
- __
- * number
- * name
- * unit
- }
-
- entity Supplier {
- * id
- __
- * name
- * address
- * phone
- * email
- * npwp
- }
-
- entity Purchase {
- * id
- __
- * price
- * ppn11
- * qty
- * product_number
- __
- * product_id
- * supplier_id
- * user_id
- }
-
- entity Sales {
- * id
- __
- * price
- * ppn11
- * qty
- * invoice_number
- __
- * product_id
- * customer_id
- * user_id
- }
-
- entity StockProduct {
- * id
- __
- * product_number
- * invoice_number
- * amount
- __
- * product_id
- }
-
- User ||--|{ Role
- Purchase ||--|{ Product
- Purchase ||--|{ Supplier
- Purchase ||--|{ User
- Sales ||--|{ Product
- Sales ||--|{ Customer
- Sales ||--|{ User
- StockProduct ||--|| Product
|