Initial commmit
This commit is contained in:
commit
88383f90e5
1174 changed files with 227188 additions and 0 deletions
1
migrations/2022-11-02-033724_create_movies/down.sql
Normal file
1
migrations/2022-11-02-033724_create_movies/down.sql
Normal file
|
@ -0,0 +1 @@
|
|||
DROP TABLE movies
|
22
migrations/2022-11-02-033724_create_movies/up.sql
Normal file
22
migrations/2022-11-02-033724_create_movies/up.sql
Normal file
|
@ -0,0 +1,22 @@
|
|||
CREATE DATABASE IF NOT EXISTS movienight;
|
||||
USE movienight;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS movies
|
||||
(
|
||||
id INTEGER AUTO_INCREMENT PRIMARY KEY,
|
||||
title TEXT NOT NULL,
|
||||
imdb_id VARCHAR(255),
|
||||
year SMALLINT UNSIGNED,
|
||||
critic_score VARCHAR(255),
|
||||
genre VARCHAR(255),
|
||||
director VARCHAR(255),
|
||||
actors VARCHAR(255),
|
||||
plot TEXT,
|
||||
poster VARCHAR(500),
|
||||
is_good BOOLEAN,
|
||||
added_by VARCHAR(255),
|
||||
last_watched DATETIME,
|
||||
created_at DATETIME NOT NULL,
|
||||
updated_at DATETIME NOT NULL,
|
||||
deleted_at DATETIME
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue