Darstellung
MaterialAttribute
Tabelle: material_attribute
Domain: MaterialAttribute · 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 | 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 |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | 0 | Boolean: Customer Specific |
is_master_attribute | smallint | Ja | 0 | Boolean: Master Attribute |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
material_id | material (id) |
attribute_id | attribute (id) |
Indizes / Unique
| Name | Unique | Spalten |
|---|---|---|
| unique | Nein | tenant_id, material_id, attribute_id |