Closed tharunkumarreddytummala closed 1 month ago
@saiyaswanth0412 - Update Theater Model
CREATE TABLE Theatre_Movies ( Theatre_ID INT, Movie_ID INT, FOREIGN KEY (Theatre_ID) REFERENCES Theatres(Theatre_ID), FOREIGN KEY (Movie_ID) REFERENCES Movies(Movie_ID), PRIMARY KEY (Theatre_ID, Movie_ID) ); please add this as Theatre_Movies can show many to many relationship as one theatre can show multiple movies and single movie can be showed in multiple theatres so a junction table is needed for Theatre_Movies for many to many relationship the previous documentation is updated please check @tharunkumarreddytummala
1. Users Table
2. Theatre Table
3. Movies Table
4. Screens Table
5. Seats Table
6. Shows Table
7. Bookings Table
8. Payments Table
CREATE TABLE Theatre_Movies ( Theatre_ID INT, Movie_ID INT, FOREIGN KEY (Theatre_ID) REFERENCES Theatres(Theatre_ID), FOREIGN KEY (Movie_ID) REFERENCES Movies(Movie_ID), PRIMARY KEY (Theatre_ID, Movie_ID) );