/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 1 - 2025-05-27 07:45:29 [1.65ms] */
select * from `users` where `email` = 'admin@admin.com' and `status` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 2 - 2025-05-27 07:45:29 [0.27ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 3 - 2025-05-27 07:45:29 [0.33ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 2 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 4 - 2025-05-27 07:45:29 [6.4ms] */
update `userprofiles` set `login_count` = 700, `last_login` = '2025-05-27 07:45:29', `userprofiles`.`updated_at` = '2025-05-27 07:45:29' where `id` = 2;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 5 - 2025-05-27 07:45:29 [0.56ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 6 - 2025-05-27 07:45:29 [0.54ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 7 - 2025-05-27 07:45:29 [0.55ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-05-27 07:45:30 [1.34ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-05-27 07:45:30 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-05-27 07:45:30 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-05-27 07:45:30 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-05-27 07:45:30 [13.1ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-05-27 07:45:30 [25.52ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-05-27' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-05-27 07:45:30 [24.01ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-05-27 07:45:30 [29.48ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-05-27' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-05-27 07:45:30 [105.92ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-05-26' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-05-27 07:45:30 [44.5ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-05-26' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-05-27 07:45:30 [317.61ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-05-27' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-05-27 07:45:31 [1023.79ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-05-27' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 1 - 2025-05-27 07:50:05 [1.73ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 2 - 2025-05-27 07:50:05 [0.63ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 3 - 2025-05-27 07:50:05 [0.6ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 4 - 2025-05-27 07:50:05 [0.62ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 5 - 2025-05-27 07:50:05 [20.06ms] */
select count(*) as aggregate from `person` where `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 6 - 2025-05-27 07:50:05 [14.98ms] */
select * from `person` where `person`.`deleted_at` is null order by `updated_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 7 - 2025-05-27 07:50:05 [0.43ms] */
select * from `company_type` where `company_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 8 - 2025-05-27 07:50:05 [33.27ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62356 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 9 - 2025-05-27 07:50:05 [0.49ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64982 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 10 - 2025-05-27 07:50:05 [30.2ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62322 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 11 - 2025-05-27 07:50:05 [0.4ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64946 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 12 - 2025-05-27 07:50:05 [25.87ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62353 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 13 - 2025-05-27 07:50:05 [0.4ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64979 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 14 - 2025-05-27 07:50:05 [25.8ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62357 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 15 - 2025-05-27 07:50:05 [0.35ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64983 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 16 - 2025-05-27 07:50:05 [25.8ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62355 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 17 - 2025-05-27 07:50:05 [0.35ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64981 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 18 - 2025-05-27 07:50:05 [25.81ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62354 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 19 - 2025-05-27 07:50:05 [0.35ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64980 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 20 - 2025-05-27 07:50:05 [25.79ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62352 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 21 - 2025-05-27 07:50:05 [0.36ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64978 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 22 - 2025-05-27 07:50:05 [25.82ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62351 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 23 - 2025-05-27 07:50:05 [0.91ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64977 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 24 - 2025-05-27 07:50:05 [25.66ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62350 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 25 - 2025-05-27 07:50:05 [0.28ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64976 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 26 - 2025-05-27 07:50:05 [25.72ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62349 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party
   Query 27 - 2025-05-27 07:50:05 [0.31ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64975 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 1 - 2025-05-27 07:50:10 [2.12ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 2 - 2025-05-27 07:50:10 [0.71ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 3 - 2025-05-27 07:50:10 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 4 - 2025-05-27 07:50:10 [0.51ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 5 - 2025-05-27 07:50:10 [0.48ms] */
select count(*) as aggregate from `person` where `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 6 - 2025-05-27 07:50:10 [21.07ms] */
select * from `person` where `person`.`deleted_at` is null order by `updated_at` desc limit 10 offset 70;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 7 - 2025-05-27 07:50:11 [26.37ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62312 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 8 - 2025-05-27 07:50:11 [0.29ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64934 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 9 - 2025-05-27 07:50:11 [26.18ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62313 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 10 - 2025-05-27 07:50:11 [0.33ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64935 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 11 - 2025-05-27 07:50:11 [26.25ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62311 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 12 - 2025-05-27 07:50:11 [0.74ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64933 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 13 - 2025-05-27 07:50:11 [30.95ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 59350 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 14 - 2025-05-27 07:50:11 [0.4ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 61890 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 15 - 2025-05-27 07:50:11 [32.58ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62310 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 16 - 2025-05-27 07:50:11 [0.41ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64932 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 17 - 2025-05-27 07:50:11 [21.09ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 52849 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 18 - 2025-05-27 07:50:11 [0.31ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 52849 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 19 - 2025-05-27 07:50:11 [23.65ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 56825 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 20 - 2025-05-27 07:50:11 [0.33ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 59269 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 21 - 2025-05-27 07:50:11 [25.62ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62309 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 22 - 2025-05-27 07:50:11 [0.32ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64931 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 23 - 2025-05-27 07:50:11 [18.86ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 47993 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 24 - 2025-05-27 07:50:11 [0.32ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 47993 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 25 - 2025-05-27 07:50:11 [23.64ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 57204 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 26 - 2025-05-27 07:50:11 [0.3ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 59659 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 1 - 2025-05-27 07:50:12 [1.32ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 2 - 2025-05-27 07:50:12 [0.45ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 3 - 2025-05-27 07:50:12 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 4 - 2025-05-27 07:50:12 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 5 - 2025-05-27 07:50:12 [0.18ms] */
select count(*) as aggregate from `person` where `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 6 - 2025-05-27 07:50:12 [16.02ms] */
select * from `person` where `person`.`deleted_at` is null order by `updated_at` desc limit 10 offset 90;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 7 - 2025-05-27 07:50:12 [12.62ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 30707 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 8 - 2025-05-27 07:50:12 [0.37ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 30707 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 9 - 2025-05-27 07:50:12 [17.39ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 42440 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 10 - 2025-05-27 07:50:12 [0.32ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 42440 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 11 - 2025-05-27 07:50:12 [24.32ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 57977 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 12 - 2025-05-27 07:50:12 [0.33ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 60464 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 13 - 2025-05-27 07:50:12 [23.9ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 39759 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 14 - 2025-05-27 07:50:12 [0.31ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 39759 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 15 - 2025-05-27 07:50:12 [11.73ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 28521 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 16 - 2025-05-27 07:50:12 [0.31ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 28521 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 17 - 2025-05-27 07:50:12 [25.55ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 60671 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 18 - 2025-05-27 07:50:12 [0.33ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 63242 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 19 - 2025-05-27 07:50:12 [26.5ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62303 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 20 - 2025-05-27 07:50:12 [0.36ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64924 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 21 - 2025-05-27 07:50:12 [26.57ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62304 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 22 - 2025-05-27 07:50:12 [0.33ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64925 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 23 - 2025-05-27 07:50:12 [21.28ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 52391 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 24 - 2025-05-27 07:50:12 [0.33ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 52391 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 25 - 2025-05-27 07:50:12 [26.62ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 62302 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 26 - 2025-05-27 07:50:12 [0.34ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64923 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 1 - 2025-05-27 07:50:14 [1.49ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 2 - 2025-05-27 07:50:14 [0.54ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 3 - 2025-05-27 07:50:14 [0.48ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 4 - 2025-05-27 07:50:14 [0.49ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 5 - 2025-05-27 07:50:14 [12.06ms] */
select count(*) as aggregate from `person` where `legacy_dl_customer_id` is not null and `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 6 - 2025-05-27 07:50:14 [15.82ms] */
select * from `person` where `legacy_dl_customer_id` is not null and `person`.`deleted_at` is null order by `updated_at` desc limit 10 offset 90;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 7 - 2025-05-27 07:50:14 [25.2ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61969 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 8 - 2025-05-27 07:50:14 [0.26ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64585 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 9 - 2025-05-27 07:50:14 [25.44ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61959 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 10 - 2025-05-27 07:50:14 [0.2ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64574 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 11 - 2025-05-27 07:50:14 [25.11ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61957 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 12 - 2025-05-27 07:50:14 [0.19ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64572 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 13 - 2025-05-27 07:50:14 [25.29ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61954 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 14 - 2025-05-27 07:50:14 [0.2ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64569 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 15 - 2025-05-27 07:50:14 [24.68ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 60214 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 16 - 2025-05-27 07:50:14 [0.2ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 62781 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 17 - 2025-05-27 07:50:14 [25.44ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61940 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 18 - 2025-05-27 07:50:14 [0.2ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64555 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 19 - 2025-05-27 07:50:14 [25.36ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61920 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 20 - 2025-05-27 07:50:14 [0.19ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64534 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 21 - 2025-05-27 07:50:14 [24.86ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61919 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 22 - 2025-05-27 07:50:14 [0.21ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64533 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 23 - 2025-05-27 07:50:14 [25.09ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61918 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 24 - 2025-05-27 07:50:14 [0.19ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64532 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 25 - 2025-05-27 07:50:15 [26.08ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61917 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.list-party-component
   Query 26 - 2025-05-27 07:50:15 [0.24ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 64531 and `customer_identity_documents`.`party_id` is not null and `customer_identity_documents`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 1 - 2025-05-27 07:50:16 [2.13ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 2 - 2025-05-27 07:50:16 [0.72ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 3 - 2025-05-27 07:50:16 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 4 - 2025-05-27 07:50:16 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 5 - 2025-05-27 07:50:16 [0.3ms] */
select * from `party` where `party`.`id` = 64533 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 6 - 2025-05-27 07:50:16 [0.24ms] */
select * from `person` where `person`.`id` = 61919 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 7 - 2025-05-27 07:50:16 [0.17ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61919 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 8 - 2025-05-27 07:50:16 [0.46ms] */
select * from `address` where `address`.`id` = 64533 and `address`.`id` is not null and `address`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 9 - 2025-05-27 07:50:16 [0.4ms] */
select * from `region` where `region`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 10 - 2025-05-27 07:50:16 [0.15ms] */
select * from `tax_collection_points` where `region_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 11 - 2025-05-27 07:50:16 [0.16ms] */
select * from `district` where `region_id` is null and `district`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 12 - 2025-05-27 07:50:16 [0.15ms] */
select * from `branches` where `district_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 13 - 2025-05-27 07:50:16 [16.58ms] */
select count(*) as aggregate from `party_vehicle` where `party_id` = 64533 and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 14 - 2025-05-27 07:50:16 [3.31ms] */
select count(*) as aggregate from `transaction` where `party_id` = 64533 and `status` = 'INPROGRESS' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 15 - 2025-05-27 07:50:16 [1.5ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` where `party_id` = 64533 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 16 - 2025-05-27 07:50:16 [0.4ms] */
select count(*) as aggregate from `invoice` where `party_id` = 64533 and `outstanding_balance` > 0 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 17 - 2025-05-27 07:50:16 [0.42ms] */
select * from `party` where `party`.`id` = 64533 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 18 - 2025-05-27 07:50:16 [0.33ms] */
select * from `person` where `person`.`id` = 61919 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 19 - 2025-05-27 07:50:16 [2.46ms] */
select * from `activity_log` where `log_name` = 'party' and `subject_id` = 64533 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 20 - 2025-05-27 07:50:16 [3.67ms] */
select * from `activity_log` where `log_name` = 'person' and `subject_id` = 61919 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 21 - 2025-05-27 07:50:16 [0.16ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61919 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 22 - 2025-05-27 07:50:16 [1.09ms] */
select * from `person_bio_photo` where `party_id` = 64533 and `person_bio_photo`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 23 - 2025-05-27 07:50:16 [3.11ms] */
select * from `person_bio_iris` where `party_id` = 64533 and `person_bio_iris`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 24 - 2025-05-27 07:50:16 [0.57ms] */
select * from `users` where `users`.`id` = 119 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 25 - 2025-05-27 07:50:16 [0.16ms] */
select * from `users` where `users`.`id` = 119 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 26 - 2025-05-27 07:50:16 [1.57ms] */
select * from `driver_license` where `party_id` = 64533 and `driver_license`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 27 - 2025-05-27 07:50:16 [0.25ms] */
select * from `party_vehicle` where `party_id` = 64533 and `party_vehicle`.`deleted_at` is null order by `updated_at` desc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 28 - 2025-05-27 07:50:16 [0.24ms] */
select count(*) as aggregate from `invoice` where `invoice`.`invoice_amount` <> 0.00 and `party_id` in (64533) and `status` <> 'CANCELED' and `status` <> 'CANCELED' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 29 - 2025-05-27 07:50:16 [0.27ms] */
select * from `invoice` where `invoice`.`invoice_amount` <> 0.00 and `party_id` in (64533) and `status` <> 'CANCELED' and `status` <> 'CANCELED' and `invoice`.`deleted_at` is null order by `updated_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 30 - 2025-05-27 07:50:16 [0.24ms] */
select * from `transaction` where `transaction`.`id` in (360134) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 31 - 2025-05-27 07:50:16 [0.21ms] */
select * from `vehicle` where `vehicle`.`id` in (null) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 32 - 2025-05-27 07:50:16 [0.55ms] */
select * from `service_workflow` where `service_workflow`.`id` = 12 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 33 - 2025-05-27 07:50:16 [0.38ms] */
select * from `service` where `service`.`id` = 12 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 34 - 2025-05-27 07:50:16 [0.2ms] */
select * from `service` where `service`.`id` in (12) and `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 35 - 2025-05-27 07:50:16 [0.19ms] */
select * from `party` where `party`.`id` in (64533) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 36 - 2025-05-27 07:50:16 [0.21ms] */
select * from `address` where `address`.`id` in (64533) and `address`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 37 - 2025-05-27 07:50:16 [0.14ms] */
select * from `party` where `party`.`id` = 64533 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 38 - 2025-05-27 07:50:16 [0.16ms] */
select * from `person` where `person`.`id` = 61919 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 39 - 2025-05-27 07:50:16 [0.2ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 40 - 2025-05-27 07:50:16 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 41 - 2025-05-27 07:50:16 [0.81ms] */
select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 2 and `model_has_roles`.`model_type` = 'App\Models\User' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 42 - 2025-05-27 07:50:16 [1.63ms] */
select count(*) as aggregate from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` where `transaction`.`party_id` = 64533 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `status` != 'CANCELED' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 43 - 2025-05-27 07:50:16 [0.34ms] */
select `transaction`.* from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` where `transaction`.`party_id` = 64533 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `status` != 'CANCELED' and `transaction`.`deleted_at` is null order by `transaction`.`created_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 44 - 2025-05-27 07:50:16 [0.15ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 45 - 2025-05-27 07:50:16 [0.21ms] */
select * from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 46 - 2025-05-27 07:50:16 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 12 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 47 - 2025-05-27 07:50:16 [0.13ms] */
select * from `service` where `service`.`id` = 12 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 48 - 2025-05-27 07:50:16 [0.18ms] */
select * from `service` where `service`.`id` = 12 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 49 - 2025-05-27 07:50:16 [0.2ms] */
select * from `party` where `party`.`id` = 64533 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 50 - 2025-05-27 07:50:16 [0.15ms] */
select * from `person` where `person`.`id` = 61919 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 51 - 2025-05-27 07:50:16 [0.24ms] */
select * from `district` where `district`.`id` = 21 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 52 - 2025-05-27 07:50:16 [1.19ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 360134 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 53 - 2025-05-27 07:50:16 [0.33ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 50 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 54 - 2025-05-27 07:50:16 [0.18ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 55 - 2025-05-27 07:50:16 [0.47ms] */
select count(*) as aggregate from `discount` where `party_id` = 64533 and `discount`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 56 - 2025-05-27 07:50:16 [0.25ms] */
select * from `customer_identity_types` where `customer_identity_types`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 57 - 2025-05-27 07:50:16 [0.34ms] */
select * from `countries` where `countries`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 58 - 2025-05-27 07:50:16 [0.19ms] */
select count(*) as aggregate from `customer_identity_documents` where `party_id` = 64533 and `customer_identity_documents`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=64533&model=Person
   Query 1 - 2025-05-27 07:50:27 [2.12ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=64533&model=Person
   Query 2 - 2025-05-27 07:50:27 [0.75ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=64533&model=Person
   Query 3 - 2025-05-27 07:50:27 [0.73ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=64533&model=Person
   Query 4 - 2025-05-27 07:50:27 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=64533&model=Person
   Query 5 - 2025-05-27 07:50:27 [0.28ms] */
select * from `party` where `id` = 64533 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=64533&model=Person
   Query 6 - 2025-05-27 07:50:27 [7.95ms] */
SELECT event,auditable_id,auditable_type, old_values, new_values,a.created_at,a.updated_at, ur.first_name,last_name 
            FROM audits a 
            left join users ur on a.user_id = ur.id 
            left join person p on a.auditable_id = p.id 
            where auditable_id = 61919 and a.auditable_type = 'Person' ORDER BY a.id DESC
            ;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 1 - 2025-05-27 07:53:04 [2.37ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 2 - 2025-05-27 07:53:04 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 3 - 2025-05-27 07:53:04 [0.49ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 4 - 2025-05-27 07:53:04 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 5 - 2025-05-27 07:53:04 [0.2ms] */
select * from `party` where `party`.`id` = 64533 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 6 - 2025-05-27 07:53:04 [0.16ms] */
select * from `person` where `person`.`id` = 61919 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 7 - 2025-05-27 07:53:04 [0.2ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61919 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 8 - 2025-05-27 07:53:04 [0.18ms] */
select * from `address` where `address`.`id` = 64533 and `address`.`id` is not null and `address`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 9 - 2025-05-27 07:53:04 [0.15ms] */
select * from `region` where `region`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 10 - 2025-05-27 07:53:04 [0.13ms] */
select * from `tax_collection_points` where `region_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 11 - 2025-05-27 07:53:04 [0.12ms] */
select * from `district` where `region_id` is null and `district`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 12 - 2025-05-27 07:53:04 [0.14ms] */
select * from `branches` where `district_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 13 - 2025-05-27 07:53:04 [0.15ms] */
select count(*) as aggregate from `party_vehicle` where `party_id` = 64533 and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 14 - 2025-05-27 07:53:04 [0.14ms] */
select count(*) as aggregate from `transaction` where `party_id` = 64533 and `status` = 'INPROGRESS' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 15 - 2025-05-27 07:53:04 [0.14ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` where `party_id` = 64533 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 16 - 2025-05-27 07:53:04 [0.12ms] */
select count(*) as aggregate from `invoice` where `party_id` = 64533 and `outstanding_balance` > 0 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 17 - 2025-05-27 07:53:04 [0.15ms] */
select * from `party` where `party`.`id` = 64533 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 18 - 2025-05-27 07:53:04 [0.15ms] */
select * from `person` where `person`.`id` = 61919 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 19 - 2025-05-27 07:53:04 [0.17ms] */
select * from `activity_log` where `log_name` = 'party' and `subject_id` = 64533 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 20 - 2025-05-27 07:53:04 [0.13ms] */
select * from `activity_log` where `log_name` = 'person' and `subject_id` = 61919 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 21 - 2025-05-27 07:53:04 [0.15ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 61919 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 22 - 2025-05-27 07:53:04 [0.17ms] */
select * from `person_bio_photo` where `party_id` = 64533 and `person_bio_photo`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 23 - 2025-05-27 07:53:04 [0.4ms] */
select * from `person_bio_iris` where `party_id` = 64533 and `person_bio_iris`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 24 - 2025-05-27 07:53:04 [0.16ms] */
select * from `users` where `users`.`id` = 119 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 25 - 2025-05-27 07:53:04 [0.15ms] */
select * from `users` where `users`.`id` = 119 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 26 - 2025-05-27 07:53:04 [0.16ms] */
select * from `driver_license` where `party_id` = 64533 and `driver_license`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 27 - 2025-05-27 07:53:04 [0.15ms] */
select * from `party_vehicle` where `party_id` = 64533 and `party_vehicle`.`deleted_at` is null order by `updated_at` desc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 28 - 2025-05-27 07:53:04 [0.15ms] */
select count(*) as aggregate from `invoice` where `invoice`.`invoice_amount` <> 0.00 and `party_id` in (64533) and `status` <> 'CANCELED' and `status` <> 'CANCELED' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 29 - 2025-05-27 07:53:04 [0.17ms] */
select * from `invoice` where `invoice`.`invoice_amount` <> 0.00 and `party_id` in (64533) and `status` <> 'CANCELED' and `status` <> 'CANCELED' and `invoice`.`deleted_at` is null order by `updated_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 30 - 2025-05-27 07:53:04 [0.16ms] */
select * from `transaction` where `transaction`.`id` in (360134) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 31 - 2025-05-27 07:53:04 [0.15ms] */
select * from `vehicle` where `vehicle`.`id` in (null) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 32 - 2025-05-27 07:53:04 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 12 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 33 - 2025-05-27 07:53:04 [0.13ms] */
select * from `service` where `service`.`id` = 12 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 34 - 2025-05-27 07:53:04 [0.13ms] */
select * from `service` where `service`.`id` in (12) and `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 35 - 2025-05-27 07:53:04 [0.15ms] */
select * from `party` where `party`.`id` in (64533) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 36 - 2025-05-27 07:53:04 [0.13ms] */
select * from `address` where `address`.`id` in (64533) and `address`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 37 - 2025-05-27 07:53:04 [0.15ms] */
select * from `party` where `party`.`id` = 64533 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 38 - 2025-05-27 07:53:04 [0.15ms] */
select * from `person` where `person`.`id` = 61919 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 39 - 2025-05-27 07:53:04 [0.14ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 40 - 2025-05-27 07:53:04 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 41 - 2025-05-27 07:53:04 [0.16ms] */
select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 2 and `model_has_roles`.`model_type` = 'App\Models\User' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 42 - 2025-05-27 07:53:04 [0.15ms] */
select count(*) as aggregate from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` where `transaction`.`party_id` = 64533 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `status` != 'CANCELED' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 43 - 2025-05-27 07:53:04 [0.19ms] */
select `transaction`.* from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` where `transaction`.`party_id` = 64533 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `status` != 'CANCELED' and `transaction`.`deleted_at` is null order by `transaction`.`created_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 44 - 2025-05-27 07:53:04 [0.14ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 45 - 2025-05-27 07:53:04 [0.14ms] */
select * from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 46 - 2025-05-27 07:53:04 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 12 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 47 - 2025-05-27 07:53:04 [0.13ms] */
select * from `service` where `service`.`id` = 12 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 48 - 2025-05-27 07:53:04 [0.15ms] */
select * from `service` where `service`.`id` = 12 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 49 - 2025-05-27 07:53:04 [0.14ms] */
select * from `party` where `party`.`id` = 64533 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 50 - 2025-05-27 07:53:04 [0.15ms] */
select * from `person` where `person`.`id` = 61919 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 51 - 2025-05-27 07:53:04 [0.14ms] */
select * from `district` where `district`.`id` = 21 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 52 - 2025-05-27 07:53:04 [0.15ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 360134 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 53 - 2025-05-27 07:53:04 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 50 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 54 - 2025-05-27 07:53:04 [0.13ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 55 - 2025-05-27 07:53:04 [0.14ms] */
select count(*) as aggregate from `discount` where `party_id` = 64533 and `discount`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 56 - 2025-05-27 07:53:04 [0.15ms] */
select * from `customer_identity_types` where `customer_identity_types`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 57 - 2025-05-27 07:53:04 [0.13ms] */
select * from `countries` where `countries`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/64533
   Query 58 - 2025-05-27 07:53:04 [0.13ms] */
select count(*) as aggregate from `customer_identity_documents` where `party_id` = 64533 and `customer_identity_documents`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:04 [2.09ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:04 [0.26ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:04 [0.42ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:04 [11.22ms] */
update `userprofiles` set `login_count` = 2551, `last_login` = '2025-05-27 11:00:04', `userprofiles`.`updated_at` = '2025-05-27 11:00:04' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:04 [0.28ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:04 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:04 [0.67ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:04 [0.33ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:04 [0.26ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:04 [0.36ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:04 [0.31ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:04 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:04 [3.79ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('b56ac2fa4d0a7b9dc36c94456947620891ab642b31905500f10c152aba0b04961d8d72335f9d77ce', 154, 5, '[]', 0, '2025-05-27 11:00:04', '2025-05-27 11:00:04', '2026-05-27 11:00:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:04 [0.33ms] */
select * from `oauth_access_tokens` where `id` = 'b56ac2fa4d0a7b9dc36c94456947620891ab642b31905500f10c152aba0b04961d8d72335f9d77ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:04 [3.29ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'b56ac2fa4d0a7b9dc36c94456947620891ab642b31905500f10c152aba0b04961d8d72335f9d77ce';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:04 [1.48ms] */
select * from `oauth_access_tokens` where `id` = 'b56ac2fa4d0a7b9dc36c94456947620891ab642b31905500f10c152aba0b04961d8d72335f9d77ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b56ac2fa4d0a7b9dc36c94456947620891ab642b31905500f10c152aba0b04961d8d72335f9d77ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:04 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:04 [0.25ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:04 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'b56ac2fa4d0a7b9dc36c94456947620891ab642b31905500f10c152aba0b04961d8d72335f9d77ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:04 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:04 [0.29ms] */
select count(*) as aggregate from `party` where `id` = 33125;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-05-27 11:00:04 [0.29ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'BS724';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-05-27 11:00:04 [1.55ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 33125 and `license_plate` = 'BS724' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:04 [2.16ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:04 [0.31ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:04 [0.47ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:04 [12.33ms] */
update `userprofiles` set `login_count` = 2552, `userprofiles`.`updated_at` = '2025-05-27 11:00:04' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:04 [0.33ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:04 [0.7ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:04 [0.31ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:04 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:04 [0.17ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:04 [0.28ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:04 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:04 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:04 [3.46ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('2c53ace09e47bcd3bd5e550e9a190b34d9982c11783aefb858f7001280740303ba2115ce1a10557f', 154, 5, '[]', 0, '2025-05-27 11:00:04', '2025-05-27 11:00:04', '2026-05-27 11:00:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:04 [0.43ms] */
select * from `oauth_access_tokens` where `id` = '2c53ace09e47bcd3bd5e550e9a190b34d9982c11783aefb858f7001280740303ba2115ce1a10557f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:04 [2.94ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '2c53ace09e47bcd3bd5e550e9a190b34d9982c11783aefb858f7001280740303ba2115ce1a10557f';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:05 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '2c53ace09e47bcd3bd5e550e9a190b34d9982c11783aefb858f7001280740303ba2115ce1a10557f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:05 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '2c53ace09e47bcd3bd5e550e9a190b34d9982c11783aefb858f7001280740303ba2115ce1a10557f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:05 [0.16ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:05 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '2c53ace09e47bcd3bd5e550e9a190b34d9982c11783aefb858f7001280740303ba2115ce1a10557f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:05 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:05 [0.25ms] */
select count(*) as aggregate from `party` where `id` = 64940;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-05-27 11:00:05 [0.23ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = '5656SXYVCYHC';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-05-27 11:00:05 [0.86ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 64940 and `license_plate` = '5656SXYVCYHC' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:05 [1.97ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:05 [0.16ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:05 [0.43ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:05 [10.62ms] */
update `userprofiles` set `login_count` = 2553, `last_login` = '2025-05-27 11:00:05', `userprofiles`.`updated_at` = '2025-05-27 11:00:05' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:05 [0.3ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:05 [0.69ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:05 [0.31ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:05 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:05 [0.11ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:05 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:05 [7.14ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('85a5e00d6e4fbedf3b3152f13a6f9006ce1d1cba36ec0e8ed3c03e1ede1ba7c0d69da31fcb53a2bb', 154, 5, '[]', 0, '2025-05-27 11:00:05', '2025-05-27 11:00:05', '2026-05-27 11:00:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:05 [0.39ms] */
select * from `oauth_access_tokens` where `id` = '85a5e00d6e4fbedf3b3152f13a6f9006ce1d1cba36ec0e8ed3c03e1ede1ba7c0d69da31fcb53a2bb' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:05 [11.4ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '85a5e00d6e4fbedf3b3152f13a6f9006ce1d1cba36ec0e8ed3c03e1ede1ba7c0d69da31fcb53a2bb';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:06 [2.31ms] */
select * from `oauth_access_tokens` where `id` = '85a5e00d6e4fbedf3b3152f13a6f9006ce1d1cba36ec0e8ed3c03e1ede1ba7c0d69da31fcb53a2bb' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:06 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '85a5e00d6e4fbedf3b3152f13a6f9006ce1d1cba36ec0e8ed3c03e1ede1ba7c0d69da31fcb53a2bb' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:06 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:06 [0.29ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:06 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '85a5e00d6e4fbedf3b3152f13a6f9006ce1d1cba36ec0e8ed3c03e1ede1ba7c0d69da31fcb53a2bb' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:06 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:06 [0.33ms] */
select count(*) as aggregate from `party` where `id` = 64946;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-05-27 11:00:06 [0.24ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'LIC003';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-05-27 11:00:06 [0.79ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 64946 and `license_plate` = 'LIC003' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:06 [1.32ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:06 [0.17ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:06 [0.39ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:06 [8.25ms] */
update `userprofiles` set `login_count` = 2554, `last_login` = '2025-05-27 11:00:06', `userprofiles`.`updated_at` = '2025-05-27 11:00:06' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:06 [0.3ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:06 [0.68ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:06 [0.17ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:06 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:06 [0.11ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:06 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:06 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:06 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:06 [3.08ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('5e1774598de934d25f5fdfcecf92e6066e12e98e781e65651da3e78239e0b4eab0602cf6d986f846', 154, 5, '[]', 0, '2025-05-27 11:00:06', '2025-05-27 11:00:06', '2026-05-27 11:00:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:06 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '5e1774598de934d25f5fdfcecf92e6066e12e98e781e65651da3e78239e0b4eab0602cf6d986f846' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:06 [2.87ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '5e1774598de934d25f5fdfcecf92e6066e12e98e781e65651da3e78239e0b4eab0602cf6d986f846';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:07 [2.56ms] */
select * from `oauth_access_tokens` where `id` = '5e1774598de934d25f5fdfcecf92e6066e12e98e781e65651da3e78239e0b4eab0602cf6d986f846' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:07 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '5e1774598de934d25f5fdfcecf92e6066e12e98e781e65651da3e78239e0b4eab0602cf6d986f846' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:07 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:07 [0.16ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:07 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '5e1774598de934d25f5fdfcecf92e6066e12e98e781e65651da3e78239e0b4eab0602cf6d986f846' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:07 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:07 [0.29ms] */
select count(*) as aggregate from `party` where `id` = 64946;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-05-27 11:00:07 [0.27ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'LIC002';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-05-27 11:00:07 [0.82ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 64946 and `license_plate` = 'LIC002' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:08 [1.39ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:08 [0.17ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:08 [0.38ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:08 [5.8ms] */
update `userprofiles` set `login_count` = 2555, `last_login` = '2025-05-27 11:00:08', `userprofiles`.`updated_at` = '2025-05-27 11:00:08' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:08 [0.16ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:08 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:08 [0.24ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:08 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:08 [0.18ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:08 [0.15ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:08 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:08 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:08 [3.22ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4186fd68fc00e9168c0c81f3038a51ff41ba822a640225c13eaf664b06afc4ac53dd6270664a52ab', 154, 5, '[]', 0, '2025-05-27 11:00:08', '2025-05-27 11:00:08', '2026-05-27 11:00:08');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:08 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '4186fd68fc00e9168c0c81f3038a51ff41ba822a640225c13eaf664b06afc4ac53dd6270664a52ab' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:08 [2.9ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4186fd68fc00e9168c0c81f3038a51ff41ba822a640225c13eaf664b06afc4ac53dd6270664a52ab';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:08 [2.05ms] */
select * from `oauth_access_tokens` where `id` = '4186fd68fc00e9168c0c81f3038a51ff41ba822a640225c13eaf664b06afc4ac53dd6270664a52ab' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:08 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4186fd68fc00e9168c0c81f3038a51ff41ba822a640225c13eaf664b06afc4ac53dd6270664a52ab' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:08 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:08 [0.16ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:08 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4186fd68fc00e9168c0c81f3038a51ff41ba822a640225c13eaf664b06afc4ac53dd6270664a52ab' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:08 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:08 [0.37ms] */
select count(*) as aggregate from `party` where `id` = 639;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-05-27 11:00:08 [0.45ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'RTA009';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-05-27 11:00:08 [1.49ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 639 and `license_plate` = 'RTA009' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:09 [1.43ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:09 [0.18ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:09 [0.44ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:09 [10.55ms] */
update `userprofiles` set `login_count` = 2556, `last_login` = '2025-05-27 11:00:09', `userprofiles`.`updated_at` = '2025-05-27 11:00:09' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:09 [0.33ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:09 [0.72ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:09 [0.17ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:09 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:09 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:09 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:09 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:09 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:09 [3.06ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('749bad5ddd34213dbffe1ad1932af618b3b8cf04b78e73f0bc7d598258fa979c79469ce48b243d64', 154, 5, '[]', 0, '2025-05-27 11:00:09', '2025-05-27 11:00:09', '2026-05-27 11:00:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:09 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '749bad5ddd34213dbffe1ad1932af618b3b8cf04b78e73f0bc7d598258fa979c79469ce48b243d64' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:09 [2.76ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '749bad5ddd34213dbffe1ad1932af618b3b8cf04b78e73f0bc7d598258fa979c79469ce48b243d64';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:09 [2.18ms] */
select * from `oauth_access_tokens` where `id` = '749bad5ddd34213dbffe1ad1932af618b3b8cf04b78e73f0bc7d598258fa979c79469ce48b243d64' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:09 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '749bad5ddd34213dbffe1ad1932af618b3b8cf04b78e73f0bc7d598258fa979c79469ce48b243d64' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:09 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:09 [0.27ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:09 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '749bad5ddd34213dbffe1ad1932af618b3b8cf04b78e73f0bc7d598258fa979c79469ce48b243d64' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:09 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:09 [0.22ms] */
select count(*) as aggregate from `party` where `id` = 64946;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-05-27 11:00:09 [0.37ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'LIC005';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:09 [2.18ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:10 [0.19ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:10 [0.34ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:10 [2.69ms] */
update `userprofiles` set `login_count` = 2557, `last_login` = '2025-05-27 11:00:10', `userprofiles`.`updated_at` = '2025-05-27 11:00:10' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:10 [0.16ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:10 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:10 [0.16ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:10 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:10 [0.11ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:10 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:10 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:10 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:10 [4.73ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('5ab5545c36ddad32716b9d5d07aa92e3710d406313e9d3c16ee80e3c25f33488aa81c1532582c969', 154, 5, '[]', 0, '2025-05-27 11:00:10', '2025-05-27 11:00:10', '2026-05-27 11:00:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:10 [0.35ms] */
select * from `oauth_access_tokens` where `id` = '5ab5545c36ddad32716b9d5d07aa92e3710d406313e9d3c16ee80e3c25f33488aa81c1532582c969' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:10 [10.14ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '5ab5545c36ddad32716b9d5d07aa92e3710d406313e9d3c16ee80e3c25f33488aa81c1532582c969';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:10 [1.53ms] */
select * from `oauth_access_tokens` where `id` = '5ab5545c36ddad32716b9d5d07aa92e3710d406313e9d3c16ee80e3c25f33488aa81c1532582c969' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:10 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '5ab5545c36ddad32716b9d5d07aa92e3710d406313e9d3c16ee80e3c25f33488aa81c1532582c969' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:10 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:10 [0.16ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:10 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '5ab5545c36ddad32716b9d5d07aa92e3710d406313e9d3c16ee80e3c25f33488aa81c1532582c969' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:10 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:10 [0.26ms] */
select count(*) as aggregate from `party` where `id` = 36578;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-05-27 11:00:10 [0.24ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'AA584';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-05-27 11:00:10 [1ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 36578 and `license_plate` = 'AA584' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:11 [1.43ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:11 [10.98ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:11 [0.63ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:11 [3.06ms] */
update `userprofiles` set `login_count` = 2558, `last_login` = '2025-05-27 11:00:11', `userprofiles`.`updated_at` = '2025-05-27 11:00:11' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:11 [0.28ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:11 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:11 [0.28ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:11 [0.15ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:11 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:11 [0.15ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:11 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:11 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:11 [4.18ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('1a3c2b07a243253d9daae891136e1cbfd7dbc403aff3a96d2a31f5286a9b624db036317f9b5adefd', 154, 5, '[]', 0, '2025-05-27 11:00:11', '2025-05-27 11:00:11', '2026-05-27 11:00:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:11 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '1a3c2b07a243253d9daae891136e1cbfd7dbc403aff3a96d2a31f5286a9b624db036317f9b5adefd' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:11 [2.88ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '1a3c2b07a243253d9daae891136e1cbfd7dbc403aff3a96d2a31f5286a9b624db036317f9b5adefd';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:11 [1.59ms] */
select * from `oauth_access_tokens` where `id` = '1a3c2b07a243253d9daae891136e1cbfd7dbc403aff3a96d2a31f5286a9b624db036317f9b5adefd' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:11 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '1a3c2b07a243253d9daae891136e1cbfd7dbc403aff3a96d2a31f5286a9b624db036317f9b5adefd' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:11 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:11 [0.18ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:11 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '1a3c2b07a243253d9daae891136e1cbfd7dbc403aff3a96d2a31f5286a9b624db036317f9b5adefd' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:11 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:11 [0.15ms] */
select count(*) as aggregate from `party` where `id` = 64946;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-05-27 11:00:11 [0.36ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'LIC1253RTA001';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-05-27 11:00:11 [0.78ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 64946 and `license_plate` = 'LIC1253RTA001' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:12 [1.52ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:12 [0.29ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:12 [0.42ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:12 [5.64ms] */
update `userprofiles` set `login_count` = 2559, `last_login` = '2025-05-27 11:00:12', `userprofiles`.`updated_at` = '2025-05-27 11:00:12' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:12 [0.26ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:12 [0.62ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:12 [0.27ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:12 [0.17ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:12 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:12 [0.15ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:12 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:12 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:12 [3.04ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('8bdd39faf28df39920ba8a10f468ff7e1718d7cab8f85efe361e3b02c531e3c84b76dc37eebbe9e7', 154, 5, '[]', 0, '2025-05-27 11:00:12', '2025-05-27 11:00:12', '2026-05-27 11:00:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:12 [0.32ms] */
select * from `oauth_access_tokens` where `id` = '8bdd39faf28df39920ba8a10f468ff7e1718d7cab8f85efe361e3b02c531e3c84b76dc37eebbe9e7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:12 [2.81ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '8bdd39faf28df39920ba8a10f468ff7e1718d7cab8f85efe361e3b02c531e3c84b76dc37eebbe9e7';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:12 [1.66ms] */
select * from `oauth_access_tokens` where `id` = '8bdd39faf28df39920ba8a10f468ff7e1718d7cab8f85efe361e3b02c531e3c84b76dc37eebbe9e7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:12 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '8bdd39faf28df39920ba8a10f468ff7e1718d7cab8f85efe361e3b02c531e3c84b76dc37eebbe9e7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:12 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:12 [0.2ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:12 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '8bdd39faf28df39920ba8a10f468ff7e1718d7cab8f85efe361e3b02c531e3c84b76dc37eebbe9e7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:12 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:12 [0.46ms] */
select count(*) as aggregate from `party` where `id` = 54700;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-05-27 11:00:12 [0.31ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'YP073';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-05-27 11:00:12 [1.62ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 54700 and `license_plate` = 'YP073' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:13 [1.47ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:13 [0.34ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:13 [0.47ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:13 [5.59ms] */
update `userprofiles` set `login_count` = 2560, `last_login` = '2025-05-27 11:00:13', `userprofiles`.`updated_at` = '2025-05-27 11:00:13' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:13 [0.29ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:13 [0.63ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:13 [0.28ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:13 [0.15ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:13 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:13 [0.15ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:13 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:13 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:13 [2.86ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('8775f886efb3f7447a55e4e77c8f59355dbbd5cd84786801f8b0260acac07fb3c9a8f2d0a3974e13', 154, 5, '[]', 0, '2025-05-27 11:00:13', '2025-05-27 11:00:13', '2026-05-27 11:00:13');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:13 [0.35ms] */
select * from `oauth_access_tokens` where `id` = '8775f886efb3f7447a55e4e77c8f59355dbbd5cd84786801f8b0260acac07fb3c9a8f2d0a3974e13' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:13 [2.64ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '8775f886efb3f7447a55e4e77c8f59355dbbd5cd84786801f8b0260acac07fb3c9a8f2d0a3974e13';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:13 [1.6ms] */
select * from `oauth_access_tokens` where `id` = '8775f886efb3f7447a55e4e77c8f59355dbbd5cd84786801f8b0260acac07fb3c9a8f2d0a3974e13' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:13 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '8775f886efb3f7447a55e4e77c8f59355dbbd5cd84786801f8b0260acac07fb3c9a8f2d0a3974e13' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:13 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:13 [0.21ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:13 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '8775f886efb3f7447a55e4e77c8f59355dbbd5cd84786801f8b0260acac07fb3c9a8f2d0a3974e13' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:13 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:13 [0.3ms] */
select count(*) as aggregate from `party` where `id` = 99460;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-05-27 11:00:13 [1.54ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-05-27 11:00:13 [0.32ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-05-27 11:00:13 [0.66ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-05-27 11:00:13 [5.71ms] */
update `userprofiles` set `login_count` = 2561, `userprofiles`.`updated_at` = '2025-05-27 11:00:13' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-05-27 11:00:13 [0.25ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-05-27 11:00:13 [0.58ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-05-27 11:00:13 [0.25ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-05-27 11:00:13 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-05-27 11:00:13 [0.17ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-05-27 11:00:13 [0.16ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-05-27 11:00:13 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-05-27 11:00:13 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-05-27 11:00:13 [4.45ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('fe5d8a60d6e6346c108e908212101cb6dc5ef0e639ece5c71a05b1778a780847d876892661853a67', 154, 5, '[]', 0, '2025-05-27 11:00:13', '2025-05-27 11:00:13', '2026-05-27 11:00:13');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-05-27 11:00:13 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'fe5d8a60d6e6346c108e908212101cb6dc5ef0e639ece5c71a05b1778a780847d876892661853a67' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-05-27 11:00:13 [2.68ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'fe5d8a60d6e6346c108e908212101cb6dc5ef0e639ece5c71a05b1778a780847d876892661853a67';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-05-27 11:00:13 [1.65ms] */
select * from `oauth_access_tokens` where `id` = 'fe5d8a60d6e6346c108e908212101cb6dc5ef0e639ece5c71a05b1778a780847d876892661853a67' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-05-27 11:00:13 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'fe5d8a60d6e6346c108e908212101cb6dc5ef0e639ece5c71a05b1778a780847d876892661853a67' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-05-27 11:00:13 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-05-27 11:00:13 [0.2ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-05-27 11:00:13 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'fe5d8a60d6e6346c108e908212101cb6dc5ef0e639ece5c71a05b1778a780847d876892661853a67' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-05-27 11:00:13 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-05-27 11:00:13 [0.4ms] */
select count(*) as aggregate from `party` where `id` = 59307;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-05-27 11:00:13 [0.27ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'IF124';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-05-27 11:00:13 [1.16ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 59307 and `license_plate` = 'IF124' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 1 - 2025-05-27 15:06:56 [2.11ms] */
select * from `users` where `email` = 'teller@user.com' and `status` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
