Darstellung
MaterialAttributeValue
Tabelle: material_attribute_value
Domain: MaterialAttributeValue · com.reybex.domain.wws.material.variant
Modul: BAS
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) |
material_id | bigint | Nein | — | Fremdschlüssel → material |
attribute_id | bigint | Nein | — | Fremdschlüssel → attribute |
attribute_option_id | bigint | Ja | — | Fremdschlüssel → attribute option |
number_value | bigint | Ja | — | Domain-Feld numberValue |
decimal_value | double | Ja | — | Domain-Feld decimalValue |
text | text collate utf8mb4_unicode_ci | Ja | — | Domain-Feld text |
is_active | smallint | Ja | — | Aktiv-Flag (Domain: isActive) |
is_delete | smallint | Ja | 0 | Soft-Delete (0 = aktiv, 1 = gelöscht) |
is_constant | smallint | Ja | 0 | Boolean: Constant |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
material_id | material (id) |
attribute_id | attribute (id) |
attribute_option_id | attribute_option (id) |
tenant_id | company (tenant_id) |