Skip to content

Commit 66f594a

Browse files
authored
Update entity_relationship_diagram.md
1 parent 0d91069 commit 66f594a

File tree

1 file changed

+56
-8
lines changed

1 file changed

+56
-8
lines changed

planning/entity_relationship_diagram.md

Lines changed: 56 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,62 @@ Reference the Creating an Entity Relationship Diagram final project guide in the
44

55
## Create the List of Tables
66

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
817

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)
1048

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
1264

13-
| Column Name | Type | Description |
14-
|-------------|------|-------------|
15-
| id | integer | primary key |
16-
| name | text | name of the shoe model |
17-
| ... | ... | ... |
65+
![Database ER diagram (Sneaker World)](https://github.com/faizanx168/web103_finalproject/assets/105330878/a62071d4-ec8c-456d-bf64-8efaa14e5e15)

0 commit comments

Comments
 (0)