You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add heading
* Clarify that we're not telling them to do this now
* Reorder acceptance criteria to match exercises
* Add references to how to diagram
Co-authored-by: Sally McGrath <sally@codeyourfuture.io>
Copy file name to clipboardExpand all lines: E-Commerce/readme.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,13 @@ Import the file [`cyf_ecommerce.sql`](./cyf_ecommerce.sql) in your newly created
24
24
psql -d cyf_ecommerce -f cyf_ecommerce.sql
25
25
```
26
26
27
+
### Understand the schema
28
+
27
29
Open the file `cyf_ecommerce.sql` in VSCode and examine the SQL code. Take a piece of paper and draw the database with the different relationships between tables (as defined by the REFERENCES keyword in the CREATE TABLE commands). Identify the foreign keys and make sure you understand the full database schema.
28
30
29
-
Don't skip this step. You may one day [be asked at interview](https://monzo.com/blog/2022/03/23/demystifying-the-backend-engineering-interview-process) to draw a database schema. Sketching systems is a valuable skill for back end developers and worth practising. If you're interested in systems design, take a course on Udemy.
31
+
Don't skip this step. You may one day [be asked at interview](https://monzo.com/blog/2022/03/23/demystifying-the-backend-engineering-interview-process) to draw a database schema. Sketching systems is a valuable skill for back end developers and worth practising. If you're interested in systems design, you may also want to take a course on Udemy.
30
32
31
-
You can even draw relationship diagrams on GitHub:
33
+
You can even [draw relationship diagrams](https://mermaid.js.org/syntax/entityRelationshipDiagram.html) on [GitHub](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams):
32
34
33
35
```mermaid
34
36
erDiagram
@@ -53,7 +55,7 @@ Write SQL queries to complete the following tasks:
53
55
54
56
## Acceptance Criteria
55
57
56
-
-[ ] The SQL queries retrieve the correct data according to the tasks listed above
57
-
-[ ] The database schema is drawn correctly to visualize relationships between tables
58
58
-[ ] The `cyf_ecommerce` database is imported and set up correctly
59
+
-[ ] The database schema is drawn correctly to visualize relationships between tables
60
+
-[ ] The SQL queries retrieve the correct data according to the tasks listed above
59
61
-[ ] The pull request with the answers to the tasks is opened on the `main` branch of the `E-Commerce` repository
0 commit comments