Search⌘ K

Introduction to Schemas Without Tables

Explore how to design Ecto schemas independently from database tables to improve code flexibility and user experience. Understand the benefits of separating data structures from storage models and apply this approach to build more adaptable Elixir applications.

Ecto’s mapping of database tables

Some database libraries automatically map database tables to the data structures we use in our application code.

Ecto is not one of them.

Instead, we create our schema structs manually by ...