initial commit
This commit is contained in:
12
migrations/init.sql
Normal file
12
migrations/init.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- Create database and watchlist table
|
||||
CREATE DATABASE IF NOT EXISTS whattowatch;
|
||||
USE whattowatch;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS watchlist (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
title VARCHAR(512) NOT NULL,
|
||||
type VARCHAR(50) DEFAULT 'movie',
|
||||
watched TINYINT(1) DEFAULT 0,
|
||||
notes TEXT,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
Reference in New Issue
Block a user