Darstellung
variant_config
Tabelle: variant_config
Domain: Keine zugeordnete Domain-Entität (Hilfstabelle, Legacy oder mandantenspezifisch).
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 |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) |
material_id | bigint | Ja | — | Fremdschlüssel → material |
description | varchar(50) | Ja | — | Beschreibung |
source | smallint | Ja | 0 | 0=Einkauf,1=Vertrieb,2=Produktion,3=Lager |
ref_doc_id | bigint | Ja | — | Fremdschlüssel → ref doc |
ean_code | varchar(30) | Ja | — | ean code |
sales_price | double | Ja | 0 | sales price |
purchase_price | double | Ja | 0 | purchase price |
price | double | Ja | 0 | price |
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) |