class BlipRecipient < ApplicationRecord
  include Base::BlipRecipient

  enum type: { employee: 1, student: 3, family: 4 }

  belongs_to :message, class_name: 'BlipMessage', foreign_key: 'CNMID', dependent: :destroy,
    inverse_of: :recipients
  belongs_to :user, foreign_key: :UserID, inverse_of: :blip_recipients
end
