Index

public.email_delivery_errors

Description

Log of individual email delivery failures.

Columns

Name Type Default Nullable Children Parents Comment
attempt integer false 1-based send attempt number at which this error occurred.
created_at timestamp with time zone now() false Timestamp when this email delivery error entry was recorded.
deleted_at timestamp with time zone true Timestamp when this email delivery error entry was soft deleted.
email_delivery_id uuid false public.email_deliveries Foreign key to the parent email_deliveries row this error belongs to.
error_code text true Short machine-friendly classification of the failure (e.g. transient, permanent, timeout).
error_message text false Human-readable description of the failure returned by the mailer or application.
id uuid uuid_generate_v4() false Stable identifier for an individual email delivery error entry.
is_transient boolean false Indicates whether the failure is considered transient and therefore retryable.
smtp_response text true Raw SMTP response text associated with the failure when available.
smtp_response_code integer true Numeric SMTP status code associated with the failure when available.
updated_at timestamp with time zone now() false Timestamp when this email delivery error entry was last updated. The field is updated automatically by the set_timestamp trigger.

Constraints

Name Type Definition
email_delivery_errors_attempt_not_null n NOT NULL attempt
email_delivery_errors_created_at_not_null n NOT NULL created_at
email_delivery_errors_email_delivery_id_fkey FOREIGN KEY FOREIGN KEY (email_delivery_id) REFERENCES email_deliveries(id) ON DELETE CASCADE
email_delivery_errors_email_delivery_id_not_null n NOT NULL email_delivery_id
email_delivery_errors_error_message_not_null n NOT NULL error_message
email_delivery_errors_id_not_null n NOT NULL id
email_delivery_errors_is_transient_not_null n NOT NULL is_transient
email_delivery_errors_pkey PRIMARY KEY PRIMARY KEY (id)
email_delivery_errors_updated_at_not_null n NOT NULL updated_at

Indexes

Name Definition
email_delivery_errors_created_at_idx CREATE INDEX email_delivery_errors_created_at_idx ON public.email_delivery_errors USING btree (created_at)
email_delivery_errors_email_delivery_id_idx CREATE INDEX email_delivery_errors_email_delivery_id_idx ON public.email_delivery_errors USING btree (email_delivery_id)
email_delivery_errors_pkey CREATE UNIQUE INDEX email_delivery_errors_pkey ON public.email_delivery_errors USING btree (id)

Triggers

Name Definition
set_timestamp CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.email_delivery_errors FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp()

Relations

er

Generated by tbls