Skip to content

Update schema for user ranking fields and event commits table.#14

Open
NilloGabriel wants to merge 1 commit intoisabellaherman:mainfrom
NilloGabriel:main
Open

Update schema for user ranking fields and event commits table.#14
NilloGabriel wants to merge 1 commit intoisabellaherman:mainfrom
NilloGabriel:main

Conversation

@NilloGabriel
Copy link
Copy Markdown

The goal is to correct a error (P2022) that occurred in the NextAuth adapter (getUserByEmail). The error was caused by a desynchronization between schema.prisma and the database, where the application attempted to access the users.allTimeRank column, which did not yet exist.

This migration applies the following changes:

  • Users table:

    • Adds allTimeRank (INTEGER)
    • Adds weeklyRank (INTEGER)
    • Adds rankUpdatedAt (TIMESTAMP)
  • New event_commits table:

    • Creates the event_commits table to store and track individual commits related to an event.
  • Event_participants table:

    • Adds lastSyncAt (TIMESTAMP) to optimize data synchronization and avoid unnecessary lookups.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Nov 16, 2025

@NilloGabriel is attempting to deploy a commit to the isabellaherman's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant