ProductAttribute
Tableproduct_attribute, id prefix pattr. A typed catalog attribute.
Relations:
values (one-to-many ProductAttributeValue, deleted with the
attribute).
ProductAttributeValue
Tableproduct_attribute_value, id prefix pattrval. A selectable value that
belongs to one attribute.
Relations:
attribute (belongs to ProductAttribute via attribute_id).
product_option_id on the attribute and product_option_value_id on the value
are the foreign keys behind the read-only mirror links to Medusa’s product
options. See Links.