Darstellung
ShippmentItem
Tabelle: shippment_item
Domain: ShippmentItem · com.reybex.domain.wws.shippment
Modul: SMP
Partner-Hinweise
- Daten liegen mandantengetrennt – bei SELECT fast immer
tenant_id = :mandantsetzen (Spalte ggf.TenantIdin älteren Tabellen). - Schreibende SQL (
INSERT/UPDATE/DELETE) nur in abgestimmten Export-/Report-Jobs (Transaktion BAS23) und nie ohne Freigabe durch reybex. - Für API-Integrationen bevorzugt die API statt direkter DB-Zugriffe.
Primärschlüssel
id
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
id | bigint auto_increment | Ja | — | Primärschlüssel (Domain: id) |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
shippment_id | bigint | Nein | — | Fremdschlüssel → shippment |
sales_item_id | bigint | Nein | — | Fremdschlüssel → sales item |
quantity | decimal(20, 8) | Nein | 0.00000000 | Menge |
create_packaging_item | smallint | Ja | 0 | create packaging item |
material_id | bigint | Ja | — | Fremdschlüssel → material |
packaging_id | bigint | Ja | — | Fremdschlüssel → packaging |
date_created | datetime | Ja | — | Anlagezeitpunkt |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
tenant_id | company (tenant_id) |
shippment_id | shippment (id) |
sales_item_id | sales_item (id) |
material_id | material (id) |
packaging_id | ltt_packaging (id) |