Initial commmit

This commit is contained in:
Edward Tirado Jr 2025-02-16 20:21:30 -06:00
commit 88383f90e5
1174 changed files with 227188 additions and 0 deletions

View file

@ -0,0 +1,3 @@
use movienight;
DROP TABLE sessions;

View file

@ -0,0 +1,17 @@
USE movienight;
CREATE TABLE IF NOT EXISTS showings
(
id INTEGER AUTO_INCREMENT PRIMARY KEY,
schedule_id INTEGER,
movie_id INTEGER,
showtime DATETIME,
public BOOL default FALSE,
owner INTEGER NOT NULL,
created_at DATETIME NOT NULL,
updated_at DATETIME NOT NULL,
deleted_at DATETIME,
FOREIGN KEY (movie_id) REFERENCES movies (id),
FOREIGN KEY (schedule_id) REFERENCES schedules (id),
FOREIGN KEY (owner) REFERENCES users (id)
);