Add auto_increment to entities