Original query:

                                              Table "public.customers"
           Column            |            Type             |                       Modifiers                        
-----------------------------+-----------------------------+--------------------------------------------------------
 id                          | integer                     | not null default nextval('customers_id_seq'::regclass)
 email                       | character varying(255)      | 
 comment                     | text                        | 
 status                      | integer                     | not null
 pro_user_id                 | integer                     | not null
 created_at                  | timestamp without time zone | 
 updated_at                  | timestamp without time zone | 
Indexes:
    "customers_pkey" PRIMARY KEY, btree (id)
    "idx_customer_email" btree (email)
    "index_customers_on_pro_user_id" btree (pro_user_id)
    "index_customers_on_updated_at" btree (updated_at)

                                          Table "public.details"
   Column    |            Type             |                      Modifiers                       
-------------+-----------------------------+------------------------------------------------------
 id          | integer                     | not null default nextval('details_id_seq'::regclass)
 firstname   | character varying(128)      | 
 lastname    | character varying(128)      | 
 customer_id | integer                     | 
 created_at  | timestamp without time zone | 
 updated_at  | timestamp without time zone | 
Indexes:
    "details_pkey" PRIMARY KEY, btree (id)
    "index_details_on_customer_id" btree (customer_id)