Using Postgres timestamp ranges with Ecto
https://aliou.me/posts/2018/09/postgres-tsranges-in-ecto/
Ecto allows you to create your own custom types. This is useful to represent a database type that isn’t support by Ecto itself.
Read next Mind your own business View Controller (?VC) slides and video.