                                          Table "public.send_attempts"
      Column       |           Type           | Collation | Nullable |                  Default                  
-------------------+--------------------------+-----------+----------+-------------------------------------------
 id                | integer                  |           | not null | nextval('send_attempts_id_seq'::regclass)
 send_job_id       | integer                  |           | not null | 
 campaign_id       | integer                  |           | not null | 
 gmail_account_id  | integer                  |           |          | 
 recipient_email   | character varying(320)   |           | not null | 
 subject           | character varying(500)   |           |          | 
 template_name     | character varying(250)   |           |          | 
 attachment_names  | json                     |           |          | 
 method            | character varying(20)    |           |          | 
 outcome           | character varying(30)    |           | not null | 
 provider_response | text                     |           |          | 
 message_id        | character varying(200)   |           |          | 
 thread_id         | character varying(200)   |           |          | 
 retry_no          | integer                  |           |          | 
 failure_reason    | text                     |           |          | 
 error_class       | character varying(60)    |           |          | 
 created_at        | timestamp with time zone |           | not null | 
 updated_at        | timestamp with time zone |           | not null | 
Indexes:
    "send_attempts_pkey" PRIMARY KEY, btree (id)
    "ix_send_attempts_campaign_id" btree (campaign_id)
    "ix_send_attempts_created_at" btree (created_at)
