MOPC-App/prisma/migrations
Matt 6d2537ec04
Build and Push Docker Image / build (push) Successful in 9m41s Details
Add per-round assignment constraints (min/max per judge)
- Add minAssignmentsPerJuror and maxAssignmentsPerJuror fields to Round model
- Update assignment router:
  - Calculate effective max from user override or round default
  - Add forceOverride parameter for manual assignment beyond limits
  - Update getSuggestions to use round constraints with min target bonus
  - Update getAISuggestions to pass constraints to AI service
- Update AI assignment service:
  - Add minAssignmentsPerJuror to constraints interface
  - Update fallback algorithm with under-min bonus scoring
  - New score weights: 50% expertise, 30% load, 20% under-min bonus
- Update round router:
  - Add new constraint fields to create/update schemas
  - Add validation for min <= max constraint
- Update admin UI:
  - Add min/max constraint fields to round edit page
  - Remove hardcoded maxPerJuror from assignments page
- Add migration files for production deployment:
  - User.bio field for judge/mentor profiles
  - Round assignment constraint fields

Constraint hierarchy:
1. User.maxAssignments (if set) overrides round default
2. Round.maxAssignmentsPerJuror is the default cap
3. Admin can force-override any limit with confirmation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 16:01:18 +01:00
..
20260130000000_init Add initial Prisma migration from schema 2026-01-30 19:10:27 +01:00
20260202000000_prototype1_improvements Fix migration: skip inviteToken columns and index that already exist in production 2026-02-02 17:17:55 +01:00
20260202100000_add_award_ai_toggle Add AI eligibility toggle and include-submitted filter for awards 2026-02-02 20:02:58 +01:00
20260202120000_decouple_projects_from_rounds Decouple projects from rounds with RoundProject join table 2026-02-02 22:33:55 +01:00
20260203000000_add_ai_usage_log Fix GPT-5 API compatibility and add AIUsageLog migration 2026-02-03 15:04:16 +01:00
20260203100000_add_invite_token_columns Fix multiple UI/UX issues and invite token migration 2026-02-03 15:25:28 +01:00
20260203200000_add_onboarding_system Add background filtering jobs, improved date picker, AI reasoning display 2026-02-03 19:48:41 +01:00
20260203210000_add_filtering_job Add background filtering jobs, improved date picker, AI reasoning display 2026-02-03 19:48:41 +01:00
20260203220000_add_in_app_notifications Add notification bell system and MOPC onboarding form 2026-02-03 21:30:25 +01:00
20260204000000_add_round_entry_notification Add unified expertise tag system and round entry notifications 2026-02-04 01:15:21 +01:00
20260204100000_add_round_sort_order Add migration for Round.sortOrder field 2026-02-04 14:32:52 +01:00
20260204140000_add_user_bio Add per-round assignment constraints (min/max per judge) 2026-02-04 16:01:18 +01:00
20260204150000_add_assignment_constraints Add per-round assignment constraints (min/max per judge) 2026-02-04 16:01:18 +01:00
migration_lock.toml Implement Prototype 1 improvements: unified members, project filters, audit expansion, filtering rounds, special awards 2026-02-02 16:58:29 +01:00