removed the user_id foreign key on codes