# == Schema Information
#
# Table name: competition_teams
#
#  id                 :integer          not null, primary key
#  name               :string(255)
#  user_id            :integer
#  competition_id     :integer
#  team_type          :integer          default("0")
#  invite_code        :string(255)
#  teacher_id         :integer
#  created_at         :datetime         not null
#  updated_at         :datetime         not null
#  company_name       :string(255)
#  competition_region :string(255)
#  competition_field  :string(255)
#  works_remark       :text(4294967295)
#  praises_count      :integer
#  api_result         :text(65535)
#  api_status         :integer          default("0")
#

class CompetitionTeam < ActiveRecord::Base

  belongs_to :user
  belongs_to :competition
  has_many :competition_scores, dependent: :destroy

end
