CREATE TABLE documents
(
id serial NOT NULL,
name character varying(512),
accept_date date,
"number" character varying(255),
document_type integer,
docdate date
)
CREATE TABLE paragraphs
(
id bigserial NOT NULL,
iddoc integer,
"position" integer,
text text
)