CREATE TABLE jrentries (
       id INTEGER AUTO_INCREMENT NOT NULL PRIMARY KEY,
       row_pos INTEGER NOT NULL,
       jrtable_id INTEGER NOT NULL,
       FOREIGN KEY (jrtable_id) REFERENCES jrtables(id)
       ON DELETE CASCADE
       ON UPDATE CASCADE
);
