Rewrited primary key