CREATE TABLE buttons (
  uri TEXT PRIMARY KEY,
	did TEXT NOT NULL,
	blob_cid TEXT NOT NULL,
	blob_mime TEXT NOT NULL,
	alt TEXT,
	href TEXT,
	cid TEXT NOT NULL,
	posted_at TIMESTAMPTZ NOT NULL DEFAULT now(),
	indexed_at TIMESTAMPTZ NOT NULL DEFAULT now()
);

CREATE INDEX ON buttons (posted_at);
