You are on page 1of 24

Table Name

Address

Album

Album_Artist
Album_Genre
Album_Publishing_Office

Artist

Attribute Name
Address_ID
Customer_ID
Address
Town
State
Postcode
Album_ID
Format
Title
Album_Image
Price
Discount_On_Album
Description
Artist_ID
Album_ID
Genre_ID
Album_ID
Album_ID
Publishing_OfficeID
Date_Released
Artist_ID
Artist_Name
Artist_Image
Artist_Description

Table Name

Attribute Name

ComplaintID
CustomerID
EmployeeID
Date_Made
Title
Complaint
Details
Employee_Notes
Reviewed
Further_Action
Customer
CustomerID
Title
Firstnames
Lastnames
Username
Password
Email
Secret_Question
Secret_Answer
Date_Of_Birth
Phone_Number
Membership
Membership_Type
Discount
Date_Registered
Customer_Browsing_History Browsing_HistoryID
CustomerID
AlbumID
Date_Viewed

Table Name
Customer_Payment

Attribute Name

Customer_PaymentID
Address_ID
Customer_ID
Credit_Or_Debit
Type
Bank_Name
Card_Number
Security_Code
Expiry_Date
Cardholder_Name
Discussion
DiscussionID
AlbumID
CustomerID
Topic
Details
First_Comment
Date_Made
Discussion_Comment
Discussion_CommentID
DiscussionID
CustomerID
Comment
Date_Made
Discussion_Comment_Feedback CustomerID
Discussion_CommentID
Feedback

Table Name
Employee

Genre
Order

Order_Line

Promotion_Code

Attribute Name
EnployeeID
Department
Firstnames
Lastnames
Phone_Number
Address
Town
State
Postcode
GenreID
Genre_Name
OrderID
EmployeeID
Promotion_CodeID
CustomerID
Customer_PaymentID
AddressID
Order_Date
Delivery_Speed
Processed
AlbumID
OrderID
Quantity
Gift_Wrap
Promotion_CodeID
CustomerID
Expiry_Date

Amount
Promotion_Code

Table Name
Publisher
Publishing_Office

Return

Review

Review_Feedback

Attribute Name
PublisherID
Publisher_Name
Publishing_OfficeID
PublisherID
Country_Of_Origin
Location
Official_Web
ReturnID
OrderID
EmployeeID
Received_Date
Processed_Start_Date
Processed_Finished_Date
Reason
Other_Reason
Postage
Return_Code
ReviewID
CustomerID
AlbumID
Title
Date_Created
Description
Rating
CustomerID
ReviewID

Feedback

Table Name
Shipment

Supplier

Supply_Order

Wish_List

Attribute Name
ShipmentID
OrderID
ReturnID
Date_Sent
Date_Received
Postage_Option
Shipment_Code
SupplierID
Name
Email
Phone
Address_Line1
Town
State
Postcode
Details
Supply_OrderID
AlbumID
SupplierID
Amount_Received
Cost
Date_Received
Wish_ListID
CustomerID
Privacy

Wish_List_Line

Wish_ListID
AlbumID
Comment
Date_Added

Description
Address ID Number
Customer ID Number
Customers' shipping addresses
Town of the shipping addresses
State of the shipping addresses
Postcode of the town that the customer living in
Album ID Number
Formats of products, either DVD or CD or DVD+CD
Title of the CD or DVD or DVD+CD
Cover photo of the albums
Price for the product
Discount rate on the price of the album
Description of the album
Artist ID Number
Album ID Number
Genre ID Number
Album ID Number
Album ID Number
Publishing office ID Number
Released date of the album
Artist ID Number
Artist name
Photo of the artist
Description of the artist

Type
AUTONUMBER
NUMBER
VARCHAR(200)
VARCHAR(60)
VARCHAR(60)
CHAR(5)
AUTONUMBER
VARCHAR(20)
VARCHAR(150)
OLE Object
CURRENCY
SINGLE
MEMO
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
DATE
AUTONUMBER
VARCHAR(30)
OLE Object
Memo

Description
Complaint ID Number
Customer ID Number
Employee ID Number
Date made the complaint by customer
Title of the complaint
Details of the complaint
Notes taken down by employees after receiving the complaint from customers
Whether the complaint is reviewed
Whether employee take further action towards the complaint
Customer ID Number
Title of the customer
Firstname of the customer
Lastname of the customer
Username used by the customer for logging in
Password set by the customer for logging in
Email used by customer to sign up
Secret question that the customer choose to answer when password is forgoten
Answer for the secret question chosen by the customer
Date of birth of the customer
Contact phone number provided by the customer
Whether the customer belongs to membership
Which membership the customer belongs to
Membership discount rate
Date registered as a membership
Browsing history ID Number
Customer ID Number
Album ID Number
Date viewed the album online

