Darstellung
CustomerGroup
Tabelle: ltt_customer_group
Domain: CustomerGroup · com.reybex.domain.wws
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 | Ja | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
name | varchar(75) | Ja | — | Bezeichnung / Name (Domain: name) |
code | varchar(75) | Ja | — | Code / Kurzkennzeichen (Domain: code) |
parent_customer_group_id | bigint | Ja | — | Fremdschlüssel → parent customer group |
customer_group_id | bigint | Ja | — | Fremdschlüssel → customer group |
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) |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | 0 | Boolean: Customer Specific |
sync_net_price_to_marketplace | smallint | Ja | 0 | sync net price to marketplace |
collect_account_id | bigint | Ja | — | Fremdschlüssel → collect account |
price_synchronization | smallint | Ja | — | Domain-Feld priceSynchronization |
default_discount_for_sales_price_calculation | double(7, 4) | Ja | 0.0000 | Domain-Feld defaultDiscountForSalesPriceCalculation |
is_disabled | smallint | Ja | 0 | Boolean: Disabled |
sort_order | int | Ja | — | sort order |
report_id | bigint | Ja | — | Fremdschlüssel → report |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
customer_group_id | ltt_customer_group (id) |
parent_customer_group_id | ltt_customer_group (id) |
collect_account_id | account (id) |
report_id | ltt_report (id) |