Data Layer medium complexity backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Data access component managing all read and write operations for the nda_agreements table. Stores signed agreement metadata (user ID, timestamp, document version hash, signature image storage reference) and provides query methods used by the NDA Validation Service to enforce access gating.

Feature: Driver Honorarium & NDA Management

nda-repository

Responsibilities

  • Persist NDA agreement metadata on successful signing
  • Store signature image reference in Supabase Storage under restricted policy
  • Query valid NDA records by user ID and document version
  • Support expiry checks and version mismatch detection
  • Provide audit records for compliance and incident investigation

Interfaces

saveNdaAgreement(record)
getNdaByUserId(userId)
getLatestNda(userId)
getSignatureImageUrl(ndaId)
deleteNda(ndaId)
listNdaAgreements(organizationId)
hasValidNdaRecord(userId, templateVersion)
getAuditLog(userId)

Related Data Entities (1)

Data entities managed by this component