Open wwall3r opened 1 year ago
Hmm. Maybe it isn't running the score at all on the creation because the trigger is UPDATE
rather than INSERT
, so that is a non-issue.
I think this could use an updated_at
on the scores
table so that you could potentially sort by earliest or most recent for a given score as a tiebreaker.
This adds a
scores
table (card_id
,score
) and computes the score for a card on updates tocompletions
. This is now used by the UI in the/games/[gameId]/
route.Potential future improvements: