CREATE TABLE DOCUMENT_PAGES
(
    id SERIAL PRIMARY KEY,
    hash character varying,
    config json,
    user_id integer NOT NULL,
    created_at timestamp without time zone,
    updated_at timestamp without time zone,
    CONSTRAINT document_pages_user_id_foreign FOREIGN KEY (user_id)
        REFERENCES USERS (id)
)