Validate optional referrer code at OTP registration and persist assignedAgentId. Auto-generate unique W-XXXX codes when creating or promoting agents and backfill on agent login when missing. Co-authored-by: Cursor <cursoragent@cursor.com>
3 lines
76 B
SQL
3 lines
76 B
SQL
-- AlterTable
|
|
ALTER TABLE "OtpChallenge" ADD COLUMN "assignedAgentId" TEXT;
|