feat: psql based event system
authorxangelo <me@xangelo.ca>
Thu, 28 Sep 2023 19:04:20 +0000 (15:04 -0400)
committerxangelo <me@xangelo.ca>
Thu, 28 Sep 2023 19:04:20 +0000 (15:04 -0400)
commit43f0bc31d6a0c2974891840f7ba10efa77c2e520
treee02083b01cff08f67ae00df9c96f14f851d0f37b
parentdfa62a7e55a7d2cc991b4d9bce179ab5f8afe836
feat: psql based event system

you can now track arbitrary events that get flushed to postgres so that
you can track things. To start we're tracking dungeon completions so
that we can give users 20% rewards after 5 daily completions.
migrations/20230915162829_events.ts [new file with mode: 0644]
package.json
src/server/api.ts
src/server/dungeon.ts
src/server/events.ts [new file with mode: 0644]
src/server/fight.ts
src/server/lib/clickhouse.ts [new file with mode: 0644]
src/server/locations/dungeon.ts
src/server/views/dungeons/room.ts
src/shared/constants.ts
src/shared/event.ts [new file with mode: 0644]