# DB_SCHEMA > Schemat bazy danych — tabele, kolumny, FK, indeksy. ## delivery_statuses Tabela znormalizowanych statusów przesyłek. Zastępuje hardcoded stałe z `DeliveryStatus.php` (od Phase 108). | Kolumna | Typ | Opis | |---------|-----|------| | id | INT UNSIGNED PK | Auto-increment | | key | VARCHAR(50) UNIQUE | Klucz statusu (np. `in_transit`) | | label_pl | VARCHAR(100) | Etykieta po polsku | | color | VARCHAR(7) | Kolor tła w formacie hex (`#rrggbb`) | | sort_order | TINYINT UNSIGNED | Kolejność sortowania | | is_terminal | TINYINT(1) | 1 = status końcowy (nie można cofnąć) | | is_system | TINYINT(1) | 1 = status systemowy (nieedytowalny z UI) | | created_at | DATETIME | Data utworzenia | **Statusy systemowe** (is_system=1, is_terminal=1): `delivered`, `returned`, `cancelled`. **Migracja**: `20260427_000103_create_delivery_statuses_table.sql`