This refactors Game and Stone so that Stones are no longer represented as JSON in the DB, but rather are a part of the relational db structure. This should make the backend data model clearer, and should thus easier for frontend clients to integrate with.
In addition to creating an official stones table, we are now using the SERIAL type for ids, which is a cleaner way to manage auto-incrementing.
This refactors
Game
andStone
so that Stones are no longer represented as JSON in the DB, but rather are a part of the relational db structure. This should make the backend data model clearer, and should thus easier for frontend clients to integrate with.In addition to creating an official
stones
table, we are now using theSERIAL
type for ids, which is a cleaner way to manage auto-incrementing.