Prva verzija - klix scraper
This commit is contained in:
16
db/migrations/20220206054902_create_articles.up.sql
Normal file
16
db/migrations/20220206054902_create_articles.up.sql
Normal 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;
|
||||
Reference in New Issue
Block a user