You do not import all ecto, just ecto, not ecto_sql…
An alternative I wanted to try is typecheck, and use simple struct.