10 Commits

Author SHA1 Message Date
2f809bf889 Get game config endpoint 2023-04-14 20:17:24 +07:00
46580c800e Fix staking multiple times bug and csv import bugs 2023-04-14 15:13:41 +07:00
08b227200b Sell resources endpoint and postgres function 2023-04-14 13:18:05 +07:00
8aa241afdd Forgot to commit file 2023-04-11 21:36:18 +07:00
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
d110fba3ff Return data as camelCase 2023-03-22 13:10:57 +07:00
87a188a814 Update upgrading to use the inventory item DB id 2023-03-21 10:40:49 +07:00