Phase 1 | Priority: P0 | Status: Not Started | Covers: FR-001

Context

Part of the Self-Serve Referral Flow implementation. This is the foundational data model that all other referral tasks depend on.

Objective

Create the referral_codes database table and migration so referral codes can be generated, stored, and looked up efficiently.

Acceptance Criteria

Dependencies

Blocked by: None (first task). Blocks: all other Phase 1 tasks.