-- Persist Mastodon read markers for home timeline and notifications.

CREATE TABLE IF NOT EXISTS markers (
  user_id TEXT NOT NULL,
  timeline TEXT NOT NULL,
  last_read_id TEXT NOT NULL,
  version INTEGER NOT NULL DEFAULT 1,
  updated_at TEXT NOT NULL,
  PRIMARY KEY(user_id, timeline)
);
