ER Diagram of An Online Shoe Store

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Eduardo F.

Valdez

Sept.25,2015

2012-97976

Prof.Mendoza

CS 165 MP : E-commerce website ; Sole Finder an online shoe store


Specifications:
A customer described by (SSN,name,phone,addr) can buy any available shoes if he/she wishes
to.
A
shoe
is
described
by
(pid
,
type
(for
men,women,grade
school),sport(basketball,football,casual etc.),brand,price,qty (no. of stocks left),rating) ). Lets say
we want to keep track of the size of the shoe in US(inches) , UK(inches) and EU (cm) and detailed
information about its Supplier (sid,phone,name,addr). Each shoe is supplied by at least one
supplier.
Once a customer picks a shoe it will be added as a Cart Item described by (cid,quantity(no. of
pairs of that certain shoe ) , total_cost) . Each Cart Item should be in exactly one Cart and the Cart
described by (cart_id, total cost ) consists of at least one Cart Item . The Customer does Payment
described by(payment_id, amount, payment_type (debit card,credit card,atm etc. ), date , time) if
he will finally checkout (The customer may not actually proceed in buying the cart , thus I did not
put any constraints there much) .

pid

Name

SSN

Type

Rating

Price

Brand

Sport

Phone

qty

UK

Addr

Customer

picks

Shoe

US

has

Size

added_to
Does

amount

cid

quantity
payment_id

EU

Cart_item
from

Payment
sid

total_cost

Supplier

payment_type
Phone

consists_of

Date

Addr
Time

done_for

Cart
cart_id

total_cost

Name

You might also like