| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- @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
- __
- * number
- * status
- __
- * supplier_id
- * user_id
- }
-
- entity Sales {
- * id
- __
- * number
- * status
- __
- * customer_id
- * user_id
- }
-
- entity StockProduct {
- * id
- __
- * purchase_number
- * sale_number
- * amount
- __
- * product_id
- }
-
- entity Price {
- * id
- __
- * price
- __
- * product_id
- * customer_id
- * supplier_id
- }
-
- entity SaleDetail {
- * id
- __
- * price
- * ppn
- * qty
- __
- * sale_id
- * product_id
- }
-
- entity PurchaseDetail {
- * id
- __
- * price
- * ppn
- * qty
- __
- * purchase_id
- * product_id
- }
-
- User ||--|{ Role
- Purchase ||--|{ Supplier
- Purchase ||--|{ User
- Sales ||--|{ Customer
- Sales ||--|{ User
- StockProduct ||--|{ Product
- PurchaseDetail ||--|{ Purchase
- PurchaseDetail ||--|{ Product
- SaleDetail ||--|{ Sales
- SaleDetail ||--|{ Product
- Product ||--|| Price
|