create table category_item_r (rev_begin bigint not null, category_id bigint not null, number bigint not null, text varchar(255) not null, item_id bigint not null, rev_type tinyint, rev_end bigint, primary key (rev_begin, category_id, number, text, item_id))