# == Schema Information
#
# Table name: device_test_histories
#
#  id             :integer          not null, primary key
#  device_test_id :integer
#  mac            :string(255)
#  sn             :string(255)
#  ip             :string(255)
#  result         :integer
#  log            :text(65535)
#  created_at     :datetime         not null
#  updated_at     :datetime         not null
#
class DeviceTestHistory < ApplicationRecord
  TEST_TYPES = ["SA", "时间校正", "屏幕校正", "FA"]

  def test_type_name
    TEST_TYPES[self.test_type.to_i]
  end
end
