| 7 | | Not null атрибути означени со '''bold''' |
| | 9 | Users (__'''userId'''__, '''username''', '''password''', '''full_name''', '''email''', '''role''', '''is_active''') |
| | 10 | |
| | 11 | Customer (__'''customerId'''__, '''name''', '''email''', '''phone''', '''address''') |
| | 12 | |
| | 13 | Product (__'''productId'''__, '''name''', '''description''', '''sku''', '''unit_price''', '''reorder_level''', categoryId*(Category), supplierId*(Supplier)) |
| | 14 | |
| | 15 | Category (__'''categoryId'''__, '''name''', '''description''') |
| | 16 | |
| | 17 | Supplier (__'''supplierId'''__, '''name''', '''contact_person''', '''phone''', '''email''', '''address''') |
| | 18 | |
| | 19 | Warehouse (__'''warehouseId'''__, '''name''', '''location''', '''capacity''') |
| | 20 | |
| | 21 | Sale (__'''saleId'''__, '''date_time''', '''total_amount''', userId*(Users), customerId*(Customer), warehouseId*(Warehouse)) |
| | 22 | |
| | 23 | !SaleItem (__'''saleId*(Sale)'''__, __'''productId*(Product)'''__, '''quantity''', '''unit_price_at_sale''') |
| | 24 | |
| | 25 | !PurchaseOrder (__'''poId'''__, '''order_date''', '''expected_delivery_date''', '''status''', supplierId*(Supplier), warehouseId*(Warehouse)) |
| | 26 | |
| | 27 | !PurchaseOrderItem (__'''poId*(!PurchaseOrder)'''__, __'''productId*(Product)'''__, '''quantity''', '''unit_cost''') |
| | 28 | |
| | 29 | !WarehouseStock (__'''warehouseId*(Warehouse)'''__, __'''productId*(Product)'''__, '''quantity_on_hand''', '''last_updated''') |