Skip to content

Attribute ​

Tabelle: attribute
Domain: Attribute · com.reybex.domain.wws.material.variant
Modul: BAS

Partner-Hinweise ​

  • Daten liegen mandantengetrennt – bei SELECT fast immer tenant_id = :mandant setzen (Spalte ggf. TenantId in ä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.

→ Beispiel-SQLs (BAS23)

Primärschlüssel ​

  • id

Spalten ​

SpalteSQL-TypNULLDefaultBeschreibung
idbigint auto_incrementJa—Primärschlüssel (Domain: id)
tenant_idbigintJa—Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId)
attribute_codevarchar(750) collate utf8mb4_general_ciJa—Domain-Feld attributeCode
namevarchar(100)Ja—Bezeichnung / Name (Domain: name)
amazon_attribute_idbigintJa—Fremdschlüssel → amazon attribute
amazon_category_idbigintJa—Fremdschlüssel → amazon category
marketplace_attribute_codevarchar(50)Ja—Domain-Feld marketplaceAttributeCode
marketplace_idvarchar(50)Ja—Fremdschlüssel → marketplace
main_attribute_idbigintJa—Fremdschlüssel → main attribute
is_activesmallintJa0Aktiv-Flag
is_accessorysmallintJa0Boolean: Accessory
is_variablesmallintJa0Boolean: Variable
is_mandatorysmallintJa0Domain-Feld isMandatory
is_displayed_in_salessmallintJa0Boolean: Displayed In Sales
is_displayed_in_verificationsmallintJa—Boolean: Displayed In Verification
additional_charge_typesmallintJa—0=pauschael,1=prozentual
variable_typesmallintJa—0=integer,1=decimal,2=text,3=checkbox
min_lengthdoubleJa—manimale länge bei variablen datentypen, z.B. 10-25 Zeichen oder max. 12Meter
max_lengthdoubleJa—maximale länge bei variablen datentypen
unit_idbigintJa—Fremdschlüssel → unit
sub_system_idsvarchar(200)Ja—Ids oder Codes von Fremdystemen ; getrennt, damit diese in reybex identifiziert werden können
date_createddatetimeJa—Anlagezeitpunkt
last_updateddatetimeJaCURRENT_TIMESTAMPLetzte Änderung
created_by_idbigintJa—Angelegt von (Benutzer-ID)
updated_by_idbigintJa—Geändert von (Benutzer-ID)
attribute_type_idbigintJa—Fremdschlüssel → attribute type
decimal_placesbigintJa—Domain-Feld decimalPlaces
is_searchablesmallintJa0Boolean: Searchable
is_variant_attributesmallintJa0Boolean: Variant Attribute
is_marketplace_custom_fieldsmallintJa0Boolean: Marketplace Custom Field
attribute_usage_typesmallintJa—Domain-Feld attributeUsageType
is_not_price_relevant_for_attributesmallintJa0Boolean: Not Price Relevant For Attribute
dynamic_querytextJa—Domain-Feld dynamicQuery
is_not_stockablesmallintJa0Boolean: Not Stockable
sort_orderintJa—Domain-Feld sortOrder
is_deletesmallintJa0Soft-Delete (0 = aktiv, 1 = gelöscht)
is_for_calculationsmallintJa0Boolean: For Calculation
sizeintJa—Domain-Feld size
is_single_linetinyint(1)Ja0Boolean: Single Line

Fremdschlüssel ​

Spalte(n)Referenz
unit_idltt_unit (id)
main_attribute_idattribute (id)
tenant_idcompany (tenant_id)
amazon_attribute_idlt_marktplace_variant_attribute (id)
attribute_type_idlt_attribute_type (id)

Indizes / Unique ​

NameUniqueSpalten
uniqueNeintenant_id, attribute_code

Nur für reybex-Partner. Nicht für Endkunden bestimmt.