Service - Product Attributes: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
Line 52: Line 52:
}
}
</syntaxhighlight>
</syntaxhighlight>
* see [[https://izara.io/wiki/index.php/NPM_module_-_Izara_Core_-_Attribute_Tree|DataSchemaLib]]
* see [[NPM module - Izara Core - Attribute Tree|DataSchemaLib]]


=== Relationships ===
=== Relationships ===
Line 79: Line 79:
}
}
</syntaxhighlight>
</syntaxhighlight>
* see [[https://izara.io/wiki/index.php/NPM_module_-_Izara_Core_-_Attribute_Tree|DataSchemaLib]]
* see [[NPM module - Izara Core - Attribute Tree|DataSchemaLib]]


== Basic node schemas ==
== Basic node schemas ==

Revision as of 08:56, 11 August 2021

Overview

Manages Product Attributes and ProductAttributeLinks. Product Attributes can be shared by many Products, ProductAttributeLinks are used to create an attribute tree for one Product.

Repository

https://bitbucket.org/izara-market-products/izara-market-products-product-attributes/src/master/

DynamoDB tables

Standard Config Table Per Service

Configuration tags

..

LogicalResults

Stores results for any requests to perform logical searches on media links

{
	resultId: xxx // eg: filterMainId for a single logical element
	dataId: xxx // one productAttributeLinkId
}
  • partition key: resultId
  • sort key: dataId

Graph database

Service - Products Graph

Nodes

{
	nodeLabel: "productAttributeLabel",
}
{
	nodeLabel: "productAttribute",
}
{
	nodeLabel: "productAttributeLink",
}
{
	nodeLabel: "productAttributePropertyLabel",
}
{
	nodeLabel: "productAttributeProperty",
}

Relationships

{
	relationshipType: "hasProductAttributeLink",
}
{
	relationshipType: "disabledProductAttributeLink",
}
{
	relationshipType: "isProductAttribute",
}
{
	relationshipType: "isProductAttributeLabel",
}
{
	relationshipType: "hasProductAttributeProperty",
}
{
	relationshipType: "disabledProductAttributeProperty",
}
{
	relationshipType: "isProductAttributePropertyLabel",
}

Basic node schemas

Schema comes from BasicNodeSchemaLib

  1. productAttributeLabel
  2. productAttribute
  3. productAttributePropertyLabel
  4. productAttributeProperty

Working documents

Product Attributes