class Agent < ApplicationRecord has_many :agencies has_many :members, through: :agencies, source: :user has_many :resources end