You are on page 1of 1

Movie ( MovieID, MovieName, MovieTime TicketNum )

PK FK (links to Ticket table)

Ticket (TickeID, TicketDate MovieTime, MovieID, HallNum)


PK FK (links to Movie table) FK (links to Hall table)

Hall (HallNum, HallClass, TicketID,StaffID)


PK FK (links to Ticket table)
Time(MovieTime, MovieDate, TicketID)
PK FK(Links to Ticket table)
Staff (StaffID, StaffName,, HallNum)
PK FK (links to Hall table)

Explanation

In our database design, there are 4 tables in our database design, movie table, ticket table, room
table and staff table. We use these 4 tables to store necessary information.

In the movie table, there are 3 attributes as above shown. This table is to show information
regarding to the hotel’s customers. We have chosen Movie ID as the primary key and Ticket
Number as the foreign key to link to the Ticket table. It’s to show information about what kind of
type did the customers choose in the cinema. Besides that, we can get the total amount of
customers see the movie.

The existence of the Ticket table is to store business record. In the receipt table, there are 3
attributes. Firstly, Ticket Number has been chosen as the primary key. Date is important to
calculate the daily and monthly turnover while the amount can be used to count the revenue of the
cinema.

The room table is to let the customer know where they need to go and also let cleaning staff
to distribute their cleaning jobs and helps record room availability. In this part, we use Room
number as the primary key, while the other 3 attributes are Room key, Room type, the foreign key
which links to the customer table. Staff ID shows which staff assigned to clean this room and
serve the customer in this room and let staff go to exit there when movie is over.

Finally, it’s the staff table. While the staff ID has been chosen to be the primary key, the other
3 attributes are staff name, job and the foreign key, room number which represent his duty venue.

You might also like