Skip to content

Commit

Permalink
update ERDs for lists using latest screenshots dwyl/mvp#356 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Apr 20, 2023
1 parent 3878ca4 commit 3645f2f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/mvp/15-lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ Let's fix that by introducing `lists`!

Up till this point we've _deliberately_ kept the `MVP`
as lean as possible to avoid complexity. <br />
The ERD is currently just:
The
[Entity Relationship Diagram](https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model)
(ERD) is currently just:

![erd-before-lists](https://user-images.githubusercontent.com/194400/231414683-6fce1fd8-aead-471d-8789-a4a0111f7ce8.png)
![mvp-erd-before-lists](https://user-images.githubusercontent.com/194400/233317695-3e036f1f-db13-4697-aa49-fe767a86a773.png)

Just the handful of tables
you've already seen in the previous sections.
Expand Down Expand Up @@ -47,10 +49,9 @@ mix phx.gen.schema ListItems list_items item_id:references:items list_id:referen

Once we run `mix ecto.migrate`,
we have the following database
[Entity Relationship Diagram](https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model)
(ERD):
ERD:

![mvp-erd-list_items](https://user-images.githubusercontent.com/194400/232926700-6226ef42-774c-41b0-906e-6fbfe21efc6a.png)
![mvp-erd-with-lists-and-list_items](https://user-images.githubusercontent.com/194400/233316755-96fb001d-ac16-4cad-99b0-b562c0128c1f.png)

The `gen.schema` command only creates the migration files
and the corresponding schema in the
Expand Down

0 comments on commit 3645f2f

Please sign in to comment.