Generated model with context_key