| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- @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
- * profit
- }
-
- entity Supplier {
- * id
- __
- * name
- * address
- * phone
- * email
- * npwp
- }
-
- entity Purchase {
- * id
- __
- * number
- * status
- __
- * supplier_id
- * user_id
- }
-
- entity Sale {
- * id
- __
- * number
- * status
- __
- * customer_id
- * user_id
- }
-
- entity StockProduct {
- * id
- __
- * purchase_number
- * sale_number
- * qty
- __
- * product_number
- }
-
- entity Price {
- * id
- __
- * price
- __
- * product_number
- * customer_id
- * supplier_id
- }
-
- entity SaleDetail {
- * id
- __
- * price
- * ppn
- * qty
- __
- * sale_number
- * product_number
- }
-
- entity PurchaseDetail {
- * id
- __
- * price
- * ppn
- * qty
- __
- * purchase_number
- * product_number
- }
-
- entity Ppn {
- * id
- __
- * ppn
- }
-
- User ||--|{ Role
- User }|--|| Purchase
- User }|--|| Sale
- Supplier }|--|| Purchase
- Supplier ||--|| Price
- Customer ||--|{ Sale
- Customer ||--|| Price
- Sale ||--|| SaleDetail
- Sale ||--|| Price
- Purchase ||--|| PurchaseDetail
- Purchase ||--|| Price
- Purchase ||--|{ StockProduct
- SaleDetail ||--|{ Product
- Sale ||--|{ StockProduct
- PurchaseDetail ||--|{ Product
- StockProduct ||--|{ Product
- Product ||--|| Price
|