What are the problems associated with storing foreign keys in a jsonb column?
Context:
I have a table of items:
Item
--------------------------
| id | name | property |
| PK | text | jsonb |
The property column is one-level jsonb of the following structure:
[
{"value": "white", "item_attribute_id": "1"},
{"value": "71", "item_attribute_id": "3"},
{"value": "29", "item_attribute_id": "4"},
{"value": "48-70", "item_attribute_id": "5"},
{"value": "190", "item_attribute_id": "6"}
]
The item_attribute_id is a foreign key pointing to a table of attributes, which holds everything related to the given attribute (name, type, description).
I cannot find any literature on why this might be a good/bad practice. Are there any obvious directly related problems that I overlooked?