4 Commits

Author SHA1 Message Date
06fe914fa6 Add a clear-data endpoint 2023-04-10 20:22:36 +07:00
e68de31a6a Leaderboards endpoint 2023-04-10 19:37:34 +07:00
5ae726064c Import config from Google spreadsheets into the database 2023-04-08 19:15:28 +07:00
9b753cf103 Porting database from SQLite to PostgreSQL
- New Postgres table schemas
- Using Stored Procedures with transactions that validate business logic
- User Ids now use UUID
- Updated and simplified all endpoints to call the stored procedures

Notes: There are still a few things missing that broke because of the migration,
in particular, because we moved a lot of the business logic into the database,
we now require that certain data that lived in the game-config.json to be
present in the database as well, to prevent cheating and truly have a single
source of truth.
2023-03-30 14:13:30 +07:00