···11+-- Articles table
22+CREATE TABLE IF NOT EXISTS articles (
33+ id INTEGER PRIMARY KEY AUTOINCREMENT,
44+ url TEXT UNIQUE NOT NULL,
55+ title TEXT NOT NULL,
66+ author TEXT,
77+ date TEXT,
88+ markdown_path TEXT NOT NULL,
99+ html_path TEXT NOT NULL,
1010+ created DATETIME DEFAULT CURRENT_TIMESTAMP,
1111+ modified DATETIME DEFAULT CURRENT_TIMESTAMP
1212+);
1313+1414+CREATE INDEX IF NOT EXISTS idx_articles_url ON articles(url);
1515+CREATE INDEX IF NOT EXISTS idx_articles_title ON articles(title);
1616+CREATE INDEX IF NOT EXISTS idx_articles_author ON articles(author);
1717+CREATE INDEX IF NOT EXISTS idx_articles_date ON articles(date);
1818+CREATE INDEX IF NOT EXISTS idx_articles_created ON articles(created);