Prva verzija - klix scraper

This commit is contained in:
Senad Uka
2022-02-10 21:11:13 +01:00
parent 08f0de07c3
commit a040320827
13 changed files with 348 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
BEGIN;
CREATE TABLE "articles" (
"id" bigint GENERATED ALWAYS AS IDENTITY,
"title" text NOT NULL UNIQUE,
"content" text NOT NULL,
"slug" text NOT NULL UNIQUE,
"created_at" timestamptz DEFAULT NOW() NOT NULL,
"original_url" text NOT NULL UNIQUE,
"source_id" int NOT NULL,
CONSTRAINT "articles_pk" PRIMARY KEY ("id")
) WITH (
OIDS=FALSE
);
COMMIT;