

CREATE EXTENSION IF NOT EXISTS POSTGIS;
SET DATESTYLE TO PostgreSQL,European;

CREATE TABLE IF NOT EXISTS data_sources(
id SERIAL PRIMARY KEY,
name TEXT NOT NULL UNIQUE
);



CREATE TABLE IF NOT EXISTS _exec_info(
id BIGSERIAL PRIMARY KEY,
exec_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
content TEXT,
content_hash TEXT
);

CREATE TABLE IF NOT EXISTS _fillers_info(
id BIGSERIAL PRIMARY KEY,
exec_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
class TEXT,
args TEXT,
status TEXT
);