Skip to content

Commit af68a49

Browse files
Ecommerce tweaks (#16)
* 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>
1 parent 5096ce7 commit af68a49

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

E-Commerce/readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ Import the file [`cyf_ecommerce.sql`](./cyf_ecommerce.sql) in your newly created
2424
psql -d cyf_ecommerce -f cyf_ecommerce.sql
2525
```
2626

27+
### Understand the schema
28+
2729
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.
2830

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.
3032

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):
3234

3335
```mermaid
3436
erDiagram
@@ -53,7 +55,7 @@ Write SQL queries to complete the following tasks:
5355

5456
## Acceptance Criteria
5557

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
5858
- [ ] 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
5961
- [ ] The pull request with the answers to the tasks is opened on the `main` branch of the `E-Commerce` repository

0 commit comments

Comments
 (0)