Skip to content

Commit

Permalink
update erd for lists and list_items dwyl/mvp#356 (comment) dwyl/mvp#145
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Aug 31, 2023
1 parent 7686278 commit 0141a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mvp/16-lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Once we run `mix ecto.migrate`,
we have the following database
ERD:

![mvp-erd-with-lists](https://github.com/dwyl/mvp/assets/194400/7efb0f30-077a-4fe3-84f1-41e187116cfe)
![mvp-erd-with-lists](https://github.com/dwyl/mvp/assets/194400/4c3c097f-4a93-488d-8be4-591deeb72df7)

This new database table
lets us create a `list`
Expand Down
4 changes: 2 additions & 2 deletions src/mvp/17-list_items.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule App.Repo.Migrations.CreateListItems do
add :seq, :text

timestamps()
end
end

create index(:list_items, [:list_cid])
end
Expand All @@ -41,7 +41,7 @@ and you should see the following table:
And the **ERD**
will now look like this:

<img width="550" alt="dwyl-mvp-ERD-with-list_items" src="https://github.com/dwyl/mvp/assets/194400/a81f51b1-0327-4f33-b417-67f37ae889b2">
<img width="550" alt="dwyl-mvp-ERD-with-list_items" src="https://github.com/dwyl/mvp/assets/194400/c3255969-88d5-41b5-aa51-b4397f8e93f6">

As you can see from this **ERD**,
the `list_items` table
Expand Down

0 comments on commit 0141a3b

Please sign in to comment.