Skip to Content
Phoenix Web Development
book

Phoenix Web Development

by Brandon Richey
April 2018
Beginner to intermediate content levelBeginner to intermediate
406 pages
9h 33m
English
Packt Publishing
Content preview from Phoenix Web Development

Designing our user schema

Let's start with one of the most important introductory steps for adding a new table and schema into our application—designing the database table. This isn't just about designing the table, because you don't want to just think about the database impacts of creating/adding a new table and shaping the data model for this table; you also want to give a lot of thought to how the data model will impact your application's design and structure over time.

We'll start by figuring out what questions our application is trying to answer in regards to our new users schema. First off, we ask WHAT information we want to store:

Users------* id- username- email- encrypted_password- active-* inserted_at-* updated_at(* means it is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Phoenix in Action

Phoenix in Action

Geoffrey Lessel
Real-Time Phoenix

Real-Time Phoenix

Stephen Bussey

Publisher Resources

ISBN: 9781787284197Supplemental Content