CREATE TABLE deluge_processed
(
    id INTEGER PRIMARY KEY NOT NULL,
    magnet_id INTEGER NOT NULL,
    processed_at DATETIME NOT NULL,
    FOREIGN KEY (magnet_id) REFERENCES magnets (id)
);

CREATE INDEX deluge_processed_magnet_id ON deluge_processed (magnet_id);
