<turbo-stream action="replace" target="content"><template><turbo-frame id="content"><h5 class="strong">Rounds</h5><div class="row"><div class="small-6 columns"><p class="slim">Rounds store scores and information from an event.</p><pre><code>class Round < ActiveRecord::Base
  belongs_to :player
  belongs_to :group
end</code></pre><div class="strong">Purpose</div><ul class="classic"><li>To store score (points pulled) from an event.</li><li>To store a team number from an event.</li><li>To provide the scores needed to computed quotas.</li><li>To store optional information from an event (wealth distributions)</li></ul><p class="slim">Rounds are kept for as long as the group wants, but can be trimmed to the number of months set in the groups preference. </p></div><div class="small-6 columns"><div class="strong">Data Elements</div><dl class="indent-dd"><dt>group_player_id</dt><dt>event_id</dt><dt>type</dt><dd>Rounds are either GameRounds (which have not been scored) or ScoredRounds. Only ScoredRounds are used in computing quotas.</dd><dt>date</dt><dd>Date round was played (event dte)</dd><dt>team</dt><dd>Team number of the team the player was on</dd><dt>tee</dt><dd>The tee the player played from (group primary tee)</dd><dt>quota</dt><dd>The players quota and the date the game was played</dd><dt>front</dt><dd>Points pulled on the front side</dd><dt>back</dt><dd>Points pulled on the back side</dd><dt>total</dt><dd>Total points pulled (sum of front and back)</dd><dt>quality</dt><dd>Any wealth distributed to the player from the team event.</dd><dt>skins</dt><dd>Any wealth distributed to the player from and optional skins side game</dd><dt>par3</dt><dd>Any wealth distributed to the player from and optional par3 side game</dd><dt>other</dt><dd>Any wealth distributed to the player from and optional other game</dd></dl></div></div></turbo-frame></template></turbo-stream>