there is no key from resource_types to permissions

the relation is 1:N for permission:resource_types