Darstellung
Attribute
Tabelle: attribute
Domain: Attribute · 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 | Ja | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
attribute_code | varchar(750) collate utf8mb4_general_ci | Ja | — | Domain-Feld attributeCode |
name | varchar(100) | Ja | — | Bezeichnung / Name (Domain: name) |
amazon_attribute_id | bigint | Ja | — | Fremdschlüssel → amazon attribute |
amazon_category_id | bigint | Ja | — | Fremdschlüssel → amazon category |
marketplace_attribute_code | varchar(50) | Ja | — | Domain-Feld marketplaceAttributeCode |
marketplace_id | varchar(50) | Ja | — | Fremdschlüssel → marketplace |
main_attribute_id | bigint | Ja | — | Fremdschlüssel → main attribute |
is_active | smallint | Ja | 0 | Aktiv-Flag |
is_accessory | smallint | Ja | 0 | Boolean: Accessory |
is_variable | smallint | Ja | 0 | Boolean: Variable |
is_mandatory | smallint | Ja | 0 | Domain-Feld isMandatory |
is_displayed_in_sales | smallint | Ja | 0 | Boolean: Displayed In Sales |
is_displayed_in_verification | smallint | Ja | — | Boolean: Displayed In Verification |
additional_charge_type | smallint | Ja | — | 0=pauschael,1=prozentual |
variable_type | smallint | Ja | — | 0=integer,1=decimal,2=text,3=checkbox |
min_length | double | Ja | — | manimale länge bei variablen datentypen, z.B. 10-25 Zeichen oder max. 12Meter |
max_length | double | Ja | — | maximale länge bei variablen datentypen |
unit_id | bigint | Ja | — | Fremdschlüssel → unit |
sub_system_ids | varchar(200) | Ja | — | Ids oder Codes von Fremdystemen ; getrennt, damit diese in reybex identifiziert werden können |
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) |
attribute_type_id | bigint | Ja | — | Fremdschlüssel → attribute type |
decimal_places | bigint | Ja | — | Domain-Feld decimalPlaces |
is_searchable | smallint | Ja | 0 | Boolean: Searchable |
is_variant_attribute | smallint | Ja | 0 | Boolean: Variant Attribute |
is_marketplace_custom_field | smallint | Ja | 0 | Boolean: Marketplace Custom Field |
attribute_usage_type | smallint | Ja | — | Domain-Feld attributeUsageType |
is_not_price_relevant_for_attribute | smallint | Ja | 0 | Boolean: Not Price Relevant For Attribute |
dynamic_query | text | Ja | — | Domain-Feld dynamicQuery |
is_not_stockable | smallint | Ja | 0 | Boolean: Not Stockable |
sort_order | int | Ja | — | Domain-Feld sortOrder |
is_delete | smallint | Ja | 0 | Soft-Delete (0 = aktiv, 1 = gelöscht) |
is_for_calculation | smallint | Ja | 0 | Boolean: For Calculation |
size | int | Ja | — | Domain-Feld size |
is_single_line | tinyint(1) | Ja | 0 | Boolean: Single Line |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
unit_id | ltt_unit (id) |
main_attribute_id | attribute (id) |
tenant_id | company (tenant_id) |
amazon_attribute_id | lt_marktplace_variant_attribute (id) |
attribute_type_id | lt_attribute_type (id) |
Indizes / Unique
| Name | Unique | Spalten |
|---|---|---|
| unique | Nein | tenant_id, attribute_code |