Skip to content

Data model

The sypnia_mail schema: domains, templates, e-mails, events, suppressions, webhooks and inbound.

Applies to EngineCloud
View as Markdown
TableHoldsKey columns
domainssending domains of a projectproject_id, name, dkim_tokens, state, verified_at, warmup_day
templatesa templateproject_id, name, default_locale, published_version
template_versionseach saved versiontemplate_id, version, locale, subject, html, text, created_by
emailseach e-mailid, project_id, from, to, subject, template, tags (jsonb), status, scheduled_at, ses_message_id, idempotency_key, body_ref
email_eventseach eventemail_id, type, at, detail (jsonb)
suppressionsaddresses not sent toproject_id, address (lower-cased), reason, source_email_id, created_at
webhooks and webhook_deliveriesendpoints and each attempturl, events[], secret_hash, paused_at; event_id, attempt, status
inbound_rules and inbound_messagesrules and received messagesmatch, action, target; raw_ref, from, to, rule_id, verdicts
keysAPI and SMTP keysproject_id, name, scopes[], hash, last_used_at

emails is partitioned by month; bodies (body_ref) are objects in storage, deleted at the end of the plan’s retention. suppressions has a unique index on (project_id, address) and is checked on every send.

    Search pages, sections and terms