Add Scrape History #15

Merged
SoXX merged 8 commits from dev/scrape-history into main 2024-10-15 10:46:41 +00:00
Showing only changes of commit b1e97f4142 - Show all commits

View File

@ -0,0 +1,11 @@
-- +migrate Up
CREATE TABLE "ScrapeHistory"
(
user_source_id CHAR(25) NOT NULL REFERENCES "UserSource" (id),
scrape_task_id CHAR(25) PRIMARY KEY,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
finished_at TIMESTAMP NULL,
error TEXT NULL,
added_posts INT NOT NULL,
deleted_posts INT NOT NULL
);