Sei sulla pagina 1di 4

Design Process

Input Design

Table Design

Table name: admin

Primary key: admin_id

Description: This table is to store the admin login details.

Field Name Data Type Width Key Field Description

Admin_id Int - Primary key The unique id


username Varchar 25 Not null Username
email Varchar 30 Not null Login email id
password Varchar 25 Not null Login Password
reg_date date - Not null Registration date
updation_date date - Not null Update date
Table name: userlog

Forin key: usr_log_id

Description: This table is to store the user login Details

Field Name Data Type Width Key Field Description

usr_log_id Int - Foreign key User login id

userEmail Varchar 25 Not null User Email

userip Varchar 20 Not null User ip address

loginTime timestamp - Not null Login Time

logout Varchar 20 Not null Logout time

status Varchar 02 status

Table name: category

Primary key: category_id

Description: This table is to store the category Details

Field Name Data Type Width Key Field Description


Category_id int - Primary key The unique id
categoryName Varchar 20 Not null Category name
categoryDescription Text - Not null Category Description

creationDate timestamp - Not null Creation date


updationDate timestamp - Not null Updating Date
Table name: city

Primary key: city_id

Description: This table is to store the city Details

Field Name Data Type Width Key Field Description


city_id Int - Primary key Product id
City int - Not null Order id

Table name: theatre

Primary key: theatre_id

Description: This table is to store the product Details

Field Name Data Type Width Key Field Description

theatre_id Int - Primary key theatre id

theatre_name Varchar 20 Not null Theatre name

city_id Varchar 20 Not null City id


Table name: movie

Primary key: movie_id

Description: This table is to store the movie Details

Field Name Data Type Width Key Field Description

movie_id Int - Primary key movie id


movie_name Int 20 Not null Movie name

theatre_id Varchar - Foreign key Theatre id

city_id Int - Foreign key City id

date Date - Not null date


showtiming Varchar 20 Not null Show timing

price int 10 Not null price

status Varchar 01 Not null status

Table name: booked

Primary key: booked _id

Description: This table is to store the booked Details

Field Name Data Type Width Key Field Description


booked id Int - Primary key Booking id

username Varchar 20 Not null User login id

seat Varchar 20 Not null seat


movie_id Varchar - Foreign key Movie id

theatre_id Varchar - Foreign key Theatre id


date Date 20 Not null date