ALTER TABLE reception_documents
    ADD document_id INTEGER NOT NULL,
    ADD CONSTRAINT fk_document_id FOREIGN KEY ("document_id") REFERENCES documents ("id");
ALTER TABLE plannedconsignments_documents
    ADD document_id INTEGER NOT NULL,
    ADD CONSTRAINT fk_document_id FOREIGN KEY ("document_id") REFERENCES documents ("id");