Skip to content

Feature: Add Learner Public and Private Profile Schema #83

Description

@3m1n3nc3

Description

Separate private account data from consent-controlled learner profile data.

File Location

learnault-api/prisma/schema.prisma, profile migration/types, and privacy docs

Design Reference

API Roadmap Phase 1: Add Learner Public and Private Profile Schema.

Dependencies

  • Status: Blocked
  • Blocked by: Feature: Add Auditable Data Lifecycle and Archive Policy; Feature: Repair Clean Install and Prisma Generation
  • Blocks: Feature: Add Onboarding and Consent Persistence; Feature: Replace Mock User Helpers with Profile API; Feature: Add Learner Preference API

Tasks

  • Add account status/verification fields without exposing them publicly
  • Add profile name, bio, avatar, country, timezone, languages, level, interests, goals, and visibility
  • Model multi-value fields consistently and index consented search fields
  • Define private, owner, employer-visible, and public serializers
  • Define profile-completion inputs
  • Test migration, visibility, serialization, and deletion

Acceptance Criteria

  • Private fields never enter public serializers
  • Visibility is modeled, not scattered in controllers
  • Completion is deterministic
  • Migration/privacy tests pass

Verification Evidence

  • Attach schema/privacy matrix, migration, and leakage tests

Difficulty

Advanced

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions