Hi…guys! I am newbie to MySQL,now doing a online movie ticket reservation system.Is my database structure feasible to work out the reservation process?
Table:Member
id int(4) primary key auto-increment
name varchar(50)
email varchar(50)
password varchar(15)
telephone char(10)
address varchar(70)
Table:Movie
id int(4) primary key auto-increment
name varchar(100)
category char(4)
Table:Reservation
id int(4) primary key auto-increment
reservedDate date (screenning date of movie)
reservedTime time (screeening time of movie)
member_id int(4) foreign key
show_id int(4) foreign key
Table:Show
id int(4) primary key auto-increment
showTime time (screenning date of movie)
showDate date (screeening time of movie)
movieId int(4) foreign key
This system only apply in one cinema,the showTime and showDate are basically refered as the “timetable” of each movie because I want it to be fetch from database and display in proper order.The reservedDate and reservedTime are the movie date and time issued in ticket.Is there any redundancy entity?