Hi Guys
I'm developing a website for a golf society where by the member logs in, selects which golf course they played, adds their score for each hole and from that their handicap is calculated plus a member will have access to all the rounds they've played.
The update score page is going to use a score card form template from which the fields are populated with details from each individual golf course and from the members score IE (Hole) 1 - (PAR) 4 - (SI) 5 - (MEMBERS SCORE) 5
The member can play a course on different tee colours which equal different yardages.
Could you tell whether I'm going the right way for the DB Stucture?
Members Table
--------------
->members_id
->name
->handicap
....other details
--------------
Golf Club Table
--------------
->golf_club_id
->name
--------------
Golf Course Table (A golf club may have more than 1 course)
--------------
->golf_course_id
->name
->total yards
->par
->stroke index
->golf_club_id
--------------
Golf Tees Played Off Table (Competition, Mens etc)
--------------
->tee_id
->tee_colour
--------------
Table for the par on each hole
--------------
->pars_table_id
->hole1
->hole2
->hole3
....
->hole18
->tee_id
->course_id
--------------
Table for the yardage on each hole
--------------
->yardage_table_id
->hole1
->hole2
->hole3
....
->hole18
->tee_id
->course_id
--------------
Table for the SI on each hole
--------------
->SI_table_id
->hole1
->hole2
->hole3
....
->hole18
->tee_id
->course_id
--------------
Scores Table
--------------
->score_id
->date
->hole1
->hole2
->hole3
....
->hole18
->tee_id
->course_id
->members_id
--------------
hope this makes sense I'm not whether I'm going the right or whether I'm way off, any help would be much appreciated.
Kind Regards
Tez
p.s sorry about long post








Bookmarks