# == Schema Information
#
# Table name: hardwares
#
#  id         :integer          not null, primary key
#  sn         :string(255)
#  cpu        :string(255)
#  mac        :string(255)
#  oskernal   :string(255)
#  os         :string(255)
#  raminfo    :string(255)
#  modelname  :string(255)
#  created_at :datetime         not null
#  updated_at :datetime         not null
#  uid        :string(255)
#  emmc       :string(255)
#  test_count :integer
#
require 'open-uri'
class Hardware < ApplicationRecord
	has_many :hardware_test_logs
	validates :sn, uniqueness: true, presence: true
	validates :mac, uniqueness: true, presence: true
	validates :modelname, presence: true

end
