Skip to content

Conversation

@CarlyAThomas
Copy link
Contributor

Please note:
⚠️ Depends on: PR #569 and PR #570 - Please review and merge those PRs first.

Changes made:

  • Added fccProperUserId as optional unique field to User model in schema.prisma
  • Created migration: 20251207074222_add_fcc_proper_user_id
  • Field is nullable and has a unique constraint

Checklist:

This PR is not associated with an issue.

Overview

Adds fccProperUserId field to User model to enable integration with the FCC Proper API.

Purpose

This field will be used to:

  • Link classroom users with their FCC proper accounts
  • Enable syncing user data between classroom and FCC proper
  • Support future FCC Proper API integration features

Technical Details

fccProperUserId String? @unique

- Removed isAdminApproved field that was causing schema drift
- Field was in migration but not in schema.prisma
- Resolves database sync issues
- Added missing migration for refresh_token_expires_in field
- Field exists in schema.prisma but was missing from database
- Resolves Account table schema drift
- Added fccProperUserId as optional unique field
- Prepares for FCC Proper API integration
- Enables linking classroom users with FCC proper accounts
@CarlyAThomas CarlyAThomas requested a review from a team as a code owner December 7, 2025 22:33
- Removed old migration with isAdminApproved drift issue
- Created fresh migration from current schema.prisma
- Database schema now matches schema definition exactly
- No isAdminApproved field (was causing drift)
- Includes all current schema fields (fccProperUserId, refresh_token_expires_in)
@utsab utsab merged commit 5dada89 into freeCodeCamp:main Dec 9, 2025
3 checks passed
@CarlyAThomas CarlyAThomas deleted the feat/add-fcc-proper-user-id branch December 9, 2025 04:06
CarlyAThomas added a commit to CarlyAThomas/classroom that referenced this pull request Dec 23, 2025
* fix: remove isAdminApproved from User table migration

- Removed isAdminApproved field that was causing schema drift
- Field was in migration but not in schema.prisma
- Resolves database sync issues

* fix: add refresh_token_expires_in column to Account table

- Added missing migration for refresh_token_expires_in field
- Field exists in schema.prisma but was missing from database
- Resolves Account table schema drift

* feat: add fccProperUserId field to User model

- Added fccProperUserId as optional unique field
- Prepares for FCC Proper API integration
- Enables linking classroom users with FCC proper accounts

* fix: replace old migration with clean initial setup

- Removed old migration with isAdminApproved drift issue
- Created fresh migration from current schema.prisma
- Database schema now matches schema definition exactly
- No isAdminApproved field (was causing drift)
- Includes all current schema fields (fccProperUserId, refresh_token_expires_in)
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.

2 participants