feat: schema — mentor assignment drop tracking
Adds 3 nullable fields to MentorAssignment for drop lifecycle: - droppedAt: timestamp of drop (null while active) - droppedReason: free text (required when droppedAt is set) - droppedBy: 'mentor' | 'admin' | 'finalist_unconfirmed' Migration is purely additive: no DROP, no ALTER COLUMN, no RENAME. All existing rows automatically get NULL for the new columns.
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "MentorAssignment" ADD COLUMN "droppedAt" TIMESTAMP(3),
|
||||||
|
ADD COLUMN "droppedBy" TEXT,
|
||||||
|
ADD COLUMN "droppedReason" TEXT;
|
||||||
@@ -1285,6 +1285,11 @@ model MentorAssignment {
|
|||||||
completionStatus String @default("in_progress") // 'in_progress' | 'completed' | 'paused'
|
completionStatus String @default("in_progress") // 'in_progress' | 'completed' | 'paused'
|
||||||
lastViewedAt DateTime?
|
lastViewedAt DateTime?
|
||||||
|
|
||||||
|
// Drop tracking — null while assignment is active
|
||||||
|
droppedAt DateTime?
|
||||||
|
droppedReason String? @db.Text
|
||||||
|
droppedBy String? // 'mentor' | 'admin' | 'finalist_unconfirmed'
|
||||||
|
|
||||||
// ── Competition/Round architecture — workspace activation ──
|
// ── Competition/Round architecture — workspace activation ──
|
||||||
workspaceEnabled Boolean @default(false)
|
workspaceEnabled Boolean @default(false)
|
||||||
workspaceOpenAt DateTime?
|
workspaceOpenAt DateTime?
|
||||||
|
|||||||
Reference in New Issue
Block a user