19 lines
486 B
SQL
19 lines
486 B
SQL
-- tables.sql
|
|
|
|
create table hugo_input (data jsonb);
|
|
|
|
create table hugo_text (
|
|
site text,
|
|
url text,
|
|
title text,
|
|
content text,
|
|
title_tsv tsvector generated always as
|
|
(to_tsvector('german', coalesce(title, ''))) stored,
|
|
content_tsv tsvector generated always as
|
|
(to_tsvector('german', coalesce(content, ''))) stored,
|
|
primary key (site, url)
|
|
);
|
|
|
|
create index title_tsv_idx on hugo_text using gin (title_tsv);
|
|
create index content_tsv_idx on hugo_text using gin (content_tsv);
|
|
|