Skip to content

HVC Services — Data

  • Project: hvc-services

Overview

The service reads/writes these main tables (per tenant DB):

TableUsage
emailOutboxEntriesEmails queued for sending; polled by EmailSenderService
MediaFileMedia records created when a recording is stored
FileShareShare records created alongside media
ScheduledEventsEvent rows updated with hasRecording after a recording is stored

Email outbox

  • The email sender polls emailOutboxEntries in batches, sending new entries and tracking the cursor (lastId/prevId).
  • Retries/back-off apply per entry; failure reasons are recorded on the entry.

Recordings

  • Recording files are identified by the env__eventId__tenantId__... filename convention.
  • After download, the service creates MediaFile + FileShare rows and sets hasRecording on the matching ScheduledEvents row.

Released under the MIT License.