0% found this document useful (0 votes)
6 views7 pages

Database Design

Uploaded by

jaanveeshaik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views7 pages

Database Design

Uploaded by

jaanveeshaik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

DATABASE DESIGN 2]Address DB-(sQL)

1] USER DB-SQL;

User ID (PK) Address ID (PK)

User name(string) User ID (PK)


Password:(string) encrypted
Effective Date: Date Ad
First name:(string) AddressLine 1: String
second:(string) Address Line 2: String
Email:(string) City: String
Last login:DDTM Country: String
Zip: Alpha numeric
Created:DDTM
3. Product DB: (No SQL - Document DB - DynamoDB or MongoDB)
{
"Id": "124a7837c7987f",
"category": "Clothing",
"item":"T-shirt",
"Gender": "female",
"Size": "S".
"Color": "Black"
}
{ "Id":"12a676a7878a87f",
"Category": "Electronics",
"Item":"Camera",
"Resolutions": "48MP",
"Manufactured by": "Sony",
“Battery:”48 hours
}
4. Order DB(NoSQL, Document DB)
{
"Order_id":"78678a776c7676",
"user_id":"84783478878787787",
"Address_id": "87878787565656a56",
"Items": [
{
"item_id":"7787987",
"Quantity":2,
"Price": 50,
"Currency": USD
{
"Item_id":"787787",
"Quantity": 1,
"Price":15,
"Currency":USD
}
]"total_amt":115
"Taxes":10
"Total_order, amt":125
}
5. Review DB(NoSQL, Key-value DB)

(
"Key": "32878288298349",
"Rating":4
"Description": "Product Review description"
"Images/videos": [

("AttachmentId":"787a767676af"),
("Attachmentid": "67767697676a"),
APIs:
1. GetRecommendations (UserID) -Retum a list of 10 product recommendations

2. Search(Search String,UserID)-GET method& returns a list of products

3. AddToCart(UserID, ProductID, Qty, Amt)- Returns a boolean (true/false)


status

4. PlaceOrder(UserID, OrderID, AddressID, PaymentStatus) returns boolean

5. CheckOrderStatus(Orderld) GET Returns order status


Requirements:
1. Search for Product
2. Recommendations on Homepage
3. Place Order
4. Check Order status
5. Write/View product reviews

You might also like