class Department < ApplicationRecord
  include Base::Department

  belongs_to :school

  has_many :courses, inverse_of: :department, dependent: :nullify
  has_many :classrooms, inverse_of: :department, dependent: :nullify
  has_many :department_employees, foreign_key: :DeptID, dependent: :destroy, inverse_of: :department
  has_many :employees, through: :department_employees
end
