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
Copy file name to clipboardExpand all lines: planning/entity_relationship_diagram.md
+56-8Lines changed: 56 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,62 @@ Reference the Creating an Entity Relationship Diagram final project guide in the
4
4
5
5
## Create the List of Tables
6
6
7
-
[👉🏾👉🏾👉🏾 List each table in your diagram]
7
+
Users Table:
8
+
UserID (Primary Key)
9
+
Username
10
+
Password (hashed and salted)
11
+
Email
12
+
First Name
13
+
Last Name
14
+
Address
15
+
Phone Number
16
+
Registration Date
8
17
9
-
## Add the Entity Relationship Diagram
18
+
Products Table:
19
+
ProductID (Primary Key)
20
+
Name
21
+
Brand
22
+
Description
23
+
Price
24
+
Size (if sneakers have specific sizes)
25
+
Color
26
+
Stock Quantity
27
+
Category (e.g., running, basketball, casual)
28
+
Release Date
29
+
30
+
Images Table:
31
+
ImageID (Primary Key)
32
+
ProductID (Foreign Key, references Products)
33
+
Image URL (to store links to product images)
34
+
35
+
Reviews Table:
36
+
ReviewID (Primary Key)
37
+
ProductID (Foreign Key, references Products)
38
+
UserID (Foreign Key, references Users)
39
+
Rating (e.g., 1-5 stars)
40
+
Review Text
41
+
Review Date
42
+
43
+
Orders Table:
44
+
OrderID (Primary Key)
45
+
UserID (Foreign Key, references Users)
46
+
Order Date
47
+
Status (e.g., pending, shipped, delivered)
10
48
11
-
[👉🏾👉🏾👉🏾 Include an image or images of the diagram below. You may also wish to use the following markdown syntax to outline each table, as per your preference.]
49
+
OrderDetails Table:
50
+
OrderDetailID (Primary Key)
51
+
OrderID (Foreign Key, references Orders)
52
+
ProductID (Foreign Key, references Products)
53
+
Quantity
54
+
Subtotal (price * quantity)
55
+
56
+
Payment Table:
57
+
PaymentID (Primary Key)
58
+
OrderID (Foreign Key, references Orders)
59
+
Payment Date
60
+
Payment Method (e.g., credit card, PayPal)
61
+
Total Amount
62
+
63
+
## Add the Entity Relationship Diagram
12
64
13
-
| Column Name | Type | Description |
14
-
|-------------|------|-------------|
15
-
| id | integer | primary key |
16
-
| name | text | name of the shoe model |
17
-
| ... | ... | ... |
65
+

0 commit comments