Data Layer low complexity backend
0
Dependencies
2
Dependents
4
Entities
0
Integrations

Description

Data access layer for referral tracking records, providing CRUD operations on the referral_trackings table and aggregation queries for conversion metrics. Supports time-based and user-based filtering with organization scoping.

Feature: Recruitment Tracking

referral-store

Responsibilities

  • Persist and retrieve referral tracking conversion events
  • Provide aggregation queries for conversion funnel metrics
  • Support time-range and user-based filtering of referral data
  • Maintain referential integrity with referral_links table

Interfaces

createTrackingEvent(referralLinkId, eventType, metadata)
getTrackingsByLink(referralLinkId)
getTrackingsByOrganization(organizationId, filters)
aggregateConversions(organizationId, groupBy, timePeriod)
getLatestEventForLink(referralLinkId)
countConversionsByType(organizationId, eventType, timePeriod)

Relationships

Dependents (2)

Components that depend on this component