Files
nademitex_server/runtime/migrations/20261004100000_otp_referrer_agent/migration.sql
T
safavimohadeseh78andCursor 6257fe2770 feat(auth): referral agent code and auto-assign agent codes
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>
2026-10-04 10:38:15 +03:30

3 lines
76 B
SQL

-- AlterTable
ALTER TABLE "OtpChallenge" ADD COLUMN "assignedAgentId" TEXT;