-- 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
);