Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 783 Bytes

GameDatabaseModel.md

File metadata and controls

36 lines (29 loc) · 783 Bytes

Game Table

id PK roundCompleted boolean rolls int currentHand array

ScoreCategory Table

id PK gameId FK scoreCategoryId FK handOfDice array // Note: score will be recalculated when the object is reconstituted

ScoreCategory Table

id PK CategoryName string

Memento Design

Game.Memento roundCompleted boolean rolls int currentHand List (not HandOfDice) scoreboard EnumMap<ScoreCategory (enum), List>

NEXT STEPS:

#. Create DB tables [Ted will do separately] #. Introduce snapshot [Ted will do separately] #. Create GameRepository adapter