```ruby
class Team
	include Mongoid::Document
	include Mongoid::Timestamps

	field :name, type: String
	field :location, type: String

	has_many :participations
	has_many :records
end
```

Switch to Team number schema
user
```ruby
class Team
	include Mongoid::Document
	include Mongoid::Timestamps

	field :_id, type: Integer

	field :name, type: String
	field :location, type: String

	has_many :participations
	has_many :records

	validates :_id, uniqueness: true
end
```
assistant