About PtGolf.us

Event

Events are the smallest table but the controlling model.

class Event < ActiveRecord::Base
 belongs_to :group
 has_many :scored_rounds
 has_many :event_rounds
 has_many :rounds, :dependent => :destroy
 has_many :group_players, through: :rounds
end
Purpose
  • To define information on games played on a date.
  • To link group players who played
  • To link rounds to players, including scores and teams
Data Elements
group_id
Defines the group the event belongs to
date
The date the event occurred.
status
The current status of the event.
games
option information on side games played during the event
Games
Information on what games were played, the game pot and who was in the game
Game
Statistics on who won the game
Cards
Scorecards for players who played the skins game (what there score was on each hole relative to par (birdie, eagle, etc)).