Files
What-to-watch/migrations/init.sql
2026-02-09 11:24:43 +01:00

12 lines
340 B
SQL

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