tengen-io / server

:white_circle: Server implementation of the board game Go
MIT License
13 stars 4 forks source link

Stones Refactor + DB schema improvements #27

Closed camirmas closed 5 years ago

camirmas commented 5 years ago

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.