Darstellung
MaterialAttributeActiveOption
Tabelle: material_attribute_active_option
Domain: MaterialAttributeActiveOption · 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 |
tenant_id | bigint | Ja | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
material_attribute_id | bigint | Ja | — | Fremdschlüssel → material attribute |
attribute_option_id | bigint | Ja | — | Fremdschlüssel → attribute option |
surcharge | double | Ja | — | Domain-Feld surcharge |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | 0 | Boolean: Customer Specific |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
material_attribute_id | material_attribute (id) |
attribute_option_id | attribute_option (id) |
Indizes / Unique
| Name | Unique | Spalten |
|---|---|---|
| unique | Nein | tenant_id, material_attribute_id, attribute_option_id |