Redefine the models beacuse generate primary key.