6 Commits

Author SHA1 Message Date
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
9df27aea2d Delete database and comment out staking_event 2023-03-22 11:07:22 +07:00
87a188a814 Update upgrading to use the inventory item DB id 2023-03-21 10:40:49 +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
Nico Li
e5c4d8eae8 Initial commit 2023-02-09 21:38:59 +07:00
Nico Li
99ac7890c0 Initial commit from Create Next App 2023-02-09 16:56:13 +07:00