Add resource type option to the model

@commuterjoy