add resource and model for league