select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 91 - 2025-04-18 07:58:58 [0.13ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 92 - 2025-04-18 07:58:58 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 24 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 93 - 2025-04-18 07:58:58 [0.84ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 83843 and `term`.`first_date_of_quarter` <= '2025-04-18 07:58:58' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 94 - 2025-04-18 07:58:58 [0.15ms] */
select * from `term` where `term`.`id` = 104 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 95 - 2025-04-18 07:58:58 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 87438 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 96 - 2025-04-18 07:58:58 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 87438 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 97 - 2025-04-18 07:58:58 [0.15ms] */
select * from `party` where `party`.`id` = 54700 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 98 - 2025-04-18 07:58:58 [0.15ms] */
select * from `person` where `person`.`id` = 54700 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 99 - 2025-04-18 07:58:58 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 100 - 2025-04-18 07:58:58 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 101 - 2025-04-18 07:58:58 [0.13ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 102 - 2025-04-18 07:58:58 [0.13ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 103 - 2025-04-18 07:58:58 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 28 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 104 - 2025-04-18 07:58:58 [0.81ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 87438 and `term`.`first_date_of_quarter` <= '2025-04-18 07:58:58' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 105 - 2025-04-18 07:58:58 [0.19ms] */
select * from `term` where `term`.`id` = 104 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 106 - 2025-04-18 07:58:58 [0.18ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 87203 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 107 - 2025-04-18 07:58:58 [0.18ms] */
select * from `party_vehicle` where `vehicle_id` = 87203 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 108 - 2025-04-18 07:58:58 [0.18ms] */
select * from `party` where `party`.`id` = 54499 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 109 - 2025-04-18 07:58:58 [0.19ms] */
select * from `person` where `person`.`id` = 54499 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 110 - 2025-04-18 07:58:58 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 111 - 2025-04-18 07:58:58 [0.18ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 112 - 2025-04-18 07:58:58 [0.16ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 113 - 2025-04-18 07:58:58 [0.17ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 114 - 2025-04-18 07:58:58 [0.15ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 24 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 115 - 2025-04-18 07:58:58 [0.77ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 87203 and `term`.`first_date_of_quarter` <= '2025-04-18 07:58:58' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 116 - 2025-04-18 07:58:58 [0.18ms] */
select * from `term` where `term`.`id` = 104 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 117 - 2025-04-18 07:58:58 [0.22ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/tax/list?page=5
   Query 118 - 2025-04-18 07:58:58 [0.16ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/exit-impersonate
   Query 1 - 2025-04-18 07:59:01 [1.99ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/exit-impersonate
   Query 2 - 2025-04-18 07:59:01 [0.8ms] */
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/exit-impersonate
   Query 3 - 2025-04-18 07:59:01 [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/exit-impersonate
   Query 4 - 2025-04-18 07:59:01 [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/exit-impersonate
   Query 5 - 2025-04-18 07:59:01 [0.18ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-04-18 07:59:01 [2.39ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-04-18 07:59:01 [0.73ms] */
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-04-18 07:59:01 [0.59ms] */
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-04-18 07:59:01 [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-04-18 07:59:01 [0.17ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-04-18 07:59:01 [0.13ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-04-18' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-04-18 07:59:01 [0.12ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-04-18 07:59:01 [0.12ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-04-18' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-04-18 07:59:01 [64.35ms] */
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-04-17' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-04-18 07:59:01 [43.65ms] */
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-04-17' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-04-18 07:59:02 [266.37ms] */
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-04-18' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-04-18 07:59:03 [1021.89ms] */
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-04-18' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/admin/log-viewer/logs/2025-04-18/download
   Query 1 - 2025-04-18 07:59:19 [1.33ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/admin/log-viewer/logs/2025-04-18/download
   Query 2 - 2025-04-18 07:59:19 [0.44ms] */
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/admin/log-viewer/logs/2025-04-18/download
   Query 3 - 2025-04-18 07:59:19 [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/admin/log-viewer/logs/2025-04-18/download
   Query 4 - 2025-04-18 07:59:19 [0.39ms] */
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/api/login
   Query 1 - 2025-04-18 08:00:32 [2.29ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 08:00:32 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 08:00:32 [0.32ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 08:00:32 [11.53ms] */
update `userprofiles` set `login_count` = 658, `last_login` = '2025-04-18 08:00:32', `userprofiles`.`updated_at` = '2025-04-18 08:00:32' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 08:00:32 [0.26ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 08:00:32 [0.57ms] */
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-04-18 08:00:32 [0.23ms] */
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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 08:00:32 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 08:00:32 [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-04-18 08:00:32 [0.23ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 08:00:32 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 08:00:32 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 08:00:32 [3.35ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('d1f41f92d001ee586c2f96017ce5bfcb8b7e0d29c9482cd8173a5463e97dc3e6a8ad2b00f374b0b8', 1, 5, '[]', 0, '2025-04-18 08:00:32', '2025-04-18 08:00:32', '2026-04-18 08:00:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 08:00:32 [0.38ms] */
select * from `oauth_access_tokens` where `id` = 'd1f41f92d001ee586c2f96017ce5bfcb8b7e0d29c9482cd8173a5463e97dc3e6a8ad2b00f374b0b8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 08:00:32 [3.12ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'd1f41f92d001ee586c2f96017ce5bfcb8b7e0d29c9482cd8173a5463e97dc3e6a8ad2b00f374b0b8';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 08:00:32 [1.66ms] */
select * from `oauth_access_tokens` where `id` = 'd1f41f92d001ee586c2f96017ce5bfcb8b7e0d29c9482cd8173a5463e97dc3e6a8ad2b00f374b0b8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 08:00:32 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'd1f41f92d001ee586c2f96017ce5bfcb8b7e0d29c9482cd8173a5463e97dc3e6a8ad2b00f374b0b8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 08:00:32 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 08:00:32 [0.24ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 08:00:32 [0.21ms] */
select * from `oauth_access_tokens` where `id` = 'd1f41f92d001ee586c2f96017ce5bfcb8b7e0d29c9482cd8173a5463e97dc3e6a8ad2b00f374b0b8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 08:00:32 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 08:00:32 [0.21ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'AS647';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 08:00:32 [0.47ms] */
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 `license_plate` = 'AS647' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 08:00:32 [1.88ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 08:00:32 [0.62ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 08:00:32 [0.55ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 08:00:32 [3.97ms] */
update `userprofiles` set `login_count` = 659, `userprofiles`.`updated_at` = '2025-04-18 08:00:32' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 08:00:32 [0.32ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 08:00:32 [0.6ms] */
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-04-18 08:00:32 [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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 08:00:32 [0.25ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 08:00:32 [0.24ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-18 08:00:32 [0.26ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 08:00:32 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 08:00:32 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 08:00:32 [3.41ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('2ee918025cc9227a6dd6fb76cdb5cea567cfecd264d63c0ecf7e2d537192aaaaae70d756a08206fa', 1, 5, '[]', 0, '2025-04-18 08:00:32', '2025-04-18 08:00:32', '2026-04-18 08:00:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 08:00:32 [0.53ms] */
select * from `oauth_access_tokens` where `id` = '2ee918025cc9227a6dd6fb76cdb5cea567cfecd264d63c0ecf7e2d537192aaaaae70d756a08206fa' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 08:00:32 [3.32ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '2ee918025cc9227a6dd6fb76cdb5cea567cfecd264d63c0ecf7e2d537192aaaaae70d756a08206fa';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 1 - 2025-04-18 08:00:32 [2.2ms] */
select * from `oauth_access_tokens` where `id` = '2ee918025cc9227a6dd6fb76cdb5cea567cfecd264d63c0ecf7e2d537192aaaaae70d756a08206fa' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 2 - 2025-04-18 08:00:32 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '2ee918025cc9227a6dd6fb76cdb5cea567cfecd264d63c0ecf7e2d537192aaaaae70d756a08206fa' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 3 - 2025-04-18 08:00:32 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 4 - 2025-04-18 08:00:32 [0.34ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 5 - 2025-04-18 08:00:32 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '2ee918025cc9227a6dd6fb76cdb5cea567cfecd264d63c0ecf7e2d537192aaaaae70d756a08206fa' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 6 - 2025-04-18 08:00:32 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 7 - 2025-04-18 08:00:32 [47.35ms] */
select count(*) as aggregate from `payment` where `external_payment_reference_no` = 'SIN-3454354';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 8 - 2025-04-18 08:00:32 [0.51ms] */
select * from `payment_method` where `name` = 'SomBank' and `payment_method`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 9 - 2025-04-18 08:00:32 [0.28ms] */
select * from `invoice` where `id` in (435906,  435907,  532917,  532920) and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 10 - 2025-04-18 08:00:32 [6.26ms] */
insert into `Payment` (`payment_amount`, `payment_date`, `external_payment_reference_no`, `payment_method_id`, `paid_by`, `paid_by_mobile`, `payment_collected_by`, `district_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (190.0, '2025-04-18 08:00:32', 'SIN-3454354', 6, 'tedt', 1111111, 1, 1, 1, 1, '2025-04-18 08:00:32', '2025-04-18 08:00:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 11 - 2025-04-18 08:00:32 [0.33ms] */
select * from `Payment` where `id` = 177860 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 12 - 2025-04-18 08:00:32 [4.05ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":6,"payment_amount":"190.00","payment_date":"2025-04-18 08:00:32","external_payment_reference_no":"SIN-3454354","payment_receipt_number":null,"siinpay_payref_number":null,"paid_by":"tedt","paid_by_mobile":"1111111","district_id":1,"migration_id":null,"payment_collected_by":1}}', 1, 'App\Models\User', 177860, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-18 08:00:32', '2025-04-18 08:00:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 13 - 2025-04-18 08:00:32 [0.38ms] */
select * from `invoice` where `id` = 549944 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 14 - 2025-04-18 08:00:32 [3.39ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-18 08:00:32', 549944, 177860, '2025-04-18 08:00:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 15 - 2025-04-18 08:00:32 [0.47ms] */
select * from `invoice` where `invoice`.`id` = 549944 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 16 - 2025-04-18 08:00:32 [0.58ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 549944 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 17 - 2025-04-18 08:00:32 [3.53ms] */
update `invoice` set `outstanding_balance` = 31, `status` = 'PARTIAL_PAID', `updated_by` = 1, `invoice`.`updated_at` = '2025-04-18 08:00:32' where `id` = 549944;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 18 - 2025-04-18 08:00:32 [0.2ms] */
select * from `invoice` where `id` = 549944 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 19 - 2025-04-18 08:00:32 [6.33ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"31.00","status":"PARTIAL_PAID"},"old":{"outstanding_balance":"221.00","status":"OPEN"}}', 1, 'App\Models\User', 549944, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 08:00:32', '2025-04-18 08:00:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 20 - 2025-04-18 08:00:32 [2.81ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-18 08:00:32', 435906, 177860, '2025-04-18 08:00:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 21 - 2025-04-18 08:00:32 [0.41ms] */
select * from `invoice` where `invoice`.`id` = 435906 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 22 - 2025-04-18 08:00:32 [0.62ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 435906 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 23 - 2025-04-18 08:00:32 [1.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 435906 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 24 - 2025-04-18 08:00:32 [3.06ms] */
update `invoice` set `invoice_amount` = 64, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 64, `status` = 'PAID', `updated_by` = 1, `invoice`.`updated_at` = '2025-04-18 08:00:32' where `id` = 435906;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 25 - 2025-04-18 08:00:32 [0.2ms] */
select * from `invoice` where `id` = 435906 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 26 - 2025-04-18 08:00:32 [3.13ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"64.00","status":"OPEN"}}', 1, 'App\Models\User', 435906, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 08:00:32', '2025-04-18 08:00:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 27 - 2025-04-18 08:00:33 [398.11ms] */
select * from `transaction` where `invoice_id` = 435906 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 28 - 2025-04-18 08:00:33 [7.36ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-18 08:00:33' where `id` = 360300 and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 29 - 2025-04-18 08:00:33 [0.23ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 30 - 2025-04-18 08:00:33 [0.55ms] */
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/make_payments
   Query 31 - 2025-04-18 08:00:33 [0.19ms] */
select * from `roles` where `roles`.`id` = 7 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 32 - 2025-04-18 08:00:33 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 458388 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 33 - 2025-04-18 08:00:33 [0.33ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 34 - 2025-04-18 08:00:33 [0.35ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 35 - 2025-04-18 08:00:33 [0.32ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 36 - 2025-04-18 08:00:33 [0.37ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (458388, 'APPROVED', '2025-04-18 08:00:33', 7, 1, null, 1, 1, '2025-04-18 08:00:33', '2025-04-18 08:00:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 37 - 2025-04-18 08:00:33 [0.23ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 38 - 2025-04-18 08:00:33 [0.3ms] */
update `transaction` set `current_workflow_state_id` = 8, `updated_by` = 1, `transaction`.`updated_at` = '2025-04-18 08:00:33' where `id` = 458388;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 39 - 2025-04-18 08:00:33 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 40 - 2025-04-18 08:00:33 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 435906 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 41 - 2025-04-18 08:00:33 [0.21ms] */
select * from `vehicle_tax` where `transaction_id` = 458388 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 42 - 2025-04-18 08:00:33 [0.16ms] */
update `vehicle_tax` set `updated_by` = 1, `vehicle_tax`.`updated_at` = '2025-04-18 08:00:33' where `id` = 360300;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 43 - 2025-04-18 08:00:33 [0.15ms] */
select * from `vehicle_tax` where `id` = 360300 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 44 - 2025-04-18 08:00:33 [0.27ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":[],"old":[]}', 1, 'App\Models\User', 360300, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 08:00:33', '2025-04-18 08:00:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 45 - 2025-04-18 08:00:33 [0.56ms] */
select * from `transaction` where `transaction`.`id` = 574276 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 46 - 2025-04-18 08:00:33 [0.27ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 47 - 2025-04-18 08:00:33 [0.26ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 48 - 2025-04-18 08:00:33 [0.25ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 49 - 2025-04-18 08:00:33 [0.4ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (574276, 'APPROVED', '2025-04-18 08:00:33', 7, 1, null, 1, 1, '2025-04-18 08:00:33', '2025-04-18 08:00:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 50 - 2025-04-18 08:00:33 [0.25ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 51 - 2025-04-18 08:00:33 [0.46ms] */
update `transaction` set `current_workflow_state_id` = 8, `updated_by` = 1, `transaction`.`updated_at` = '2025-04-18 08:00:33' where `id` = 574276;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 52 - 2025-04-18 08:00:33 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 53 - 2025-04-18 08:00:33 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 549944 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 54 - 2025-04-18 08:00:33 [0.38ms] */
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/api/make_payments
   Query 55 - 2025-04-18 08:00:33 [0.38ms] */
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/api/make_payments
   Query 56 - 2025-04-18 08:00:33 [0.19ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payments
   Query 57 - 2025-04-18 08:00:33 [0.14ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 1 - 2025-04-18 08:00:35 [2.15ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 2 - 2025-04-18 08:00:35 [0.85ms] */
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/service.update-vehicle-component
   Query 3 - 2025-04-18 08:00:35 [0.7ms] */
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/service.update-vehicle-component
   Query 4 - 2025-04-18 08:00:35 [0.39ms] */
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/service.update-vehicle-component
   Query 5 - 2025-04-18 08:00:35 [0.21ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 6 - 2025-04-18 08:00:35 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` in (1, 2, 3, 4);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 7 - 2025-04-18 08:00:35 [0.16ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 8 - 2025-04-18 08:00:35 [8.11ms] */
update `vehicle` set `track_classification` = 2, `updated_by` = 5, `vehicle`.`updated_at` = '2025-04-18 08:00:35' where `id` = 50215;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 9 - 2025-04-18 08:00:35 [0.38ms] */
select * from `vehicle` where `id` = 50215 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 10 - 2025-04-18 08:00:35 [3.35ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 50215, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-18 08:00:35', '2025-04-18 08:00:35');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 11 - 2025-04-18 08:00:35 [3.23ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"track_classification":null,"updated_by":18}', '{"track_classification":"2","updated_by":5}', 'updated', 50215, 'Modules\Vehicle\Entities\Vehicle', 5, 'App\Models\User', null, '49.47.219.130', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component', '2025-04-18 08:00:35', '2025-04-18 08:00:35');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 12 - 2025-04-18 08:00:35 [0.41ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 13 - 2025-04-18 08:00:35 [1.75ms] */
select * from `transaction` where `vehicle_id` = 50215 and `service_id` = 8 and `status` not in ('END', 'CANCELED') and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 14 - 2025-04-18 08:00:35 [0.24ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 15 - 2025-04-18 08:00:35 [0.45ms] */
select * from `party_vehicle` where `vehicle_id` = 50215 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 16 - 2025-04-18 08:00:35 [1.08ms] */
select * from `activity_log` where `log_name` = 'vehicle' and `subject_id` = 50215 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 17 - 2025-04-18 08:00:35 [1.06ms] */
select * from `activity_log` where `log_name` = 'party_vehicle' and `subject_id` = 16 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 18 - 2025-04-18 08:00:35 [0.21ms] */
select * from `classification_type` where `classification_type`.`id` = 1 and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 19 - 2025-04-18 08:00:35 [0.21ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 20 - 2025-04-18 08:00:35 [0.21ms] */
select * from `party_vehicle` where `vehicle_id` = 50215 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 21 - 2025-04-18 08:00:35 [0.19ms] */
select * from `activity_log` where `log_name` = 'vehicle' and `subject_id` = 50215 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 22 - 2025-04-18 08:00:35 [0.19ms] */
select * from `activity_log` where `log_name` = 'party_vehicle' and `subject_id` = 16 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 23 - 2025-04-18 08:00:35 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` = 1 and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 24 - 2025-04-18 08:00:35 [0.21ms] */
select * from `model` where `model`.`id` = 1335 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 25 - 2025-04-18 08:00:35 [0.23ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 26 - 2025-04-18 08:00:35 [0.2ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 15 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 27 - 2025-04-18 08:00:35 [0.2ms] */
select * from `sub_category` where `sub_category`.`id` = 8 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 28 - 2025-04-18 08:00:35 [0.2ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 50 and `vehicle_color`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 29 - 2025-04-18 08:00:35 [0.2ms] */
select * from `fuel_type` where `fuel_type`.`id` = 2 and `fuel_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 30 - 2025-04-18 08:00:35 [0.31ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 31 - 2025-04-18 08:00:35 [0.41ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` = 50215 and `party_vehicle`.`vehicle_id` is not null and `party_vehicle`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 32 - 2025-04-18 08:00:35 [0.19ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 1 - 2025-04-18 08:00:36 [2.04ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 2 - 2025-04-18 08:00:36 [0.8ms] */
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/vehicle.vehicle-history-component
   Query 3 - 2025-04-18 08:00:36 [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/vehicle.vehicle-history-component
   Query 4 - 2025-04-18 08:00:36 [0.39ms] */
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/vehicle.vehicle-history-component
   Query 5 - 2025-04-18 08:00:36 [0.38ms] */
select * from `classification_type` where `classification_type`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 6 - 2025-04-18 08:00:36 [0.29ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 16 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 7 - 2025-04-18 08:00:36 [0.17ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 8 - 2025-04-18 08:00:36 [0.14ms] */
select * from `party_vehicle` where `vehicle_id` = 50215 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 9 - 2025-04-18 08:00:36 [0.15ms] */
select * from `activity_log` where `log_name` = 'vehicle' and `subject_id` = 50215 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 10 - 2025-04-18 08:00:36 [0.14ms] */
select * from `activity_log` where `log_name` = 'party_vehicle' and `subject_id` = 16 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 11 - 2025-04-18 08:00:36 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 1 and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 12 - 2025-04-18 08:00:36 [0.14ms] */
select * from `model` where `model`.`id` = 1335 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 13 - 2025-04-18 08:00:36 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 14 - 2025-04-18 08:00:36 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 15 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 15 - 2025-04-18 08:00:36 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 8 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 16 - 2025-04-18 08:00:36 [0.13ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 50 and `vehicle_color`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 17 - 2025-04-18 08:00:36 [0.14ms] */
select * from `fuel_type` where `fuel_type`.`id` = 2 and `fuel_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 18 - 2025-04-18 08:00:36 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 19 - 2025-04-18 08:00:36 [0.16ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` = 50215 and `party_vehicle`.`vehicle_id` is not null and `party_vehicle`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.vehicle-history-component
   Query 20 - 2025-04-18 08:00:36 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 1 - 2025-04-18 08:00:39 [1.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 2 - 2025-04-18 08:00:39 [0.43ms] */
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/service.update-vehicle-component
   Query 3 - 2025-04-18 08:00:39 [0.34ms] */
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/service.update-vehicle-component
   Query 4 - 2025-04-18 08:00:39 [0.77ms] */
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/service.update-vehicle-component
   Query 5 - 2025-04-18 08:00:39 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 6 - 2025-04-18 08:00:39 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` in (1, 2, 3, 4);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 7 - 2025-04-18 08:00:39 [0.15ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 8 - 2025-04-18 08:00:39 [0.41ms] */
select * from `service_fee` where (`sub_category_id` = 8 and `service_id` = 2 or `sub_category_id` is null and `service_id` = 2) and `service_fee`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 9 - 2025-04-18 08:00:39 [0.28ms] */
select * from `service_workflow` where `service_id` = 8 and `service_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 10 - 2025-04-18 08:00:39 [0.16ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 11 - 2025-04-18 08:00:39 [0.19ms] */
select * from `transaction` where `vehicle_id` = 50215 and `service_id` = 8 and `status` not in ('END', 'CANCELED') and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 1 - 2025-04-18 08:00:40 [2.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 2 - 2025-04-18 08:00:40 [0.74ms] */
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/workflow.workflow-checklist-component
   Query 3 - 2025-04-18 08:00:40 [0.6ms] */
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/workflow.workflow-checklist-component
   Query 4 - 2025-04-18 08:00:40 [0.42ms] */
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/api/login
   Query 1 - 2025-04-18 08:00:40 [2.05ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 5 - 2025-04-18 08:00:40 [0.73ms] */
(select * from `workflow_checklist` where `workflow_id` = 8 and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` = 8 and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 6 - 2025-04-18 08:00:40 [0.22ms] */
(select * from `workflow_checklist` where `workflow_id` = 8 and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` = 8 and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 08:00:40 [0.24ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 08:00:40 [0.3ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 08:00:40 [10.97ms] */
update `userprofiles` set `login_count` = 660, `last_login` = '2025-04-18 08:00:40', `userprofiles`.`updated_at` = '2025-04-18 08:00:40' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 08:00:40 [0.31ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 08:00:40 [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-04-18 08:00:40 [0.3ms] */
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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 08:00:40 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 08:00:40 [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-04-18 08:00:40 [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-04-18 08:00:40 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 08:00:40 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 08:00:40 [3.01ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('8be80a385237d3b0d4d5fbcee5c260a95968e045074f7eb368f7a2ff385b891161752eddc210ffc5', 1, 5, '[]', 0, '2025-04-18 08:00:40', '2025-04-18 08:00:40', '2026-04-18 08:00:40');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 08:00:40 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '8be80a385237d3b0d4d5fbcee5c260a95968e045074f7eb368f7a2ff385b891161752eddc210ffc5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 08:00:40 [2.86ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '8be80a385237d3b0d4d5fbcee5c260a95968e045074f7eb368f7a2ff385b891161752eddc210ffc5';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 08:00:40 [2.21ms] */
select * from `oauth_access_tokens` where `id` = '8be80a385237d3b0d4d5fbcee5c260a95968e045074f7eb368f7a2ff385b891161752eddc210ffc5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 08:00:40 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '8be80a385237d3b0d4d5fbcee5c260a95968e045074f7eb368f7a2ff385b891161752eddc210ffc5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 08:00:40 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 08:00:40 [0.24ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 08:00:40 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '8be80a385237d3b0d4d5fbcee5c260a95968e045074f7eb368f7a2ff385b891161752eddc210ffc5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 08:00:40 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 08:00:40 [0.44ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'AS647';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 08:00:40 [1.22ms] */
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 `license_plate` = 'AS647' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 1 - 2025-04-18 08:00:54 [1.92ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 2 - 2025-04-18 08:00:54 [0.43ms] */
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/workflow.workflow-checklist-component
   Query 3 - 2025-04-18 08:00:54 [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/workflow.workflow-checklist-component
   Query 4 - 2025-04-18 08:00:54 [0.4ms] */
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/workflow.workflow-checklist-component
   Query 5 - 2025-04-18 08:00:54 [0.28ms] */
(select * from `workflow_checklist` where `workflow_id` = 8 and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` = 8 and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 1 - 2025-04-18 08:00:54 [1.3ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 2 - 2025-04-18 08:00:54 [0.47ms] */
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/service.update-vehicle-component
   Query 3 - 2025-04-18 08:00:54 [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/service.update-vehicle-component
   Query 4 - 2025-04-18 08:00:54 [0.58ms] */
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/service.update-vehicle-component
   Query 5 - 2025-04-18 08:00:54 [0.24ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 6 - 2025-04-18 08:00:54 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` in (1, 2, 3, 4);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 7 - 2025-04-18 08:00:54 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 8 - 2025-04-18 08:00:54 [0.21ms] */
select * from `service` where `service`.`id` = 8 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 9 - 2025-04-18 08:00:54 [0.27ms] */
select * from `service_workflow` where ((`service_id` = 8)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 10 - 2025-04-18 08:00:54 [0.25ms] */
select * from `workflow_definition` where `workflow_id` = 8 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 11 - 2025-04-18 08:00:54 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 8 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 12 - 2025-04-18 08:00:54 [0.56ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (null, 8, 50215, null, 8, 33, null, 37, 37, 'INPROGRESS', null, null, 5, 5, '2025-04-18 08:00:54', '2025-04-18 08:00:54');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-vehicle-component
   Query 13 - 2025-04-18 08:00:54 [0.21ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (574465, 'INITIATED', '2025-04-18 08:00:54', 5, 5, 5, 5, '2025-04-18 08:00:54', '2025-04-18 08:00:54');
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 1 - 2025-04-18 08:00:54 [1.33ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 2 - 2025-04-18 08:00:54 [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/m/mytrn
   Query 3 - 2025-04-18 08:00:54 [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/mytrn
   Query 4 - 2025-04-18 08:00:54 [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/mytrn
   Query 5 - 2025-04-18 08:00:54 [7.46ms] */
select count(*) as aggregate from `transaction` inner join `transaction_workflow` on `transaction_workflow`.`transaction_id` = `transaction`.`id` where `transaction_workflow`.`user_id` = 5 and `transaction`.`one_time_tax` <> 'Y' and `parent_id` is null and `status` <> 'CANCELED' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 6 - 2025-04-18 08:00:54 [18.18ms] */
select distinct `transaction`.* from `transaction` inner join `transaction_workflow` on `transaction_workflow`.`transaction_id` = `transaction`.`id` where `transaction_workflow`.`user_id` = 5 and `transaction`.`one_time_tax` <> 'Y' and `parent_id` is null and `status` <> 'CANCELED' and `transaction`.`deleted_at` is null order by `created_at` desc, `created_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 7 - 2025-04-18 08:00:54 [0.22ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 8 - 2025-04-18 08:00:54 [0.22ms] */
select * from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 9 - 2025-04-18 08:00:54 [0.46ms] */
select * from `service_workflow` where `service_workflow`.`id` = 8 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 10 - 2025-04-18 08:00:54 [0.41ms] */
select * from `service` where `service`.`id` = 8 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 11 - 2025-04-18 08:00:54 [0.4ms] */
select * from `service` where `service`.`id` = 8 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 12 - 2025-04-18 08:00:54 [0.48ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 13 - 2025-04-18 08:00:54 [0.56ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 33 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 14 - 2025-04-18 08:00:54 [0.28ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 15 - 2025-04-18 08:00:54 [0.26ms] */
select * from `service_workflow` where `service_workflow`.`id` = 10 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 16 - 2025-04-18 08:00:54 [0.23ms] */
select * from `service` where `service`.`id` = 10 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 17 - 2025-04-18 08:00:54 [0.23ms] */
select * from `service` where `service`.`id` = 10 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 18 - 2025-04-18 08:00:54 [0.29ms] */
select * from `party` where `party`.`id` = 40314 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 19 - 2025-04-18 08:00:54 [0.16ms] */
select * from `person` where `person`.`id` = 40314 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 20 - 2025-04-18 08:00:54 [0.39ms] */
select * from `vehicle` where `vehicle`.`id` = 52296 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 21 - 2025-04-18 08:00:54 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 40 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 22 - 2025-04-18 08:00:54 [0.12ms] */
select * from `roles` where `roles`.`id` = 7 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 23 - 2025-04-18 08:00:54 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 4 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 24 - 2025-04-18 08:00:54 [0.12ms] */
select * from `service` where `service`.`id` = 4 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 25 - 2025-04-18 08:00:54 [0.13ms] */
select * from `service` where `service`.`id` = 4 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 26 - 2025-04-18 08:00:54 [0.16ms] */
select * from `party` where `party`.`id` = 37100 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 27 - 2025-04-18 08:00:54 [0.15ms] */
select * from `person` where `person`.`id` = 37100 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 28 - 2025-04-18 08:00:54 [0.34ms] */
select * from `vehicle` where `vehicle`.`id` = 46188 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 29 - 2025-04-18 08:00:54 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 16 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 30 - 2025-04-18 08:00:54 [0.12ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 31 - 2025-04-18 08:00:54 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 6 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 32 - 2025-04-18 08:00:54 [0.14ms] */
select * from `service` where `service`.`id` = 6 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 33 - 2025-04-18 08:00:54 [0.13ms] */
select * from `service` where `service`.`id` = 6 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 34 - 2025-04-18 08:00:54 [0.14ms] */
select * from `party` where `party`.`id` = 64431 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 35 - 2025-04-18 08:00:54 [0.14ms] */
select * from `person` where `person`.`id` = 61818 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 36 - 2025-04-18 08:00:54 [0.37ms] */
select * from `vehicle` where `vehicle`.`id` = 99511 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 37 - 2025-04-18 08:00:54 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 24 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 38 - 2025-04-18 08:00:54 [0.12ms] */
select * from `roles` where `roles`.`id` = 7 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 39 - 2025-04-18 08:00:54 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 11 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 40 - 2025-04-18 08:00:54 [0.13ms] */
select * from `service` where `service`.`id` = 11 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 41 - 2025-04-18 08:00:54 [0.13ms] */
select * from `service` where `service`.`id` = 11 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 42 - 2025-04-18 08:00:54 [0.14ms] */
select * from `party` where `party`.`id` = 36530 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 43 - 2025-04-18 08:00:54 [0.14ms] */
select * from `person` where `person`.`id` = 36530 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 44 - 2025-04-18 08:00:54 [0.34ms] */
select * from `vehicle` where `vehicle`.`id` = 3 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 45 - 2025-04-18 08:00:54 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 44 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 46 - 2025-04-18 08:00:54 [0.12ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 47 - 2025-04-18 08:00:54 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 3 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 48 - 2025-04-18 08:00:54 [0.12ms] */
select * from `service` where `service`.`id` = 3 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 49 - 2025-04-18 08:00:54 [0.13ms] */
select * from `service` where `service`.`id` = 3 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 50 - 2025-04-18 08:00:54 [0.15ms] */
select * from `party` where `party`.`id` = 58472 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 51 - 2025-04-18 08:00:54 [0.14ms] */
select * from `person` where `person`.`id` = 56062 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 52 - 2025-04-18 08:00:54 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 74074 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 53 - 2025-04-18 08:00:54 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 11 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 54 - 2025-04-18 08:00:54 [0.12ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 55 - 2025-04-18 08:00:54 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 56 - 2025-04-18 08:00:54 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 57 - 2025-04-18 08:00:55 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 58 - 2025-04-18 08:00:55 [0.14ms] */
select * from `party` where `party`.`id` = 50629 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 59 - 2025-04-18 08:00:55 [0.15ms] */
select * from `person` where `person`.`id` = 50629 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 60 - 2025-04-18 08:00:55 [0.38ms] */
select * from `vehicle` where `vehicle`.`id` = 78678 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 61 - 2025-04-18 08:00:55 [0.13ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 27 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 62 - 2025-04-18 08:00:55 [0.2ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 63 - 2025-04-18 08:00:55 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 64 - 2025-04-18 08:00:55 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 65 - 2025-04-18 08:00:55 [0.14ms] */
select * from `party` where `party`.`id` = 47909 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 66 - 2025-04-18 08:00:55 [0.15ms] */
select * from `person` where `person`.`id` = 47909 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 67 - 2025-04-18 08:00:55 [0.45ms] */
select * from `vehicle` where `vehicle`.`id` = 71544 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 68 - 2025-04-18 08:00:55 [0.15ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 26 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 69 - 2025-04-18 08:00:55 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 70 - 2025-04-18 08:00:55 [0.13ms] */
select * from `roles` where `roles`.`id` = 7 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 71 - 2025-04-18 08:00:55 [0.25ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 72 - 2025-04-18 08:00:55 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 73 - 2025-04-18 08:00:55 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 74 - 2025-04-18 08:00:55 [0.14ms] */
select * from `party` where `party`.`id` = 50629 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 75 - 2025-04-18 08:00:55 [0.15ms] */
select * from `person` where `person`.`id` = 50629 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 76 - 2025-04-18 08:00:55 [0.15ms] */
select * from `vehicle` where `vehicle`.`id` = 78678 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 77 - 2025-04-18 08:00:55 [0.13ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 27 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 78 - 2025-04-18 08:00:55 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 79 - 2025-04-18 08:00:55 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 80 - 2025-04-18 08:00:55 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 81 - 2025-04-18 08:00:55 [0.13ms] */
select * from `party` where `party`.`id` = 33601 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 82 - 2025-04-18 08:00:55 [0.14ms] */
select * from `person` where `person`.`id` = 33601 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 83 - 2025-04-18 08:00:55 [0.7ms] */
select * from `vehicle` where `vehicle`.`id` = 89150 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 84 - 2025-04-18 08:00:55 [0.13ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 27 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 85 - 2025-04-18 08:00:55 [0.18ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 86 - 2025-04-18 08:00:55 [0.13ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/admin/log-viewer/logs/2025-04-18/download
   Query 1 - 2025-04-18 08:01:04 [1.35ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/admin/log-viewer/logs/2025-04-18/download
   Query 2 - 2025-04-18 08:01:04 [0.47ms] */
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/admin/log-viewer/logs/2025-04-18/download
   Query 3 - 2025-04-18 08:01:04 [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/admin/log-viewer/logs/2025-04-18/download
   Query 4 - 2025-04-18 08:01:04 [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/m/service/party/list
   Query 1 - 2025-04-18 08:02:58 [2.15ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/list
   Query 2 - 2025-04-18 08:02:58 [0.81ms] */
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/service/party/list
   Query 3 - 2025-04-18 08:02:58 [0.72ms] */
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/service/party/list
   Query 4 - 2025-04-18 08:02:58 [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/m/service/party/list
   Query 5 - 2025-04-18 08:02:58 [0.25ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/list
   Query 6 - 2025-04-18 08:02:58 [0.14ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 1 - 2025-04-18 08:05:54 [1.36ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 2 - 2025-04-18 08:05:54 [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/livewire/message/service.update-party-list-component
   Query 3 - 2025-04-18 08:05:54 [0.31ms] */
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/service.update-party-list-component
   Query 4 - 2025-04-18 08:05:54 [0.39ms] */
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/service.update-party-list-component
   Query 5 - 2025-04-18 08:05:54 [140.82ms] */
select count(*) as aggregate from `person` inner join `party` on `party`.`partyable_id` = `person`.`id` and `party`.`partyable_type` = 'Person' left join `customer_identity_documents` on `customer_identity_documents`.`party_id` = `party`.`id` where (((`first_name` like '%3%' or `second_name` like '%3%' or `third_name` like '%3%' or `fourth_name` like '%3%' or `phone_number_1` like '%3%' or `phone_number_2` like '%3%' or `customer_identity_documents`.`id_number` like '%3%')) and `provisional` = 'N') and `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 6 - 2025-04-18 08:05:54 [219.03ms] */
select `person`.* from `person` inner join `party` on `party`.`partyable_id` = `person`.`id` and `party`.`partyable_type` = 'Person' left join `customer_identity_documents` on `customer_identity_documents`.`party_id` = `party`.`id` where (((`first_name` like '%3%' or `second_name` like '%3%' or `third_name` like '%3%' or `fourth_name` like '%3%' or `phone_number_1` like '%3%' or `phone_number_2` like '%3%' or `customer_identity_documents`.`id_number` like '%3%')) and `provisional` = 'N') and `person`.`deleted_at` is null order by `first_name` asc, `second_name` asc, `third_name` asc, `fourth_name` asc limit 10 offset 0;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 7 - 2025-04-18 08:05:54 [19.05ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 47918 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 8 - 2025-04-18 08:05:54 [0.3ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 47918 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/service.update-party-list-component
   Query 9 - 2025-04-18 08:05:54 [24.04ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 57420 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 10 - 2025-04-18 08:05:54 [0.33ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 59885 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/service.update-party-list-component
   Query 11 - 2025-04-18 08:05:54 [23.12ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 56062 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 12 - 2025-04-18 08:05:54 [0.22ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 58472 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/service.update-party-list-component
   Query 13 - 2025-04-18 08:05:54 [24.25ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 58757 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 14 - 2025-04-18 08:05:54 [0.22ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 61268 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/service.update-party-list-component
   Query 15 - 2025-04-18 08:05:54 [5.92ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 14500 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 16 - 2025-04-18 08:05:54 [0.19ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 14500 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/service.update-party-list-component
   Query 17 - 2025-04-18 08:05:54 [18.93ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 47796 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 18 - 2025-04-18 08:05:54 [0.19ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 47796 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/service.update-party-list-component
   Query 19 - 2025-04-18 08:05:54 [20.15ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 50208 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 20 - 2025-04-18 08:05:54 [0.21ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 50208 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/service.update-party-list-component
   Query 21 - 2025-04-18 08:05:54 [19.39ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 48671 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 22 - 2025-04-18 08:05:54 [0.21ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 48671 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/service.update-party-list-component
   Query 23 - 2025-04-18 08:05:54 [21.31ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 53880 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 24 - 2025-04-18 08:05:54 [0.2ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 53880 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/service.update-party-list-component
   Query 25 - 2025-04-18 08:05:54 [3.29ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 7766 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 26 - 2025-04-18 08:05:54 [0.19ms] */
select * from `customer_identity_documents` where `customer_identity_documents`.`party_id` = 7766 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/service.update-party-list-component
   Query 1 - 2025-04-18 08:06:50 [1.37ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-list-component
   Query 2 - 2025-04-18 08:06:50 [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/livewire/message/service.update-party-list-component
   Query 3 - 2025-04-18 08:06:50 [0.31ms] */
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/service.update-party-list-component
   Query 4 - 2025-04-18 08:06:50 [0.39ms] */
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/service/party/start/47918
   Query 1 - 2025-04-18 08:06:51 [2.01ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 2 - 2025-04-18 08:06:51 [0.8ms] */
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/service/party/start/47918
   Query 3 - 2025-04-18 08:06:51 [0.56ms] */
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/service/party/start/47918
   Query 4 - 2025-04-18 08:06:51 [0.55ms] */
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/service/party/start/47918
   Query 5 - 2025-04-18 08:06:51 [0.28ms] */
select * from `party` where `party`.`id` = 47918 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 6 - 2025-04-18 08:06:51 [0.24ms] */
select * from `person` where `person`.`id` = 47918 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 7 - 2025-04-18 08:06:51 [0.37ms] */
select * from `transaction` where `party_id` = 47918 and `service_id` = 9 and `status` not in ('END', 'CANCELED') and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 8 - 2025-04-18 08:06:51 [0.15ms] */
select * from `party` where `party`.`id` = 47918 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 9 - 2025-04-18 08:06:51 [0.16ms] */
select * from `person` where `person`.`id` = 47918 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 10 - 2025-04-18 08:06:51 [0.15ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 47918 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 11 - 2025-04-18 08:06:51 [0.26ms] */
select * from `address` where `address`.`id` = 47918 and `address`.`id` is not null and `address`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 12 - 2025-04-18 08:06:51 [0.16ms] */
select * from `region` where `region`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 13 - 2025-04-18 08:06:51 [0.13ms] */
select * from `tax_collection_points` where `region_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 14 - 2025-04-18 08:06:51 [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/service/party/start/47918
   Query 15 - 2025-04-18 08:06:51 [0.13ms] */
select * from `branches` where `district_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 16 - 2025-04-18 08:06:51 [0.21ms] */
(select * from `workflow_checklist` where `workflow_id` is null and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` is null and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 17 - 2025-04-18 08:06:51 [0.19ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/service/party/start/47918
   Query 18 - 2025-04-18 08:06:51 [0.13ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=47918&model=Person
   Query 1 - 2025-04-18 08:06:51 [1.37ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=47918&model=Person
   Query 2 - 2025-04-18 08:06:51 [0.66ms] */
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=47918&model=Person
   Query 3 - 2025-04-18 08:06:51 [0.52ms] */
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=47918&model=Person
   Query 4 - 2025-04-18 08:06:51 [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=47918&model=Person
   Query 5 - 2025-04-18 08:06:51 [0.28ms] */
select * from `party` where `id` = 47918 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=47918&model=Person
   Query 6 - 2025-04-18 08:06:51 [0.4ms] */
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 = 47918 and a.auditable_type = 'Person' ORDER BY a.id DESC
            ;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 1 - 2025-04-18 08:07:10 [2.07ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 2 - 2025-04-18 08:07:10 [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/livewire/message/service.update-party-component
   Query 3 - 2025-04-18 08:07:10 [0.52ms] */
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/service.update-party-component
   Query 4 - 2025-04-18 08:07:10 [0.4ms] */
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/service.update-party-component
   Query 5 - 2025-04-18 08:07:10 [0.33ms] */
select * from `party` where `party`.`id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 6 - 2025-04-18 08:07:10 [0.28ms] */
select * from `person` where `person`.`id` in (47918) and `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 7 - 2025-04-18 08:07:10 [0.22ms] */
select * from `person` where `person`.`id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 8 - 2025-04-18 08:07:10 [0.15ms] */
select * from `party` where `party`.`id` = 47918 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 9 - 2025-04-18 08:07:10 [0.16ms] */
select * from `person` where `person`.`id` = 47918 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 10 - 2025-04-18 08:07:10 [0.19ms] */
select * from `transaction` where `party_id` = 47918 and `service_id` = 9 and `status` not in ('END', 'CANCELED') and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 1 - 2025-04-18 08:07:11 [1.57ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 2 - 2025-04-18 08:07:11 [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/livewire/message/party.create-party-person-component
   Query 3 - 2025-04-18 08:07:11 [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/livewire/message/party.create-party-person-component
   Query 4 - 2025-04-18 08:07:11 [0.62ms] */
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.create-party-person-component
   Query 5 - 2025-04-18 08:07:11 [0.32ms] */
select * from `party` where `party`.`id` = 47918 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 6 - 2025-04-18 08:07:11 [0.27ms] */
select * from `person` where `person`.`id` = 47918 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 7 - 2025-04-18 08:07:11 [0.25ms] */
select * from `address` where `address`.`id` = 47918 and `address`.`id` is not null and `address`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 1 - 2025-04-18 08:10:22 [2.07ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 2 - 2025-04-18 08:10:22 [0.74ms] */
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.create-party-person-component
   Query 3 - 2025-04-18 08:10:22 [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.create-party-person-component
   Query 4 - 2025-04-18 08:10:22 [0.39ms] */
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.create-party-person-component
   Query 5 - 2025-04-18 08:10:22 [0.23ms] */
select * from `region` where `region`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 6 - 2025-04-18 08:10:22 [0.13ms] */
select * from `tax_collection_points` where `region_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 7 - 2025-04-18 08:10:22 [0.13ms] */
select * from `district` where `region_id` is null and `district`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 8 - 2025-04-18 08:10:22 [0.13ms] */
select * from `branches` where `district_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 1 - 2025-04-18 08:10:51 [2.04ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 2 - 2025-04-18 08:10:51 [0.76ms] */
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/config.select-district-component
   Query 3 - 2025-04-18 08:10:51 [0.62ms] */
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/config.select-district-component
   Query 4 - 2025-04-18 08:10:51 [0.39ms] */
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/config.select-district-component
   Query 5 - 2025-04-18 08:10:51 [0.2ms] */
select * from `region` where `region`.`id` in (1, 2, 3, 4, 5, 6, 7, 8, 9);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 6 - 2025-04-18 08:10:51 [0.14ms] */
select * from `region` where `region`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 7 - 2025-04-18 08:10:51 [0.41ms] */
select * from `tax_collection_points` where `region_id` = 7 order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 8 - 2025-04-18 08:10:51 [0.3ms] */
select * from `district` where `region_id` = 7 and `district`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 9 - 2025-04-18 08:10:51 [0.13ms] */
select * from `branches` where `district_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 1 - 2025-04-18 08:10:51 [1.33ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 2 - 2025-04-18 08:10:51 [0.41ms] */
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.create-party-person-component
   Query 3 - 2025-04-18 08:10:51 [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.create-party-person-component
   Query 4 - 2025-04-18 08:10:51 [0.39ms] */
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/config.select-district-component
   Query 1 - 2025-04-18 08:10:52 [1.32ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 2 - 2025-04-18 08:10:52 [0.41ms] */
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/config.select-district-component
   Query 3 - 2025-04-18 08:10:52 [0.3ms] */
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/config.select-district-component
   Query 4 - 2025-04-18 08:10:52 [0.38ms] */
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/config.select-district-component
   Query 5 - 2025-04-18 08:10:52 [0.37ms] */
select * from `district` where `district`.`id` in (34, 35, 36, 37, 38);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 6 - 2025-04-18 08:10:52 [0.16ms] */
select * from `region` where `region`.`id` in (1, 2, 3, 4, 5, 6, 7, 8, 9);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 7 - 2025-04-18 08:10:52 [0.24ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` in (29, 28, 38, 27, 25, 26, 30);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 8 - 2025-04-18 08:10:52 [0.23ms] */
select * from `district` where `id` = 34 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 9 - 2025-04-18 08:10:52 [0.14ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 10 - 2025-04-18 08:10:52 [0.13ms] */
select * from `region` where `region`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 11 - 2025-04-18 08:10:52 [0.13ms] */
select * from `tax_collection_points` where `region_id` = 7 order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 12 - 2025-04-18 08:10:52 [0.14ms] */
select * from `district` where `region_id` = 7 and `district`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/config.select-district-component
   Query 13 - 2025-04-18 08:10:52 [0.29ms] */
select * from `branches` where `district_id` = 34 order by `name` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 1 - 2025-04-18 08:10:52 [1.73ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 2 - 2025-04-18 08:10:52 [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.create-party-person-component
   Query 3 - 2025-04-18 08:10:52 [0.59ms] */
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.create-party-person-component
   Query 4 - 2025-04-18 08:10:52 [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.create-party-person-component
   Query 1 - 2025-04-18 08:10:54 [2.03ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 2 - 2025-04-18 08:10:54 [0.8ms] */
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.create-party-person-component
   Query 3 - 2025-04-18 08:10:54 [0.67ms] */
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.create-party-person-component
   Query 4 - 2025-04-18 08:10:54 [0.38ms] */
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.create-party-person-component
   Query 1 - 2025-04-18 08:11:05 [2.07ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 2 - 2025-04-18 08:11: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): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 3 - 2025-04-18 08:11:05 [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.create-party-person-component
   Query 4 - 2025-04-18 08:11:05 [0.4ms] */
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.create-party-person-component
   Query 1 - 2025-04-18 08:11:13 [2.28ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 2 - 2025-04-18 08:11:13 [0.59ms] */
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.create-party-person-component
   Query 3 - 2025-04-18 08:11:13 [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.create-party-person-component
   Query 4 - 2025-04-18 08:11:13 [0.4ms] */
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.create-party-person-component
   Query 1 - 2025-04-18 08:12:41 [2.36ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 2 - 2025-04-18 08:12:41 [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/livewire/message/party.create-party-person-component
   Query 3 - 2025-04-18 08:12:41 [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.create-party-person-component
   Query 4 - 2025-04-18 08:12:41 [0.37ms] */
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.create-party-person-component
   Query 5 - 2025-04-18 08:12:41 [0.33ms] */
select r.name,d.name from district d join region r on r.id=d.region_id where d.id =34;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 6 - 2025-04-18 08:12:41 [0.28ms] */
select * from `person` where `id` = 47918 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 7 - 2025-04-18 08:12:41 [24.75ms] */
select * from `party` where `party`.`partyable_id` in (47918) and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 8 - 2025-04-18 08:12:41 [0.19ms] */
select * from `address` where `address`.`id` in (null) and `address`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 9 - 2025-04-18 08:12:41 [0.55ms] */
update `person` set `first_name` = 'JUMBA', `second_name` = 'LAKA', `third_name` = 'JUMBA', `fourth_name` = 'LAKA', `date_of_birth` = '1995-02-28 08:12:41', `occupation` = 'Business', `mother_first_name` = 'FARZX', `mother_second_name` = 'MARAX', `mother_third_name` = 'MOHAMMED', `father_first_name` = 'LAKA', `father_second_name` = 'JUMBA', `father_third_name` = 'LAKA', `updated_by` = 5, `person`.`updated_at` = '2025-04-18 08:12:41' where `id` = 47918;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 10 - 2025-04-18 08:12:41 [0.21ms] */
select * from `person` where `id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 11 - 2025-04-18 08:12:41 [0.69ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('person', '{"attributes":{"first_name":"JUMBA","second_name":"LAKA","third_name":"JUMBA","fourth_name":"LAKA","date_of_birth":"1995-02-28","occupation":"Business","mother_first_name":"FARZX","mother_second_name":"MARAX","mother_third_name":"MOHAMMED","father_first_name":"LAKA","father_second_name":"JUMBA","father_third_name":"LAKA"},"old":{"first_name":"","second_name":"","third_name":"","fourth_name":"","date_of_birth":"2021-02-04","occupation":"","mother_first_name":"","mother_second_name":"","mother_third_name":"","father_first_name":"","father_second_name":"","father_third_name":""}}', 5, 'App\Models\User', 47918, 'Person', 'updated', '2025-04-18 08:12:41', '2025-04-18 08:12:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 12 - 2025-04-18 08:12:41 [0.69ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"first_name":"","second_name":"","third_name":"","fourth_name":"","date_of_birth":"2021-02-04","occupation":"","mother_first_name":"","mother_second_name":"","mother_third_name":"","father_first_name":"","father_second_name":"","father_third_name":"","updated_by":1}', '{"first_name":"JUMBA","second_name":"LAKA","third_name":"JUMBA","fourth_name":"LAKA","date_of_birth":"1995-02-28T05:12:41.000000Z","occupation":"Business","mother_first_name":"FARZX","mother_second_name":"MARAX","mother_third_name":"MOHAMMED","father_first_name":"LAKA","father_second_name":"JUMBA","father_third_name":"LAKA","updated_by":5}', 'updated', 47918, 'Person', 5, 'App\Models\User', null, '49.47.219.130', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component', '2025-04-18 08:12:41', '2025-04-18 08:12:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 13 - 2025-04-18 08:12:41 [0.19ms] */
select * from `address` where `address`.`id` = 47918 and `address`.`id` is not null and `address`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 14 - 2025-04-18 08:12:41 [0.28ms] */
update `address` set `address_line_1` = '  1345 Renard Street, Locality Sool, Las Anod, Somaliland', `district_id` = 34, `updated_by` = 5, `address`.`updated_at` = '2025-04-18 08:12:41' where `id` = 47918;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 15 - 2025-04-18 08:12:41 [0.15ms] */
select * from `address` where `id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 16 - 2025-04-18 08:12:41 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('address', '{"attributes":{"address_line_1":"  1345 Renard Street, Locality Sool, Las Anod, Somaliland","district_id":34},"old":{"address_line_1":"  ","district_id":null}}', 5, 'App\Models\User', 47918, 'Modules\Party\Entities\Address', 'updated', '2025-04-18 08:12:41', '2025-04-18 08:12:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 17 - 2025-04-18 08:12:41 [0.61ms] */
update `party` set `updated_by` = 5, `party`.`updated_at` = '2025-04-18 08:12:41' where `id` = 47918;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 18 - 2025-04-18 08:12:41 [0.17ms] */
select * from `party` where `id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 19 - 2025-04-18 08:12:41 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('party', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 47918, 'Modules\Party\Entities\Party', 'updated', '2025-04-18 08:12:41', '2025-04-18 08:12:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component
   Query 20 - 2025-04-18 08:12:41 [0.17ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"updated_by":1}', '{"updated_by":5}', 'updated', 47918, 'Modules\Party\Entities\Party', 5, 'App\Models\User', null, '49.47.219.130', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'https://testtra.puntlandgov.org/livewire/message/party.create-party-person-component', '2025-04-18 08:12:41', '2025-04-18 08:12:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 1 - 2025-04-18 08:12:41 [2.02ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 2 - 2025-04-18 08:12:41 [0.73ms] */
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/service.update-party-component
   Query 3 - 2025-04-18 08:12:41 [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/service.update-party-component
   Query 4 - 2025-04-18 08:12:41 [0.55ms] */
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/service.update-party-component
   Query 5 - 2025-04-18 08:12:41 [0.3ms] */
select * from `party` where `party`.`id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 6 - 2025-04-18 08:12:41 [0.26ms] */
select * from `person` where `person`.`id` in (47918) and `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 7 - 2025-04-18 08:12:41 [0.21ms] */
select * from `person` where `person`.`id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 8 - 2025-04-18 08:12:41 [0.22ms] */
select * from `party` where `party`.`id` = 47918 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 9 - 2025-04-18 08:12:41 [0.22ms] */
select * from `person` where `person`.`id` = 47918 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 10 - 2025-04-18 08:12:41 [0.32ms] */
select * from `transaction` where `party_id` = 47918 and `service_id` = 9 and `status` not in ('END', 'CANCELED') and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 11 - 2025-04-18 08:12:41 [0.14ms] */
select * from `party` where `party`.`id` = 47918 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 12 - 2025-04-18 08:12:41 [0.14ms] */
select * from `person` where `person`.`id` = 47918 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 13 - 2025-04-18 08:12:41 [3.15ms] */
select * from `activity_log` where `log_name` = 'party' and `subject_id` = 47918 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 14 - 2025-04-18 08:12:41 [0.51ms] */
select * from `activity_log` where `log_name` = 'person' and `subject_id` = 47918 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 15 - 2025-04-18 08:12:41 [22.67ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 47918 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 1 - 2025-04-18 08:12:45 [2.07ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 2 - 2025-04-18 08:12:45 [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/service.update-party-component
   Query 3 - 2025-04-18 08:12:45 [0.62ms] */
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/service.update-party-component
   Query 4 - 2025-04-18 08:12:45 [0.37ms] */
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/service.update-party-component
   Query 5 - 2025-04-18 08:12:45 [0.19ms] */
select * from `party` where `party`.`id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 6 - 2025-04-18 08:12:45 [0.17ms] */
select * from `person` where `person`.`id` in (47918) and `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 7 - 2025-04-18 08:12:45 [0.15ms] */
select * from `person` where `person`.`id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 8 - 2025-04-18 08:12:45 [0.39ms] */
select * from `service_workflow` where `service_id` = 9 and `service_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 9 - 2025-04-18 08:12:45 [0.16ms] */
select * from `party` where `party`.`id` = 47918 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 10 - 2025-04-18 08:12:45 [0.15ms] */
select * from `person` where `person`.`id` = 47918 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 11 - 2025-04-18 08:12:45 [0.18ms] */
select * from `transaction` where `party_id` = 47918 and `service_id` = 9 and `status` not in ('END', 'CANCELED') and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 1 - 2025-04-18 08:12:45 [2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 2 - 2025-04-18 08:12:45 [0.65ms] */
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/workflow.workflow-checklist-component
   Query 3 - 2025-04-18 08:12:45 [0.5ms] */
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/workflow.workflow-checklist-component
   Query 4 - 2025-04-18 08:12:45 [0.57ms] */
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/workflow.workflow-checklist-component
   Query 5 - 2025-04-18 08:12:46 [0.59ms] */
(select * from `workflow_checklist` where `workflow_id` = 9 and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` = 9 and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 6 - 2025-04-18 08:12:46 [0.19ms] */
(select * from `workflow_checklist` where `workflow_id` = 9 and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` = 9 and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 1 - 2025-04-18 08:12:56 [1.35ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 2 - 2025-04-18 08:12:56 [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/workflow.workflow-checklist-component
   Query 3 - 2025-04-18 08:12:56 [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/workflow.workflow-checklist-component
   Query 4 - 2025-04-18 08:12:56 [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/workflow.workflow-checklist-component
   Query 5 - 2025-04-18 08:12:56 [0.28ms] */
(select * from `workflow_checklist` where `workflow_id` = 9 and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` = 9 and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` = 5 and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 1 - 2025-04-18 08:12:57 [1.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 2 - 2025-04-18 08:12:57 [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/livewire/message/service.update-party-component
   Query 3 - 2025-04-18 08:12:57 [0.31ms] */
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/service.update-party-component
   Query 4 - 2025-04-18 08:12:57 [0.4ms] */
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/service.update-party-component
   Query 5 - 2025-04-18 08:12:57 [0.19ms] */
select * from `party` where `party`.`id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 6 - 2025-04-18 08:12:57 [0.16ms] */
select * from `person` where `person`.`id` in (47918) and `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 7 - 2025-04-18 08:12:57 [0.14ms] */
select * from `person` where `person`.`id` = 47918 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 8 - 2025-04-18 08:12:57 [0.5ms] */
select * from `party` where `party`.`id` = 47918 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 9 - 2025-04-18 08:12:57 [0.41ms] */
select * from `service` where `service`.`id` = 9 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 10 - 2025-04-18 08:12:57 [0.41ms] */
select * from `service_workflow` where ((`service_id` = 9)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 11 - 2025-04-18 08:12:57 [0.48ms] */
select * from `workflow_definition` where `workflow_id` = 9 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 12 - 2025-04-18 08:12:57 [0.41ms] */
select * from `workflow_definition` where `workflow_id` = 9 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 13 - 2025-04-18 08:12:57 [0.43ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (47918, 9, null, null, 9, 36, null, 37, 37, 'INPROGRESS', null, null, 5, 5, '2025-04-18 08:12:57', '2025-04-18 08:12:57');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.update-party-component
   Query 14 - 2025-04-18 08:12:57 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (574466, 'INITIATED', '2025-04-18 08:12:57', 5, 5, 5, 5, '2025-04-18 08:12:57', '2025-04-18 08:12:57');
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 1 - 2025-04-18 08:12:57 [2.15ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 2 - 2025-04-18 08:12:57 [0.73ms] */
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/mytrn
   Query 3 - 2025-04-18 08:12:57 [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/mytrn
   Query 4 - 2025-04-18 08:12:57 [0.39ms] */
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/mytrn
   Query 5 - 2025-04-18 08:12:57 [5.14ms] */
select count(*) as aggregate from `transaction` inner join `transaction_workflow` on `transaction_workflow`.`transaction_id` = `transaction`.`id` where `transaction_workflow`.`user_id` = 5 and `transaction`.`one_time_tax` <> 'Y' and `parent_id` is null and `status` <> 'CANCELED' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 6 - 2025-04-18 08:12:57 [10.02ms] */
select distinct `transaction`.* from `transaction` inner join `transaction_workflow` on `transaction_workflow`.`transaction_id` = `transaction`.`id` where `transaction_workflow`.`user_id` = 5 and `transaction`.`one_time_tax` <> 'Y' and `parent_id` is null and `status` <> 'CANCELED' and `transaction`.`deleted_at` is null order by `created_at` desc, `created_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 7 - 2025-04-18 08:12:57 [0.15ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 8 - 2025-04-18 08:12:57 [0.13ms] */
select * from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 9 - 2025-04-18 08:12:57 [0.24ms] */
select * from `service_workflow` where `service_workflow`.`id` = 9 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 10 - 2025-04-18 08:12:57 [0.21ms] */
select * from `service` where `service`.`id` = 9 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 11 - 2025-04-18 08:12:57 [0.2ms] */
select * from `service` where `service`.`id` = 9 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 12 - 2025-04-18 08:12:57 [0.24ms] */
select * from `party` where `party`.`id` = 47918 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 13 - 2025-04-18 08:12:57 [0.15ms] */
select * from `person` where `person`.`id` = 47918 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 14 - 2025-04-18 08:12:57 [0.22ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 36 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 15 - 2025-04-18 08:12:57 [0.13ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 16 - 2025-04-18 08:12:57 [0.25ms] */
select * from `service_workflow` where `service_workflow`.`id` = 8 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 17 - 2025-04-18 08:12:57 [0.25ms] */
select * from `service` where `service`.`id` = 8 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 18 - 2025-04-18 08:12:57 [0.24ms] */
select * from `service` where `service`.`id` = 8 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 19 - 2025-04-18 08:12:57 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 50215 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 20 - 2025-04-18 08:12:57 [0.29ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 33 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 21 - 2025-04-18 08:12:57 [0.24ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 22 - 2025-04-18 08:12:57 [0.26ms] */
select * from `service_workflow` where `service_workflow`.`id` = 10 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 23 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 10 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 24 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 10 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 25 - 2025-04-18 08:12:57 [0.23ms] */
select * from `party` where `party`.`id` = 40314 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 26 - 2025-04-18 08:12:57 [0.24ms] */
select * from `person` where `person`.`id` = 40314 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 27 - 2025-04-18 08:12:57 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 52296 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 28 - 2025-04-18 08:12:57 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 40 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 29 - 2025-04-18 08:12:57 [0.12ms] */
select * from `roles` where `roles`.`id` = 7 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 30 - 2025-04-18 08:12:57 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 4 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 31 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 4 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 32 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 4 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 33 - 2025-04-18 08:12:57 [0.21ms] */
select * from `party` where `party`.`id` = 37100 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 34 - 2025-04-18 08:12:57 [0.24ms] */
select * from `person` where `person`.`id` = 37100 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 35 - 2025-04-18 08:12:57 [0.15ms] */
select * from `vehicle` where `vehicle`.`id` = 46188 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 36 - 2025-04-18 08:12:57 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 16 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 37 - 2025-04-18 08:12:57 [0.13ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 38 - 2025-04-18 08:12:57 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 6 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 39 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 6 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 40 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 6 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 41 - 2025-04-18 08:12:57 [0.22ms] */
select * from `party` where `party`.`id` = 64431 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 42 - 2025-04-18 08:12:57 [0.22ms] */
select * from `person` where `person`.`id` = 61818 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 43 - 2025-04-18 08:12:57 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 99511 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 44 - 2025-04-18 08:12:57 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 24 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 45 - 2025-04-18 08:12:57 [0.12ms] */
select * from `roles` where `roles`.`id` = 7 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 46 - 2025-04-18 08:12:57 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 11 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 47 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 11 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 48 - 2025-04-18 08:12:57 [0.14ms] */
select * from `service` where `service`.`id` = 11 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 49 - 2025-04-18 08:12:57 [0.21ms] */
select * from `party` where `party`.`id` = 36530 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 50 - 2025-04-18 08:12:57 [0.22ms] */
select * from `person` where `person`.`id` = 36530 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 51 - 2025-04-18 08:12:57 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 3 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 52 - 2025-04-18 08:12:57 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 44 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 53 - 2025-04-18 08:12:57 [0.12ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 54 - 2025-04-18 08:12:57 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 3 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 55 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 3 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 56 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 3 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 57 - 2025-04-18 08:12:57 [0.21ms] */
select * from `party` where `party`.`id` = 58472 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 58 - 2025-04-18 08:12:57 [0.22ms] */
select * from `person` where `person`.`id` = 56062 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 59 - 2025-04-18 08:12:57 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 74074 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 60 - 2025-04-18 08:12:57 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 11 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 61 - 2025-04-18 08:12:57 [0.12ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 62 - 2025-04-18 08:12:57 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 63 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 64 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 65 - 2025-04-18 08:12:57 [0.21ms] */
select * from `party` where `party`.`id` = 50629 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 66 - 2025-04-18 08:12:57 [0.22ms] */
select * from `person` where `person`.`id` = 50629 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 67 - 2025-04-18 08:12:57 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 78678 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 68 - 2025-04-18 08:12:57 [0.13ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 27 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 69 - 2025-04-18 08:12:57 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 70 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 71 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 72 - 2025-04-18 08:12:57 [0.21ms] */
select * from `party` where `party`.`id` = 47909 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 73 - 2025-04-18 08:12:57 [0.22ms] */
select * from `person` where `person`.`id` = 47909 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 74 - 2025-04-18 08:12:57 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 71544 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 75 - 2025-04-18 08:12:57 [0.13ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 26 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 76 - 2025-04-18 08:12:57 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 77 - 2025-04-18 08:12:57 [0.12ms] */
select * from `roles` where `roles`.`id` = 7 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 78 - 2025-04-18 08:12:57 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 79 - 2025-04-18 08:12:57 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 80 - 2025-04-18 08:12:57 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 81 - 2025-04-18 08:12:57 [0.13ms] */
select * from `party` where `party`.`id` = 50629 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 82 - 2025-04-18 08:12:57 [0.14ms] */
select * from `person` where `person`.`id` = 50629 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 83 - 2025-04-18 08:12:57 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 78678 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 84 - 2025-04-18 08:12:57 [0.13ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 27 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 85 - 2025-04-18 08:12:57 [0.17ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/mytrn
   Query 86 - 2025-04-18 08:12:57 [0.14ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 09:02:15 [2.09ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 09:02:15 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 09:02:15 [0.4ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 09:02:15 [7.41ms] */
update `userprofiles` set `login_count` = 661, `last_login` = '2025-04-18 09:02:15', `userprofiles`.`updated_at` = '2025-04-18 09:02:15' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 09:02:15 [0.32ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 09:02:15 [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-04-18 09:02:15 [0.34ms] */
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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 09:02:15 [0.15ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 09:02:15 [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-04-18 09:02:15 [0.25ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 09:02:15 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 09:02:15 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 09:02:15 [3.21ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('ae710fe9ab47f969241b4fdd594ca0e7110e80f5aa8a7958cc604777b8c578db63a64b223044ef9f', 1, 5, '[]', 0, '2025-04-18 09:02:15', '2025-04-18 09:02:15', '2026-04-18 09:02:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 09:02:15 [0.23ms] */
select * from `oauth_access_tokens` where `id` = 'ae710fe9ab47f969241b4fdd594ca0e7110e80f5aa8a7958cc604777b8c578db63a64b223044ef9f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 09:02:15 [2.85ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'ae710fe9ab47f969241b4fdd594ca0e7110e80f5aa8a7958cc604777b8c578db63a64b223044ef9f';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 09:02:15 [1.56ms] */
select * from `oauth_access_tokens` where `id` = 'ae710fe9ab47f969241b4fdd594ca0e7110e80f5aa8a7958cc604777b8c578db63a64b223044ef9f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 09:02:15 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ae710fe9ab47f969241b4fdd594ca0e7110e80f5aa8a7958cc604777b8c578db63a64b223044ef9f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 09:02:15 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 09:02:15 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 09:02:15 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ae710fe9ab47f969241b4fdd594ca0e7110e80f5aa8a7958cc604777b8c578db63a64b223044ef9f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 09:02:15 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 09:02:15 [0.3ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'Ye001';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 09:02:47 [1.81ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 09:02:47 [0.3ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 09:02:47 [0.83ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 09:02:47 [14.93ms] */
update `userprofiles` set `login_count` = 662, `last_login` = '2025-04-18 09:02:47', `userprofiles`.`updated_at` = '2025-04-18 09:02:47' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 09:02:47 [0.45ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 09:02:47 [0.87ms] */
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-04-18 09:02:47 [0.34ms] */
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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 09:02:47 [0.25ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 09:02:47 [0.22ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-18 09:02:47 [0.24ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 09:02:47 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 09:02:47 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 09:02:47 [3.5ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('5e477d3635dfaf0d443c6106a5d998acbb096b7822a1fb99546b1aaf4a4043ee2abbdcb233d3b815', 1, 5, '[]', 0, '2025-04-18 09:02:47', '2025-04-18 09:02:47', '2026-04-18 09:02:47');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 09:02:47 [0.43ms] */
select * from `oauth_access_tokens` where `id` = '5e477d3635dfaf0d443c6106a5d998acbb096b7822a1fb99546b1aaf4a4043ee2abbdcb233d3b815' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 09:02:47 [7.39ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '5e477d3635dfaf0d443c6106a5d998acbb096b7822a1fb99546b1aaf4a4043ee2abbdcb233d3b815';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 09:02:47 [2.1ms] */
select * from `oauth_access_tokens` where `id` = '5e477d3635dfaf0d443c6106a5d998acbb096b7822a1fb99546b1aaf4a4043ee2abbdcb233d3b815' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 09:02:47 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '5e477d3635dfaf0d443c6106a5d998acbb096b7822a1fb99546b1aaf4a4043ee2abbdcb233d3b815' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 09:02:47 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 09:02:47 [0.3ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 09:02:47 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '5e477d3635dfaf0d443c6106a5d998acbb096b7822a1fb99546b1aaf4a4043ee2abbdcb233d3b815' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 09:02:47 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 09:02:47 [0.47ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'XK776';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 09:02:47 [2.15ms] */
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 `license_plate` = 'XK776' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 09:24:55 [2.17ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 09:24:55 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 09:24:55 [0.37ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 09:24:55 [7.98ms] */
update `userprofiles` set `login_count` = 663, `last_login` = '2025-04-18 09:24:55', `userprofiles`.`updated_at` = '2025-04-18 09:24:55' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 09:24:55 [0.24ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 09:24:55 [0.55ms] */
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-04-18 09:24:55 [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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 09:24:55 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 09:24:55 [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-04-18 09:24:55 [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-04-18 09:24:55 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 09:24:55 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 09:24:56 [3.21ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('1aea1935853cd089d0f472b4dbfba1c4924812bd112216bd64efca8092ce42f22e52bfe57f63a56a', 1, 5, '[]', 0, '2025-04-18 09:24:55', '2025-04-18 09:24:55', '2026-04-18 09:24:55');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 09:24:56 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1aea1935853cd089d0f472b4dbfba1c4924812bd112216bd64efca8092ce42f22e52bfe57f63a56a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 09:24:56 [2.95ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '1aea1935853cd089d0f472b4dbfba1c4924812bd112216bd64efca8092ce42f22e52bfe57f63a56a';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 09:24:56 [1.45ms] */
select * from `oauth_access_tokens` where `id` = '1aea1935853cd089d0f472b4dbfba1c4924812bd112216bd64efca8092ce42f22e52bfe57f63a56a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 09:24:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1aea1935853cd089d0f472b4dbfba1c4924812bd112216bd64efca8092ce42f22e52bfe57f63a56a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 09:24:56 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 09:24:56 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 09:24:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1aea1935853cd089d0f472b4dbfba1c4924812bd112216bd64efca8092ce42f22e52bfe57f63a56a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 09:24:56 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 09:24:56 [0.3ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'e529';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 09:24:56 [1.22ms] */
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 `license_plate` = 'e529' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 10:11:30 [1.4ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 10:11:30 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 10:11:30 [0.38ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 10:11:30 [11.51ms] */
update `userprofiles` set `login_count` = 664, `last_login` = '2025-04-18 10:11:30', `userprofiles`.`updated_at` = '2025-04-18 10:11:30' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 10:11:30 [0.26ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 10:11:30 [0.57ms] */
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-04-18 10:11:30 [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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 10:11:30 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 10:11:30 [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-04-18 10:11:30 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 10:11:30 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 10:11:30 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 10:11:30 [3.47ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('57b5fd3dc9992eea88eeceb74b4d95278007ff0bc337b0314caa7a38f659287c85efb415b25b41e6', 1, 5, '[]', 0, '2025-04-18 10:11:30', '2025-04-18 10:11:30', '2026-04-18 10:11:30');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 10:11:30 [0.38ms] */
select * from `oauth_access_tokens` where `id` = '57b5fd3dc9992eea88eeceb74b4d95278007ff0bc337b0314caa7a38f659287c85efb415b25b41e6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 10:11:30 [6.7ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '57b5fd3dc9992eea88eeceb74b4d95278007ff0bc337b0314caa7a38f659287c85efb415b25b41e6';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 10:11:30 [2.22ms] */
select * from `oauth_access_tokens` where `id` = '57b5fd3dc9992eea88eeceb74b4d95278007ff0bc337b0314caa7a38f659287c85efb415b25b41e6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 10:11:30 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '57b5fd3dc9992eea88eeceb74b4d95278007ff0bc337b0314caa7a38f659287c85efb415b25b41e6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 10:11:30 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 10:11:30 [0.31ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 10:11:30 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '57b5fd3dc9992eea88eeceb74b4d95278007ff0bc337b0314caa7a38f659287c85efb415b25b41e6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 10:11:30 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 10:11:30 [0.39ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'ke397';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 10:11:30 [0.9ms] */
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 `license_plate` = 'ke397' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 10:12:37 [2.38ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 10:12:37 [0.18ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 10:12:37 [0.33ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 10:12:37 [17.07ms] */
update `userprofiles` set `login_count` = 665, `last_login` = '2025-04-18 10:12:37', `userprofiles`.`updated_at` = '2025-04-18 10:12:37' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 10:12:37 [0.32ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 10:12:37 [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/api/login
   Query 7 - 2025-04-18 10:12:37 [0.3ms] */
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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 10:12:37 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 10:12:37 [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-04-18 10:12:37 [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-04-18 10:12:37 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 10:12:37 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 10:12:37 [3.61ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('0375503d22d611af4be946a2c60a3487f4442e2876059f91fd43476d2d820187b65b0ab68a1e74e8', 1, 5, '[]', 0, '2025-04-18 10:12:37', '2025-04-18 10:12:37', '2026-04-18 10:12:37');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 10:12:37 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '0375503d22d611af4be946a2c60a3487f4442e2876059f91fd43476d2d820187b65b0ab68a1e74e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 10:12:37 [3.06ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '0375503d22d611af4be946a2c60a3487f4442e2876059f91fd43476d2d820187b65b0ab68a1e74e8';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 10:12:37 [2.31ms] */
select * from `oauth_access_tokens` where `id` = '0375503d22d611af4be946a2c60a3487f4442e2876059f91fd43476d2d820187b65b0ab68a1e74e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 10:12:37 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '0375503d22d611af4be946a2c60a3487f4442e2876059f91fd43476d2d820187b65b0ab68a1e74e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 10:12:37 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 10:12:37 [0.3ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 10:12:37 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '0375503d22d611af4be946a2c60a3487f4442e2876059f91fd43476d2d820187b65b0ab68a1e74e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 10:12:37 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 10:12:37 [0.33ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'Gu784';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 10:12:37 [3.01ms] */
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 `license_plate` = 'Gu784' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 11:00:07 [1.73ms] */
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-04-18 11:00:07 [0.37ms] */
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-04-18 11:00:07 [0.46ms] */
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-04-18 11:00:07 [11.01ms] */
update `userprofiles` set `login_count` = 1883, `last_login` = '2025-04-18 11:00:07', `userprofiles`.`updated_at` = '2025-04-18 11:00:07' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 11:00:07 [0.57ms] */
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-04-18 11:00:07 [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-04-18 11:00:07 [0.34ms] */
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-04-18 11:00:07 [0.27ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 11:00:07 [0.2ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-18 11:00:07 [0.3ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 11:00:07 [0.36ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 11:00:07 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 11:00:07 [3.08ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('0fb22caeb677dca9f334fa725ba0e81fe7bef342facd3215af1624f58f68805842e0ad91e9e8f808', 154, 5, '[]', 0, '2025-04-18 11:00:07', '2025-04-18 11:00:07', '2026-04-18 11:00:07');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 11:00:07 [0.34ms] */
select * from `oauth_access_tokens` where `id` = '0fb22caeb677dca9f334fa725ba0e81fe7bef342facd3215af1624f58f68805842e0ad91e9e8f808' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 11:00:07 [2.87ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '0fb22caeb677dca9f334fa725ba0e81fe7bef342facd3215af1624f58f68805842e0ad91e9e8f808';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 11:00:07 [2.18ms] */
select * from `oauth_access_tokens` where `id` = '0fb22caeb677dca9f334fa725ba0e81fe7bef342facd3215af1624f58f68805842e0ad91e9e8f808' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 11:00:07 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '0fb22caeb677dca9f334fa725ba0e81fe7bef342facd3215af1624f58f68805842e0ad91e9e8f808' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 11:00:07 [0.32ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 11:00:07 [0.44ms] */
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-04-18 11:00:07 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '0fb22caeb677dca9f334fa725ba0e81fe7bef342facd3215af1624f58f68805842e0ad91e9e8f808' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 11:00:07 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 11:00:07 [0.54ms] */
select count(*) as aggregate from `party` where `id` = 33125;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 11:00:07 [0.47ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'BS724';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-04-18 11:00:07 [2.53ms] */
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-04-18 11:00:07 [2.04ms] */
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-04-18 11:00:07 [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-04-18 11:00:07 [0.41ms] */
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-04-18 11:00:07 [5.81ms] */
update `userprofiles` set `login_count` = 1884, `userprofiles`.`updated_at` = '2025-04-18 11:00:07' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 11:00:07 [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-04-18 11:00:07 [0.39ms] */
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-04-18 11:00:07 [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-04-18 11:00:07 [0.22ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 11:00:07 [0.19ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-18 11:00:07 [0.23ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 11:00:07 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 11:00:07 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 11:00:07 [2.88ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('6cc3c2197d9321c9164f13ec58415fe1b17da8a69ca29fcd11d436feac0ed9ca3bdc9183e89dbab0', 154, 5, '[]', 0, '2025-04-18 11:00:07', '2025-04-18 11:00:07', '2026-04-18 11:00:07');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 11:00:07 [0.4ms] */
select * from `oauth_access_tokens` where `id` = '6cc3c2197d9321c9164f13ec58415fe1b17da8a69ca29fcd11d436feac0ed9ca3bdc9183e89dbab0' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 11:00:07 [2.89ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '6cc3c2197d9321c9164f13ec58415fe1b17da8a69ca29fcd11d436feac0ed9ca3bdc9183e89dbab0';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 11:00:07 [2.66ms] */
select * from `oauth_access_tokens` where `id` = '6cc3c2197d9321c9164f13ec58415fe1b17da8a69ca29fcd11d436feac0ed9ca3bdc9183e89dbab0' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 11:00:07 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '6cc3c2197d9321c9164f13ec58415fe1b17da8a69ca29fcd11d436feac0ed9ca3bdc9183e89dbab0' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 11:00:07 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 11:00:07 [0.31ms] */
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-04-18 11:00:07 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '6cc3c2197d9321c9164f13ec58415fe1b17da8a69ca29fcd11d436feac0ed9ca3bdc9183e89dbab0' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 11:00:07 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 11:00:07 [0.25ms] */
select count(*) as aggregate from `party` where `id` = 64940;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 11:00:07 [0.25ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = '5656SXYVCYHC';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 9 - 2025-04-18 11:00:07 [0.87ms] */
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-04-18 11:18:47 [2.4ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 11:18:47 [0.27ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 11:18:47 [0.29ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 11:18:47 [5.96ms] */
update `userprofiles` set `login_count` = 666, `last_login` = '2025-04-18 11:18:47', `userprofiles`.`updated_at` = '2025-04-18 11:18:47' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 11:18:47 [0.27ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 11:18:47 [0.39ms] */
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-04-18 11:18:47 [0.57ms] */
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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 11:18:47 [0.39ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 11:18:47 [0.3ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-18 11:18:47 [0.27ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 11:18:47 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 11:18:47 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 11:18:47 [3.21ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('c902259b4a978c90c900740550a0014c7f5f8456138372b17fb05e8b63d6d3292eb5a4eee6c9f7c5', 1, 5, '[]', 0, '2025-04-18 11:18:47', '2025-04-18 11:18:47', '2026-04-18 11:18:47');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 11:18:47 [0.41ms] */
select * from `oauth_access_tokens` where `id` = 'c902259b4a978c90c900740550a0014c7f5f8456138372b17fb05e8b63d6d3292eb5a4eee6c9f7c5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 11:18:47 [3.08ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'c902259b4a978c90c900740550a0014c7f5f8456138372b17fb05e8b63d6d3292eb5a4eee6c9f7c5';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 11:18:47 [1.39ms] */
select * from `oauth_access_tokens` where `id` = 'c902259b4a978c90c900740550a0014c7f5f8456138372b17fb05e8b63d6d3292eb5a4eee6c9f7c5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 11:18:47 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'c902259b4a978c90c900740550a0014c7f5f8456138372b17fb05e8b63d6d3292eb5a4eee6c9f7c5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 11:18:47 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 11:18:47 [0.25ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 11:18:47 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'c902259b4a978c90c900740550a0014c7f5f8456138372b17fb05e8b63d6d3292eb5a4eee6c9f7c5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 11:18:47 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 11:18:47 [0.29ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'e3675';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 11:18:47 [1.37ms] */
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 `license_plate` = 'e3675' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 11:20:16 [2.04ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 11:20:16 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 11:20:16 [0.36ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 11:20:16 [19.38ms] */
update `userprofiles` set `login_count` = 667, `last_login` = '2025-04-18 11:20:16', `userprofiles`.`updated_at` = '2025-04-18 11:20:16' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 11:20:16 [0.33ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 11:20:16 [0.99ms] */
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-04-18 11:20:16 [0.35ms] */
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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 11:20:16 [0.21ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 11:20:16 [0.19ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-18 11:20:16 [0.22ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 11:20:16 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 11:20:16 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 11:20:16 [3.3ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('6a1d893313fe62418d55269d671a712b382252a0bea0d77e7208caa109ffd59a17dc3f3ac77192b8', 1, 5, '[]', 0, '2025-04-18 11:20:16', '2025-04-18 11:20:16', '2026-04-18 11:20:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 11:20:16 [0.43ms] */
select * from `oauth_access_tokens` where `id` = '6a1d893313fe62418d55269d671a712b382252a0bea0d77e7208caa109ffd59a17dc3f3ac77192b8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 11:20:16 [2.96ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '6a1d893313fe62418d55269d671a712b382252a0bea0d77e7208caa109ffd59a17dc3f3ac77192b8';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 11:20:17 [2.28ms] */
select * from `oauth_access_tokens` where `id` = '6a1d893313fe62418d55269d671a712b382252a0bea0d77e7208caa109ffd59a17dc3f3ac77192b8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 11:20:17 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '6a1d893313fe62418d55269d671a712b382252a0bea0d77e7208caa109ffd59a17dc3f3ac77192b8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 11:20:17 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 11:20:17 [0.34ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 11:20:17 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '6a1d893313fe62418d55269d671a712b382252a0bea0d77e7208caa109ffd59a17dc3f3ac77192b8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 11:20:17 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 11:20:17 [0.28ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'e3446';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 11:20:17 [1.97ms] */
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 `license_plate` = 'e3446' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 11:20:58 [2.11ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 11:20:58 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 11:20:58 [0.33ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 11:20:58 [5.79ms] */
update `userprofiles` set `login_count` = 668, `last_login` = '2025-04-18 11:20:58', `userprofiles`.`updated_at` = '2025-04-18 11:20:58' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 11:20:58 [0.16ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 11:20:58 [0.39ms] */
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-04-18 11:20:58 [0.15ms] */
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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 11:20:58 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 11:20:58 [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-04-18 11:20:58 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 11:20:58 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 11:20:58 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 11:20:58 [3.29ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('f79febfdd2fce114a749dde463c3f32ea65c3a19a935714dee9eaeb3d19a75584367e769f39ac845', 1, 5, '[]', 0, '2025-04-18 11:20:58', '2025-04-18 11:20:58', '2026-04-18 11:20:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 11:20:58 [0.32ms] */
select * from `oauth_access_tokens` where `id` = 'f79febfdd2fce114a749dde463c3f32ea65c3a19a935714dee9eaeb3d19a75584367e769f39ac845' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 11:20:58 [2.86ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'f79febfdd2fce114a749dde463c3f32ea65c3a19a935714dee9eaeb3d19a75584367e769f39ac845';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 11:20:58 [2.21ms] */
select * from `oauth_access_tokens` where `id` = 'f79febfdd2fce114a749dde463c3f32ea65c3a19a935714dee9eaeb3d19a75584367e769f39ac845' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 11:20:58 [0.31ms] */
select * from `oauth_access_tokens` where `id` = 'f79febfdd2fce114a749dde463c3f32ea65c3a19a935714dee9eaeb3d19a75584367e769f39ac845' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 11:20:58 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 11:20:58 [0.34ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 11:20:58 [0.3ms] */
select * from `oauth_access_tokens` where `id` = 'f79febfdd2fce114a749dde463c3f32ea65c3a19a935714dee9eaeb3d19a75584367e769f39ac845' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 11:20:58 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 11:20:58 [0.27ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'vi860';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 11:20:58 [1.08ms] */
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 `license_plate` = 'vi860' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 11:32:28 [1.36ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 11:32:28 [0.17ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 11:32:28 [0.48ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 11:32:28 [6.86ms] */
update `userprofiles` set `login_count` = 669, `last_login` = '2025-04-18 11:32:28', `userprofiles`.`updated_at` = '2025-04-18 11:32:28' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 11:32:28 [0.25ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 11:32:28 [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-04-18 11:32:28 [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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 11:32:28 [0.25ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 11:32:28 [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-04-18 11:32:28 [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-04-18 11:32:28 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 11:32:28 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 11:32:28 [3.74ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('7fdb10cbc26e579b4505a85bd14de3c62222f9452dae4c4e2ca8430c3916706a2c709c28221fa03e', 1, 5, '[]', 0, '2025-04-18 11:32:28', '2025-04-18 11:32:28', '2026-04-18 11:32:28');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 11:32:28 [0.57ms] */
select * from `oauth_access_tokens` where `id` = '7fdb10cbc26e579b4505a85bd14de3c62222f9452dae4c4e2ca8430c3916706a2c709c28221fa03e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 11:32:28 [3.5ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '7fdb10cbc26e579b4505a85bd14de3c62222f9452dae4c4e2ca8430c3916706a2c709c28221fa03e';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 11:32:29 [2.36ms] */
select * from `oauth_access_tokens` where `id` = '7fdb10cbc26e579b4505a85bd14de3c62222f9452dae4c4e2ca8430c3916706a2c709c28221fa03e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 11:32:29 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '7fdb10cbc26e579b4505a85bd14de3c62222f9452dae4c4e2ca8430c3916706a2c709c28221fa03e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 11:32:29 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 11:32:29 [0.35ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 11:32:29 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '7fdb10cbc26e579b4505a85bd14de3c62222f9452dae4c4e2ca8430c3916706a2c709c28221fa03e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 11:32:29 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 11:32:29 [0.31ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'e4574';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 11:32:29 [1.15ms] */
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 `license_plate` = 'e4574' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 11:37:35 [2.15ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 11:37:36 [0.17ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 11:37:36 [0.31ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 11:37:36 [11.85ms] */
update `userprofiles` set `login_count` = 670, `last_login` = '2025-04-18 11:37:36', `userprofiles`.`updated_at` = '2025-04-18 11:37:36' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 11:37:36 [0.17ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 11:37:36 [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-04-18 11:37:36 [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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 11:37:36 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 11:37:36 [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-04-18 11:37:36 [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-04-18 11:37:36 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 11:37:36 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 11:37:36 [3.47ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('90ac1a673a1a6a3a958dab90df83c2a3009929f2bdc10a7c5669fd5636fabf2ca46fd15f65233c98', 1, 5, '[]', 0, '2025-04-18 11:37:36', '2025-04-18 11:37:36', '2026-04-18 11:37:36');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 11:37:36 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '90ac1a673a1a6a3a958dab90df83c2a3009929f2bdc10a7c5669fd5636fabf2ca46fd15f65233c98' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 11:37:36 [2.86ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '90ac1a673a1a6a3a958dab90df83c2a3009929f2bdc10a7c5669fd5636fabf2ca46fd15f65233c98';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 11:37:36 [1.45ms] */
select * from `oauth_access_tokens` where `id` = '90ac1a673a1a6a3a958dab90df83c2a3009929f2bdc10a7c5669fd5636fabf2ca46fd15f65233c98' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 11:37:36 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '90ac1a673a1a6a3a958dab90df83c2a3009929f2bdc10a7c5669fd5636fabf2ca46fd15f65233c98' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 11:37:36 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 11:37:36 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 11:37:36 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '90ac1a673a1a6a3a958dab90df83c2a3009929f2bdc10a7c5669fd5636fabf2ca46fd15f65233c98' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 11:37:36 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 11:37:36 [0.3ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'kh849';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 11:37:36 [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 `license_plate` = 'kh849' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 11:39:30 [1.37ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 11:39:30 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 11:39:30 [0.34ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 11:39:30 [11.36ms] */
update `userprofiles` set `login_count` = 671, `last_login` = '2025-04-18 11:39:30', `userprofiles`.`updated_at` = '2025-04-18 11:39:30' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 11:39:30 [0.33ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 11:39:30 [0.57ms] */
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-04-18 11:39:30 [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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 11:39:30 [0.15ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 11:39:30 [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-04-18 11:39:30 [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-04-18 11:39:30 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 11:39:30 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 11:39:30 [6.62ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('07b5f5499f1454a7869fe0144a9a7524941e32c44cc75a7c6fed16eab23b2a37c9a477e1d00bb839', 1, 5, '[]', 0, '2025-04-18 11:39:30', '2025-04-18 11:39:30', '2026-04-18 11:39:30');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 11:39:30 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '07b5f5499f1454a7869fe0144a9a7524941e32c44cc75a7c6fed16eab23b2a37c9a477e1d00bb839' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 11:39:30 [3.17ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '07b5f5499f1454a7869fe0144a9a7524941e32c44cc75a7c6fed16eab23b2a37c9a477e1d00bb839';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 11:39:30 [1.43ms] */
select * from `oauth_access_tokens` where `id` = '07b5f5499f1454a7869fe0144a9a7524941e32c44cc75a7c6fed16eab23b2a37c9a477e1d00bb839' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 11:39:30 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '07b5f5499f1454a7869fe0144a9a7524941e32c44cc75a7c6fed16eab23b2a37c9a477e1d00bb839' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 11:39:30 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 11:39:30 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 11:39:30 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '07b5f5499f1454a7869fe0144a9a7524941e32c44cc75a7c6fed16eab23b2a37c9a477e1d00bb839' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 11:39:30 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 11:39:30 [0.3ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 22247;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 11:39:30 [0.73ms] */
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 `license_plate` = 22247 and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 11:40:00 [1.34ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 11:40:00 [0.35ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 11:40:00 [0.34ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 11:40:00 [3.72ms] */
update `userprofiles` set `login_count` = 672, `last_login` = '2025-04-18 11:40:00', `userprofiles`.`updated_at` = '2025-04-18 11:40:00' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 11:40:00 [0.19ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 11:40:00 [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-04-18 11:40:00 [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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 11:40:00 [0.16ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 11:40:00 [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-04-18 11:40:00 [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-04-18 11:40:00 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 11:40:00 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 11:40:00 [3.26ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('2efbcdb35f64880fd070d95807645285574136c0cf04981e497d374fcdc3712568c039d3d91a67d3', 1, 5, '[]', 0, '2025-04-18 11:40:00', '2025-04-18 11:40:00', '2026-04-18 11:40:00');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 11:40:00 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '2efbcdb35f64880fd070d95807645285574136c0cf04981e497d374fcdc3712568c039d3d91a67d3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 11:40:00 [2.97ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '2efbcdb35f64880fd070d95807645285574136c0cf04981e497d374fcdc3712568c039d3d91a67d3';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 11:40:00 [1.41ms] */
select * from `oauth_access_tokens` where `id` = '2efbcdb35f64880fd070d95807645285574136c0cf04981e497d374fcdc3712568c039d3d91a67d3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 11:40:00 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '2efbcdb35f64880fd070d95807645285574136c0cf04981e497d374fcdc3712568c039d3d91a67d3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 11:40:00 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 11:40:00 [0.16ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 11:40:00 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '2efbcdb35f64880fd070d95807645285574136c0cf04981e497d374fcdc3712568c039d3d91a67d3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 11:40:00 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 11:40:00 [0.14ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 22247;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 11:40:00 [0.32ms] */
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 `license_plate` = 22247 and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 11:40:33 [1.42ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 11:40:33 [0.17ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 11:40:33 [0.33ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 11:40:33 [11.47ms] */
update `userprofiles` set `login_count` = 673, `last_login` = '2025-04-18 11:40:33', `userprofiles`.`updated_at` = '2025-04-18 11:40:33' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 11:40:33 [0.34ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 11:40:33 [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-04-18 11:40:33 [0.3ms] */
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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 11:40:33 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 11:40:33 [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-04-18 11:40:33 [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-04-18 11:40:33 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 11:40:33 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 11:40:33 [4.44ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('242c5956e5dccbe98ae329c2a3304e81829befe43ab101b116cf2f9e7df895ff609a4f466089c236', 1, 5, '[]', 0, '2025-04-18 11:40:33', '2025-04-18 11:40:33', '2026-04-18 11:40:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 11:40:33 [0.36ms] */
select * from `oauth_access_tokens` where `id` = '242c5956e5dccbe98ae329c2a3304e81829befe43ab101b116cf2f9e7df895ff609a4f466089c236' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 11:40:33 [3.41ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '242c5956e5dccbe98ae329c2a3304e81829befe43ab101b116cf2f9e7df895ff609a4f466089c236';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 11:40:33 [2.25ms] */
select * from `oauth_access_tokens` where `id` = '242c5956e5dccbe98ae329c2a3304e81829befe43ab101b116cf2f9e7df895ff609a4f466089c236' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 11:40:33 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '242c5956e5dccbe98ae329c2a3304e81829befe43ab101b116cf2f9e7df895ff609a4f466089c236' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 11:40:33 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 11:40:33 [0.34ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 11:40:33 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '242c5956e5dccbe98ae329c2a3304e81829befe43ab101b116cf2f9e7df895ff609a4f466089c236' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 11:40:33 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 11:40:33 [0.28ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 66899;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-18 21:47:25 [1.63ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-18 21:47:25 [0.27ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-18 21:47:25 [0.36ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 1 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-04-18 21:47:25 [11.45ms] */
update `userprofiles` set `login_count` = 674, `last_login` = '2025-04-18 21:47:25', `userprofiles`.`updated_at` = '2025-04-18 21:47:25' where `id` = 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-18 21:47:25 [0.54ms] */
select * from `users` where `email` = 'superadmin@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-18 21:47:25 [0.57ms] */
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-04-18 21:47:25 [0.55ms] */
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 (1) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-18 21:47:25 [0.43ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-18 21:47:25 [0.31ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-18 21:47:25 [0.42ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-18 21:47:25 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-18 21:47:25 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-18 21:47:25 [3.48ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('dc9d6264da28faf480e8f5ca1cf19a203294a55bbb2febf69de2dab1f55641ff325ad63531135d2f', 1, 5, '[]', 0, '2025-04-18 21:47:25', '2025-04-18 21:47:25', '2026-04-18 21:47:25');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-18 21:47:25 [0.38ms] */
select * from `oauth_access_tokens` where `id` = 'dc9d6264da28faf480e8f5ca1cf19a203294a55bbb2febf69de2dab1f55641ff325ad63531135d2f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-18 21:47:25 [3.26ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'dc9d6264da28faf480e8f5ca1cf19a203294a55bbb2febf69de2dab1f55641ff325ad63531135d2f';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-04-18 21:47:25 [1.52ms] */
select * from `oauth_access_tokens` where `id` = 'dc9d6264da28faf480e8f5ca1cf19a203294a55bbb2febf69de2dab1f55641ff325ad63531135d2f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-04-18 21:47:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dc9d6264da28faf480e8f5ca1cf19a203294a55bbb2febf69de2dab1f55641ff325ad63531135d2f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-04-18 21:47:25 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-04-18 21:47:25 [0.28ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-04-18 21:47:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dc9d6264da28faf480e8f5ca1cf19a203294a55bbb2febf69de2dab1f55641ff325ad63531135d2f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-04-18 21:47:25 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-04-18 21:47:25 [0.36ms] */
select count(*) as aggregate from `vehicle` where `license_plate` = 'oe217';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 8 - 2025-04-18 21:47:25 [1.53ms] */
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 `license_plate` = 'oe217' and `invoice`.`status` in ('OPEN', 'PARTIAL_PAID') and `term`.`year` <= 2025 and `term`.`quarter` <= 2 and `invoice`.`deleted_at` is null;
/*==================================================*/
