class LunchItem < ApplicationRecord
  include Base::LunchItem
  belongs_to :school, foreign_key: 'SchoolID', inverse_of: :lunch_cycles

  has_many :student_item_orders, dependent: :destroy

  scope :by_date, ->(date) { where(date: date) if date }
end
