mirror of
https://github.com/ershisan99/www.git
synced 2025-12-17 05:19:23 +00:00
store transcripts in redis/pg to alleviate the load on nq
This commit is contained in:
@@ -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(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user