Darstellung
SalesItemCustomerBundle
Tabelle: sales_item_customer_bundle
Domain: SalesItemCustomerBundle · com.reybex.domain.wws.sales
Modul: SAL
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) |
sales_item_id | bigint | Nein | — | Fremdschlüssel → sales item |
sub_customer_bundle | varchar(50) | Ja | — | Domain-Feld subCustomerBundle |
sub_customer_id | bigint | Nein | — | Fremdschlüssel → sub customer |
item_proportion_type | smallint | Nein | 0 | item proportion type |
item_proportion | decimal(20, 8) | Nein | — | Domain-Feld itemProportion |
bundle_version | varchar(20) | Ja | — | Domain-Feld bundleVersion |
is_delete | smallint | Ja | 0 | Soft-Delete (0 = aktiv, 1 = gelöscht) |
prod_job_id | bigint | Ja | — | Fremdschlüssel → prod job |
sales_goods_relation_id | bigint | Ja | — | Fremdschlüssel → sales goods relation |
date_created | datetime | Ja | — | Anlagezeitpunkt |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
description | varchar(100) | Ja | — | Beschreibung (Domain: description) |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
prod_job_id | sales_item (id) |
sales_goods_relation_id | sales_goods_relation (id) |
sales_item_id | sales_item (id) |
sub_customer_id | customer (id) |
tenant_id | company (tenant_id) |