class Communication::NotificationUser < ApplicationRecord
  audited

  include Base::Communication::NotificationUser

  enum associated_type: { employee: 1, family: 2, student: 3 }

  associations_for legacy: true do |a|
    a.belongs_to :school
    # Needs to be polymorphic for employee, family, student
    a.belongs_to :student, foreign_key: :ID, class_name: 'Student'
  end
end
