Movie Rentals (Metadata)

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 4

TABLE NAME TABLE DESCRIPTION

Customer Holds the video renters' information


Video Holds the details on the videos offered as rentals
Actor Briefly describes the actors performing in a video
Price Holds the special pricings offered for rentals
Rents Holds the details of a video rental transactions
Performs Maps a video to all actors in it and vice versa

CUSTOMER TABLE

ATTRIBUTE NAME ATTRIBUTE DESCRIPTION

name Holds the name of the video rental customers


email Holds the email address of the customer
phone Phone number of customer
totalPurchase Holds the total of value of all transactions for the customer

RENTS TABLE

ATTRIBUTE NAME ATTRIBUTE DESCRIPTION

email Holds the email address of the customer


vID Holds the ID of the video being rented in the transaction
priceCode Holds the code for any special pricing for the transaction
rentalFee Holds the standard rental price
lateFee Holds the value charged if rental is returned late
date Date of the rental
dueDate Date rental should be returned
returnDate Date that the video was returned

PERFORMS TABLE

ATTRIBUTE NAME ATTRIBUTE DESCRIPTION

vID Holds the ID of the video being rented in the transaction


aID Holds the ID for the actor in the video

VIDEO TABLE

ATTRIBUTE NAME ATTRIBUTE DESCRIPTION

vID Holds the ID of the video being rented in the transaction


name Title of the video
year Released year of the video
cost Price of video to be purchased
genre Genre of the video

ACTOR TABLE

ATTRIBUTE NAME ATTRIBUTE DESCRIPTION

aID Holds the ID for the actor in the video


name Name of the actor
dob Date of birth of the actor

PRICE TABLE

ATTRIBUTE NAME ATTRIBUTE DESCRIPTION

priceCode Holds the code for any special pricing for the transaction
cost Special pricing for the transaction
# of Attributes
4
5
3
2
8
2

Domain Range PK FK Null

Text (A-Z) and (a-z) No No No


Text (A-Z) and (a-z) and (@,.) and (0-9) Yes No No
Text (0-9) and (-) No No Yes
Numeric (0-9) and (.) No No Yes

Domain Range PK FK Null

Text (A-Z) and (a-z) and (@,.) and (0-9) Yes Yes No
Text (A-Z) and (a-z) and (0-9) Yes Yes No
Text (A-Z) and (a-z) and (0-9) No Yes Yes
Numeric (0-9) and (.) No No Yes
Numeric (0-9) and (.) No No Yes
Date Valid Date Yes No No
Date Valid Date No No No
Date Valid Date No No Yes

Domain Range PK FK Null

Text (A-Z) and (a-z) and (0-9) Yes Yes No


Text (A-Z) and (a-z) and (0-9) Yes Yes No

Domain Range PK FK Null

Text (A-Z) and (a-z) and (0-9) Yes No No


Text (A-Z) and (a-z) and (0-9) No No No
Numeric (0-9) No No No
Numeric (0-9) and (.) No No Yes
Text (A-Z) and (a-z) No No No

Domain Range PK FK Null

Text (A-Z) and (a-z) and (0-9) Yes No No


Text (A-Z) and (a-z) No No No
Date Valid Date No No Yes

Domain Range PK FK Null

Text (A-Z) and (a-z) and (0-9) Yes No Yes


Numeric (0-9) and (.) No No No

You might also like