···1+-- Articles table
2+CREATE TABLE IF NOT EXISTS articles (
3+ id INTEGER PRIMARY KEY AUTOINCREMENT,
4+ url TEXT UNIQUE NOT NULL,
5+ title TEXT NOT NULL,
6+ author TEXT,
7+ date TEXT,
8+ markdown_path TEXT NOT NULL,
9+ html_path TEXT NOT NULL,
10+ created DATETIME DEFAULT CURRENT_TIMESTAMP,
11+ modified DATETIME DEFAULT CURRENT_TIMESTAMP
12+);
13+14+CREATE INDEX IF NOT EXISTS idx_articles_url ON articles(url);
15+CREATE INDEX IF NOT EXISTS idx_articles_title ON articles(title);
16+CREATE INDEX IF NOT EXISTS idx_articles_author ON articles(author);
17+CREATE INDEX IF NOT EXISTS idx_articles_date ON articles(date);
18+CREATE INDEX IF NOT EXISTS idx_articles_created ON articles(created);