module Base::LunchPricePlan
  extend ActiveSupport::Concern

  included do
    self.table_name = 'LunchPricePlans'
    self.primary_key = 'LPPID'

    alias_attribute :id, :LPPID
    alias_attribute :school_id, :SchoolID
    alias_attribute :parent_id, :ParentID
    alias_attribute :name, :Name
    alias_attribute :description, :Description
    alias_attribute :lunch_type, :LunchType
    alias_attribute :percentage, :Percentage
    alias_attribute :default, :DefaultPlan
    alias_attribute :one_meal, :OneMeal
  end
end
