Infer key on models build method