Skip to content

Database model #12

@keveri

Description

@keveri

Any comments about this kind of database model? If it's not clear check this.

Player
  name T.Text

Course
  name T.Text

Hole
  courseId CourseId
  number Int
  par Int

Throw
  playerId PlayerId
  scorecardId ScorecardId
  holeId HoleId
  score Int

PlayerScorecard
  playerId PlayerId
  scorecardId ScorecardId
  UniquePlayerScorecard playerId scorecardId

Scorecard
  name T.Text
  courseId CourseId
  createdAt UTCTime default=CURRENT_TIME
  updatedAt UTCTim

Later we can add also location, status and some other extra info.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions