fixed weird signin bug

This commit is contained in:
George Powell
2026-02-12 20:24:38 -05:00
parent 290fb06fe9
commit f6652e59a7
5 changed files with 335 additions and 119 deletions

View File

@@ -41,6 +41,8 @@ export const dailyCompletions = sqliteTable('daily_completions', {
anonymousIdDateIndex: index('anonymous_id_date_idx').on(table.anonymousId, table.date),
dateIndex: index('date_idx').on(table.date),
dateGuessIndex: index('date_guess_idx').on(table.date, table.guessCount),
// Ensures schema matches the database migration and prevents duplicate submissions
uniqueAnonymousIdDate: unique('daily_completions_anonymous_id_date_unique').on(table.anonymousId, table.date),
}));
export type DailyCompletion = typeof dailyCompletions.$inferSelect;