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

Description

Database table tracking active and expired profile share link metadata including hashed token, object storage key, originating user ID, expiry timestamp, and contact inclusion flag. Supports revocation checks and scheduled cleanup of expired snapshots.

Feature: Share Profile

profile-share-links-table

Responsibilities

  • Persist share link metadata on creation (token hash, snapshot object key, user ID, expires_at, include_contact)
  • Support lookup by token hash for validation and revocation at request time
  • Enable batch deletion of expired records and corresponding object storage cleanup

Interfaces

insert(record: ShareLinkRecord): Promise<void>
findByTokenHash(tokenHash: string): Promise<ShareLinkRecord | null>
deleteExpiredBefore(cutoff: Date): Promise<number>
deleteByLinkId(linkId: string): Promise<void>

Relationships

Dependents (1)

Components that depend on this component