somehow the api_key model was incomplete. fixed