rename model -> resource