store transcripts in redis/pg to alleviate the load on nq

This commit is contained in:
2025-07-05 23:57:21 +02:00
parent 7b86fb9d82
commit 86c6d98b80
4 changed files with 102 additions and 20 deletions

View File

@@ -189,3 +189,10 @@ export const leaderboardSnapshots = pgTable('leaderboard_snapshots', {
})
export const leaderboardSnapshotsRelations = relations(leaderboardSnapshots, ({}) => ({}))
export const transcripts = pgTable('transcripts', {
id: integer('id').primaryKey().generatedByDefaultAsIdentity(),
gameNumber: integer('game_number').notNull().unique(),
content: text('content').notNull(),
createdAt: timestamp('created_at').notNull().defaultNow(),
})