| created_at |
timestamp with time zone |
now() |
false |
|
|
Timestamp when the record was created. |
| deleted_at |
timestamp with time zone |
|
true |
|
|
Timestamp when the record was deleted. If null, the record is not
deleted. |
| email_template_id |
uuid |
|
false |
|
public.email_templates |
The email template that is being sent in this email delivery. |
| first_failed_at |
timestamp with time zone |
|
true |
|
|
Timestamp of the first failed delivery attempt for this email, used
as the retry window anchor. |
| id |
uuid |
uuid_generate_v4() |
false |
public.credit_registration_account_linking_emails
public.email_delivery_errors |
|
A unique, stable identifier for the record. |
| last_attempt_at |
timestamp with time zone |
|
true |
|
|
Timestamp of the most recent delivery attempt for this email. |
| next_retry_at |
timestamp with time zone |
|
true |
|
|
Next scheduled time when this email delivery will be retried, or
NULL when no retry is scheduled. |
| placeholders |
jsonb |
|
true |
|
|
Placeholder bag substituted into the template body at send time.
Used when the recipient has no account, so the sender needs no user
lookup. NULL means the template derives its placeholders from
user_id. |
| recipient_email |
varchar(255) |
|
true |
|
|
Explicit recipient address, used when the email is not addressed to
a known user. Never set together with user_id, and nulled by retention
once the delivery is sent or retired, so an old row holds no
address. |
| retry_count |
integer |
0 |
false |
|
|
Number of failed delivery attempts recorded so far for this
email. |
| retryable |
boolean |
true |
false |
|
|
Indicates whether this email delivery is still eligible for further
retry attempts. |
| sent |
boolean |
false |
false |
|
|
Whether the email was sent or not. If false, a background daemon
will try to send this email message. |
| updated_at |
timestamp with time zone |
now() |
false |
|
|
Timestamp when the record was last updated. The field is updated
automatically by the set_timestamp trigger. |
| user_id |
uuid |
|
true |
|
public.users |
The user to whom the email should be sent. NULL for emails addressed
to a raw external address (see recipient_email), e.g. student-number
linking mails sent to the address Sisu holds for a person who may not
have an account here. Never set together with recipient_email. |