email_log

-1 rows


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id bigserial 19 nextval('email_log_id_seq'::regclass)

Primary key
Format: Integer (auto-increment)
Used as: Unique identifier for a single email transmission record.

sender varchar 2147483647 null

The system module or user that initiated the email sending process.
Format: Varchar/Text or FK (User ID)
Example: Recruitment_Module, System_Cron, HR_User_ID: 123.

email_from varchar 2147483647 null

The sender’s email address as it appeared in the outgoing message.
Format: Varchar(255)
Example: noreply@company.com.

email_to varchar 2147483647 null

The primary recipient email address(es).
Format: Text (comma-separated list for multiple recipients)

cc varchar 2147483647 null

The Carbon Copy recipient email address(es).
Format: Text (comma-separated list, nullable)

bcc varchar 2147483647 null

The Blind Carbon Copy recipient email address(es).
Format: Text (comma-separated list, nullable)

subject varchar 2147483647 null

The subject line of the email sent.
Format: Varchar/Text

body varchar 2147483647 null

The full content/body of the email message.
Format: Text (potentially including HTML)

attachment varchar 2147483647 null

A record of file attachments included with the email.
Format: JSONB or Text (e.g., list of file paths/IDs, nullable)

success bool 1 false

Flag indicating the final delivery status of the email via the mail server.
Format: Boolean (True/False)
Logic: True if the mail server accepted the message for delivery.

error varchar 2147483647 null

Any error message returned by the mail server upon failure.
Format: Text
Usage: Null if successful, otherwise contains details like “Recipient address rejected”.

sent_time timestamp 29,6 null

Timestamp of when the email was sent or transmitted to the mail server.
Stored as: UTC
Format: YYYY-MM-DDTHH:MM:SSZ

Indexes

Constraint Name Type Sort Column(s)
pk_email_log Primary key Asc id

Relationships