Type
AUTONUMBER
NUMBER
NUMBER
DATE
VARCHAR(60)
MEMO
MEMO
YES/NO
YES/NO
AUTONUMBER
VARCHAR(10)
VARCHAR(60)
VARCHAR(60)
VARCHAR(80)
VARCHAR(32)
VARCHAR(80)
VARCHAR(100)
VARCHAR(30)
DATE
VARCHAR(20)
YES/NO
VARCHAR(20)
SINGLE
DATE
AUTONUMBER
NUMBER
NUMBER
DATE

Description
Customer payment ID Number
Address ID Number
Customer ID Number
Credit card or debit card used through payment process
Type of card used by the customer
Bank name of the card
Card number as shown on the card
Security code on the back of the card
Expiry date of the card as stated on it
Name on the card
Discussion ID Number
Album ID Number
Customer ID Number
Topic about the discussion
Discussion details
First comment under the discussion topic
Date the discussion is made
Discussion comment ID Number
Discussion ID Number
Customer ID Number
Comment made by the customer
Date the comment under the discussion is made
Customer ID Number
Discussion comment ID Number
Whether there is a feedback given by the customer

Type
AUTONUMBER
NUMBER
NUMBER
VARCHAR(6)
VARCHAR(20)
VARCHAR(50)
CHAR(16)
CHAR(3)
DATE
VARCHAR(30)
AutoNumber
NUMBER
NUMBER
VARCHAR(60)
MEMO
MEMO
DATE
AutoNumber
NUMBER
NUMBER
MEMO
DATE
NUMBER
NUMBER
YES/NO

Description
Employee ID Number
Department the employee belongs to
Firstname of the employee
Lastname of the employee
Employee's phone number
Address of the employee
Town of the employee's address
State of the employee's address
Postcode of the town that the employee living in
Genre ID Number
Genre name of the album
Order ID Number
Employee ID Number
Promotion code ID Number
Customer ID Number
Customer payment ID Number
Address ID Number
Date the order is made
Duration of shipping days
Whether the order is processed
Album ID Number
Order ID Number
Number of album ordered
Whether there is a request for gift wrapping from the customer
Promotion code ID Number
Customer ID Number
Expiry date of the promotion

Type
AUTONUMBER
VARCHAR(30)
VARCHAR(60)
VARCHAR(60)
VARCHAR(20)
VARCHAR(200)
VARCHAR(60)
VARCHAR(60)
CHAR(5)
AUTONUMBER
VARCHAR(20)
AUTONUMBER
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
DATE
VARCHAR(20)
YES/NO
NUMBER
NUMBER
NUMBER
YES/NO
AUTONUMBER
NUMBER
DATE

Discount rate of the promotion offers


Promoetion code

SINGLE
VARCHAR(16)

Description
Publisher ID Number
Publisher 's name of the album
Publishing office ID Number
Publisher ID Number
Country of origin of the publishing office
Location of the publishing office states
Official website for the publishing office
Return ID Number
Order ID Number
Employee ID Number
Date that the return is received
Date the return case starts to process
Date the return case is finished
Main reason for the return of the product
Other resaon for the return
Postage company used by the customer for returning
Code of the return case
Review ID Number
Customer ID Number
Album ID Number
Title of the review
Date the review is created
Description of the review
Rating of the album
Customer ID Number
Review ID Number

Type
AUTONUMBER
VARCHAR(60)
AUTONUMBER
NUMBER
VARCHAR(80)
VARCHAR(80)
VARCHAR(100)
AUTONUMBER
NUMBER
NUMBER
DATE
DATE
DATE
VARCHAR(100)
MEMO
VARCHAR(100)
VARCHAR(16)
AUTONUMBER
NUMBER
NUMBER
VARCHAR(80)
DATE
MEMO
NUMBER
NUMBER
NUMBER

Whether there is a feedback of the review

YES/NO

Description
Shipment ID Number
Order ID Number
Return ID Number
Date the order is sent out for shipping
Date the parcel received by customer
Postage company used for shipment to customer
Shipment code
Supplier ID Number
Company name of the supplier
Email of the supplier
Phone of the supplier
Supplier 's address line
Town of the supplier's address
State of the supplier's address
Postcode of the town
Details of the supplier
Supply order ID Number
Album ID Number
Supplier ID Number
Amount of the album received
Cost of the album
Date the order of supply is received
Wish list ID Number
Customer ID Number
Type of privacy of the customer data

