Implementing an EAV Schema with Ecto in Elixir

121
clicks
Implementing an EAV Schema with Ecto in Elixir

Source: reddit.com

Type: Discussion

The content involves a discussion by an individual new to Elixir, identified as NerdyByDesign, who is working on a project that requires setting up an Entity-Attribute-Value (EAV) schema. They provide an outline of the schema's structure involving multiple tables such as Entity, Attribute, Value, Name, and Constraint tables, each with specific relationships and fields. They are seeking guidance on whether to use two schemas, one static and one dynamic, along with associated changesets for form handling and validation. The author expresses concern over the extensive use of String to Atom conversions and is looking for confirmation or advice on the path forward, including whether there is an existing solution for EAV schemas within the Elixir ecosystem.

© HashMerge 2024