From 0141a3b0eb713fe2bc5fd3980ad93433954d6374 Mon Sep 17 00:00:00 2001 From: nelsonic Date: Thu, 31 Aug 2023 07:01:55 +0100 Subject: [PATCH] update erd for lists and list_items https://github.com/dwyl/mvp/issues/356#issuecomment-1700414234 https://github.com/dwyl/mvp/issues/145 --- src/mvp/16-lists.md | 2 +- src/mvp/17-list_items.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mvp/16-lists.md b/src/mvp/16-lists.md index c762f50..108db7b 100644 --- a/src/mvp/16-lists.md +++ b/src/mvp/16-lists.md @@ -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` diff --git a/src/mvp/17-list_items.md b/src/mvp/17-list_items.md index ab5d917..0ba3884 100644 --- a/src/mvp/17-list_items.md +++ b/src/mvp/17-list_items.md @@ -28,7 +28,7 @@ defmodule App.Repo.Migrations.CreateListItems do add :seq, :text timestamps() - end + end create index(:list_items, [:list_cid]) end @@ -41,7 +41,7 @@ and you should see the following table: And the **ERD** will now look like this: -dwyl-mvp-ERD-with-list_items +dwyl-mvp-ERD-with-list_items As you can see from this **ERD**, the `list_items` table