6 Commits

Author SHA1 Message Date
6c1ac1838f Delete on cascade, Readme, small dockerfile changes 2023-04-27 19:45:33 +07:00
40060686a0 Change to floating point numbers for prices and claims 2023-04-21 19:26:02 +07:00
06fe914fa6 Add a clear-data endpoint 2023-04-10 20:22:36 +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
99bc7a319f Merge feature/api
* Added backend capabilities with SQLite3
* Added routes for Next.js backend
2023-03-19 10:21:19 +07:00