To me this sounds like an opportunity to split read and write model (structs). You can return data, which is not a ecto struct to all the places that read the values. No need to let all the complexity of the db level storage leak all over the codebase. Deal with it close to reading the values from the db, tranfsform into a format more useful to all readers and return that. Readers don‘t need to care.






















