Sei sulla pagina 1di 5

Explanation of the Additional Database Tables

Bookings Details Table


The bookings details table stores data about all the bookings made at a particular date, terminal and or
kiosk. It helps keep track of how many seats had been booked for a specific cinema room and provides
the total number of seats available.
Attributes :
• BookingDetailsID
• BookingID
• SeatNumber

Explanation of Attributes
¬ BookingID is foreign key which references the primary key of the bookings table
¬ This table basically serves as the log table for all bookings made.

Food Table
This table keeps track of inventory. Food purchases can either b made on line or at the food counter on
site, the food table keeps track of all the transactions that happen at both sites.
Attributes :
• ProductID
• SnackType
• FoodPrice
• Suppliers
• Quantity
• SnackName
• Size

Explanation of Attributes
¬ SnackType differentiates whether a snack is food or drink type of snack
¬ Quantity keeps track of the stock on hand
¬ Size specifies whether the mass of the product is small, larger or medium
abbreviated as s, l and m respectively

Location Table
Gives description of all the cities or towns in which Cinema Base theaters are situated. There are five
main locations and they each have 5 branches.
Attributes :
• LocationID
• LocationName
Log Table
This table keeps record of all transactions made by either employees or and customers e.g. The
manager has the ability to add modify and delete data or information about employees or customers.
Attributes :
• LogNumber
• LoginID
• LogInTime
• LogOutTime
• ActionTaken
• Date
• LogTime

Explanation of Attributes
¬ ActionTaken column stores the type of transactions made by the authorized
personnel, the transactions can be a modification, deletion or an addition to the
database.

Customer and Employee (Re cycler) Table


This table enables the manager to retrieve records that might have been deleted by mistake or any other
managerial reason.
Attributes :
• RecyclerID
• LoginID
• Name
• Surname
• EmailAddress
• Gender
• CellNum (Cell Number)
• DOB (Date of Birth)
• CustLevel (Customer Level)
• Password

Explanation
¬ These tables basically contain all the attributes contained in both the customer and
employee tables.
¬ In the Employees table there is an EmpLevel (Employee Level) instead of Customer
Level.
Schedule Table
The schedule table is the opposite of the bookings, in that it specifies the time, time and the theater in
which the movie will be shown.
Attributes :
• ScheduleID
• MovieNumber
• Date
• TimeID
• TheaterID
• Price

Explanation of Attributes
¬ MovieNumber, TimeID, TheaterID are foreign keys from Movies, Time and Theater
Table respectively
¬ They are used to enforce referential integrity for each movie at a particular time at
that specific theater.
¬
Theaters Table
This table contains the definition of each theater for example; the number of seats, the immobility to
accommodate people with disability and the branch in which the theater is located.
Attributes :
• TheaterID
• capacity
• Ability
• BranchID

Explanation of Attributes
¬ Ability column indicates whether or not the theater is able to accommodate people
with disabilities.
¬ BranchID is a foreign key in the theaters table because its used to link the theater to
the branch.
¬
Time Table
This table shows the different time frames in which a movie is scheduled to play.
• Attributes :
• Time ID
• Time Frame

Ticket Generator Table


• This table generates ticket slips for the user entailing all the information pertaining the
purchase made at the theater site
• Attributes :
• TicketNumber;
• EmployeeLevel;
• Date;
• Time;
• Price
• TheatreType
• NumOfTickets
• MovieName
• Location


Customer Messages Table
Customers make comments on the website and the comment can either be a compliment, complaint or
an inquiry. This messages are stored in the database so that the different managers of the theaters can
respond to their customer comments or if its just a general comment, it is sent to the main head
quarters.
• Attributes :
• MsgID
• LoginID
• Message
• Time
• Date
• TypeOfMessage
• Status

¬ Explanation of Attributes
¬ MsgID is the tables primary key
¬ LoginID is the ID that identifies the user/customer that is sending the
comment.
¬ Message is the text sent by the user/customer
¬ TypeOfMessage differentiates whether the message was a compliment,
complaint or an inquiry
¬ Status has a value that indicates that the manager has responded to the
message or not and that is represented by a 1 or 2 respectively.
CONTENT PAGE

1 PAGE
2
1 1. – 5. Explanation of the Additional Database Tables
2

Potrebbero piacerti anche