Type
AUTONUMBER
NUMBER
NUMBER
DATE
DATE
VARCHAR(100)
VARCHAR(16)
AUTONUMBER
VARCHAR(70)
VARCHAR(80)
VARCHAR(20)
VARCHAR(200)
VARCHAR(60)
VARCHAR(60)
CHAR(5)
MEMO
AUTONUMBER
NUMBER
NUMBER
NUMBER
CURRENCY
DATE
AUTONUMBER
NUMBER
VARCHAR(17)

Wish list ID Number


Album ID Number
Comment under the album
Date the album is added to the wish list

NUMBER
NUMBER
MEMO
DATE

Format

9999
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
99999

Range

00000-99999

Xxxxxxxxx
Xxxxxxxxx
RM99.99
0.99
Xxxxxxxxx
9999
9999
9999
9999
9999
9999
dd/mm/yyyy

0.00-99.99
0.00-1.00

Required
Y
Y
Y
Y
Y
Y
Y
Y
Y

PK
or
FK

FK
Referenced
table

PK
FK
Customer

PK

Y
Y

Xxxxxxxxx

Y
Y
Y
Y
Y
Y
Y
Y
Y

Xxxxxxxxx

PK,FK
PK,FK
PK,FK
PK,FK
PK,FK
PK,FK
PK

Album_Publishing_Office

Format

Range

Y
Y
Y
Y
Y
Y

9999
9999
dd/mm/yyyy
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
"-1"/"0"
"-1"/"0"
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
dd/mm/yyyy
Xxxxxxxxx
"-1"/"0"
Xxxxxxxxx
0.99
dd/mm/yyyy
9999
9999
dd/mm/yyyy

Required

0.00-1.00

Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y

PK
or
FK

FK
Referenced
table

PK
FK
FK
Customer, Employee

PK

PK
FK
FK

Customer
Album

Format

9999
9999
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
9999999999999999
999
dd/mm/yyyy
Xxxxxxxxx
9999
9999
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
dd/mm/yyyy
9999
9999
Xxxxxxxxx
dd/mm/yyyy
9999
9999
"-1"/"0"

Range

000-999

Required
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
N
Y
Y
Y
Y

PK
or
FK

FK
Referenced
table

PK
FK
FK

Address
Customer

PK
FK
FK

Album
Customer

PK
FK
FK

Discussion
Customer

PK,FK
PK,FK

Format

Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
99999
None
Xxxxxxxxx
9999
9999
9999
9999
9999
dd/mm/yyyy
Xxxxxxxxx
"-1"/"0"
9999
9999
255
"-1"/"0"
9999
dd/mm/yyyy

Range

Required

00000-99999

Y
Y
Y
Y
Y
Y
Y
Y
Y

PK
or
FK

FK
Referenced
table

PK

PK

0-255

Y
Y
Y
N
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y

Genre
PK
FK
FK
FK
FK
FK

Employee
Promotion_Code
Customer
Customer_Payment
Address

PK,FK
PK,FK

PK
FK

Customer

0.99
Xxxxxxxxx

Format

0.01-1.00

Y
Y

Range

Required

Xxxxxxxxx
9999
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
9999
9999
dd/mm/yyyy
dd/mm/yyyy
dd/mm/yyyy
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
9999
9999
Xxxxxxxxx
dd/mm/yyyy
Xxxxxxxxx
9
9999
9999

PK
or
FK

FK
Referenced
table

Y
Y
Y
Y
Y
Y

PK
PK
FK

Publisher

Y
Y

PK
FK
FK

Order
Employee

0-5

Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y

PK
FK
FK
FK
FK
FK
FK
PK,FK
PK,FK

Customer
Album

"-1"/"0"

Format

Range

Required
Y

9999
9999
dd/mm/yyyy
dd/mm/yyyy
Xxxxxxxxx
Xxxxxxxxx

PK
or
FK

FK
Referenced
table

PK
FK
FK

Order
Return

Y
Y
Y
PK

Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
Xxxxxxxxx
99999
Xxxxxxxxx
9999
99999
99
RM99.99
dd/mm/yyyy
9999
Xxxxxxxxx

01000-99999

00-99
0.00-99.99

Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y

PK
FK
FK

Album
Supplier

PK
FK

Customer

99999
9999
Xxxxxxxxx
dd/mm/yyyy

Y
Y
Y

PK,FK
PK,FK

You might also like