-- Articles table CREATE TABLE IF NOT EXISTS articles ( id INTEGER PRIMARY KEY AUTOINCREMENT, url TEXT UNIQUE NOT NULL, title TEXT NOT NULL, author TEXT, date TEXT, markdown_path TEXT NOT NULL, html_path TEXT NOT NULL, created DATETIME DEFAULT CURRENT_TIMESTAMP, modified DATETIME DEFAULT CURRENT_TIMESTAMP ); CREATE INDEX IF NOT EXISTS idx_articles_url ON articles(url); CREATE INDEX IF NOT EXISTS idx_articles_title ON articles(title); CREATE INDEX IF NOT EXISTS idx_articles_author ON articles(author); CREATE INDEX IF NOT EXISTS idx_articles_date ON articles(date); CREATE INDEX IF NOT EXISTS idx_articles_created ON articles(created);