class Match < ApplicationRecord
  belongs_to :team
  has_many :stream_sessions, dependent: :destroy

  validates :opponent_name, presence: true
  validates :sets_to_win, numericality: { greater_than: 0, less_than: 6 }
end
