select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-09 08:19:29 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 103581 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-09 08:19:29 [0.13ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-09 08:19:29 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-09 08:19:29 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 103582 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-09 08:19:29 [0.13ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-09 08:19:29 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-09 08:19:29 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 103583 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-09 08:19:29 [0.13ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-01-09 08:19:29 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-01-09 08:19:29 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 103584 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-01-09 08:19:29 [0.13ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-01-09 08:19:29 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-01-09 08:19:29 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 103585 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-01-09 08:19:29 [0.13ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-01-09 08:19:29 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-01-09 08:19:29 [11.25ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-01-09 08:19:29' where `id` in (95286, 95287, 95288, 95289, 100354, 100355, 100356, 100357, 100358) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-01-09 08:19:29 [0.48ms] */
select * from `vehicle` where `vehicle`.`id` = 167 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-01-09 08:19:29 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-01-09 08:19:29 [0.47ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 167 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-01-09 08:19:29 [0.38ms] */
select * from `party_vehicle` where `vehicle_id` = 167 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-01-09 08:19:29 [0.44ms] */
select * from `party` where `party`.`id` = 50020 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-01-09 08:19:29 [0.31ms] */
select * from `vehicle` where `vehicle`.`id` = 167 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-01-09 08:19:29 [0.13ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-01-09 08:19:29 [0.16ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-01-09 08:19:29 [0.54ms] */
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 (50020, 2, 167, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-01-09 08:19:29 [0.31ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105284, 'INITIATED', '2025-01-09 08:19:29', 5, 5, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-01-09 08:19:29 [0.2ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 67935, `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 105284;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-01-09 08:19:29 [0.31ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (95286, 95287, 95288, 95289, 100354, 100355, 100356, 100357, 100358) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-01-09 08:19:29 [0.24ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (95286, 95287, 95288, 95289, 100354, 100355, 100356, 100357, 100358) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-01-09 08:19:29 [0.29ms] */
insert into `invoice` (`transaction_id`, `party_id`, `invoice_date`, `due_date`, `invoice_amount`, `discounts`, `total_invoice_amount`, `outstanding_balance`, `taxes`, `status`, `grouped`, `parent`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105284, 50020, '2025-01-09 08:19:29', '2025-01-09 08:19:29', 295.00, 0, 295.00, 295.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-01-09 08:19:29 [0.19ms] */
select * from `invoice` where `id` = 104841 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-01-09 08:19:29 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":105284,"party_id":50020,"invoice_amount":"295.00","invoice_date":"2025-01-09 08:19:29","due_date":"2025-01-09 08:19:29","outstanding_balance":"295.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"295.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 104841, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-01-09 08:19:29 [0.35ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (95286, 95287, 95288, 95289, 100354, 100355, 100356, 100357, 100358) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-01-09 08:19:29 [0.38ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Tax Fees', 9, 295, 295, 104841, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-01-09 08:19:29 [0.17ms] */
select * from `invoice_item` where `id` = 204785 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-01-09 08:19:29 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Tax Fees","unit_price":"295.00","quantity":9,"total_price":"295.00","invoice_id":104841}}', 5, 'App\Models\User', 204785, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-01-09 08:19:29 [0.22ms] */
update `invoice` set `invoice_number` = 'INV-679-104841733', `invoice`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104841;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-01-09 08:19:29 [0.19ms] */
select * from `invoice` where `id` = 104841 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-01-09 08:19:29 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-679-104841733"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104841, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-01-09 08:19:29 [0.2ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 95286 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-01-09 08:19:29 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2025-01-09 08:19:29' where `id` = 95286;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-01-09 08:19:29 [0.18ms] */
select * from `vehicle_tax` where `id` = 95286 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-01-09 08:19:29 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 95286, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-01-09 08:19:29 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 96585 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-01-09 08:19:29 [0.24ms] */
update `transaction` set `parent_id` = 105284, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 96585;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-01-09 08:19:29 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 95929 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-01-09 08:19:29 [0.17ms] */
update `invoice` set `parent_id` = 104841, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 08:19:29' where `id` = 95929;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-01-09 08:19:29 [0.2ms] */
select * from `invoice` where `id` = 95929 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-01-09 08:19:29 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104841,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 95929, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-01-09 08:19:29 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 96585 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-01-09 08:19:29 [0.21ms] */
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_payment
   Query 76 - 2025-01-09 08:19:29 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-01-09 08:19:29 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 78 - 2025-01-09 08:19:29 [0.39ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-01-09 08:19:29 [0.25ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-01-09 08:19:29 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (96585, 'APPROVED', '2025-01-09 08:19:29', 5, 5, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-01-09 08:19:29 [0.24ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-01-09 08:19:29 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 96585;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-01-09 08:19:29 [0.17ms] */
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_payment
   Query 84 - 2025-01-09 08:19:29 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 95929 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-01-09 08:19:29 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 95287 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-01-09 08:19:29 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2025-01-09 08:19:29' where `id` = 95287;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-01-09 08:19:29 [0.17ms] */
select * from `vehicle_tax` where `id` = 95287 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-01-09 08:19:29 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 95287, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-01-09 08:19:29 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 96586 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-01-09 08:19:29 [0.17ms] */
update `transaction` set `parent_id` = 105284, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 96586;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-01-09 08:19:29 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 95930 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-01-09 08:19:29 [0.16ms] */
update `invoice` set `parent_id` = 104841, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 08:19:29' where `id` = 95930;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-01-09 08:19:29 [0.19ms] */
select * from `invoice` where `id` = 95930 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-01-09 08:19:29 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104841,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 95930, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-01-09 08:19:29 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 96586 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-01-09 08:19:29 [0.18ms] */
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_payment
   Query 97 - 2025-01-09 08:19:29 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-01-09 08:19:29 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 99 - 2025-01-09 08:19:29 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2025-01-09 08:19:29 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (96586, 'APPROVED', '2025-01-09 08:19:29', 5, 5, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2025-01-09 08:19:29 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 102 - 2025-01-09 08:19:29 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 96586;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-01-09 08:19:29 [0.17ms] */
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_payment
   Query 104 - 2025-01-09 08:19:29 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 95930 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 105 - 2025-01-09 08:19:29 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 95288 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2025-01-09 08:19:29 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2025-01-09 08:19:29' where `id` = 95288;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 107 - 2025-01-09 08:19:29 [0.18ms] */
select * from `vehicle_tax` where `id` = 95288 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 108 - 2025-01-09 08:19:29 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 95288, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 109 - 2025-01-09 08:19:29 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 96587 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 110 - 2025-01-09 08:19:29 [0.17ms] */
update `transaction` set `parent_id` = 105284, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 96587;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 111 - 2025-01-09 08:19:29 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 95931 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 112 - 2025-01-09 08:19:29 [0.16ms] */
update `invoice` set `parent_id` = 104841, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 08:19:29' where `id` = 95931;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 113 - 2025-01-09 08:19:29 [0.18ms] */
select * from `invoice` where `id` = 95931 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 114 - 2025-01-09 08:19:29 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104841,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 95931, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 115 - 2025-01-09 08:19:29 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 96587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 116 - 2025-01-09 08:19:29 [0.17ms] */
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_payment
   Query 117 - 2025-01-09 08:19:29 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 118 - 2025-01-09 08:19:29 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 119 - 2025-01-09 08:19:29 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 120 - 2025-01-09 08:19:29 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (96587, 'APPROVED', '2025-01-09 08:19:29', 5, 5, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 121 - 2025-01-09 08:19:29 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 122 - 2025-01-09 08:19:29 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 96587;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 123 - 2025-01-09 08:19:29 [0.17ms] */
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_payment
   Query 124 - 2025-01-09 08:19:29 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 95931 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 125 - 2025-01-09 08:19:29 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 95289 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 126 - 2025-01-09 08:19:29 [0.43ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2025-01-09 08:19:29' where `id` = 95289;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 127 - 2025-01-09 08:19:29 [0.17ms] */
select * from `vehicle_tax` where `id` = 95289 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 128 - 2025-01-09 08:19:29 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 95289, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 129 - 2025-01-09 08:19:29 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 96588 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 130 - 2025-01-09 08:19:29 [0.17ms] */
update `transaction` set `parent_id` = 105284, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 96588;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 131 - 2025-01-09 08:19:29 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 95932 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 132 - 2025-01-09 08:19:29 [0.16ms] */
update `invoice` set `parent_id` = 104841, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 08:19:29' where `id` = 95932;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 133 - 2025-01-09 08:19:29 [0.18ms] */
select * from `invoice` where `id` = 95932 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 134 - 2025-01-09 08:19:29 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104841,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 95932, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 135 - 2025-01-09 08:19:29 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 96588 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 136 - 2025-01-09 08:19:29 [0.18ms] */
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_payment
   Query 137 - 2025-01-09 08:19:29 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 138 - 2025-01-09 08:19:29 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 139 - 2025-01-09 08:19:29 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 140 - 2025-01-09 08:19:29 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (96588, 'APPROVED', '2025-01-09 08:19:29', 5, 5, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 141 - 2025-01-09 08:19:29 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 142 - 2025-01-09 08:19:29 [0.24ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 96588;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 143 - 2025-01-09 08:19:29 [0.17ms] */
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_payment
   Query 144 - 2025-01-09 08:19:29 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 95932 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 145 - 2025-01-09 08:19:29 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 100354 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 146 - 2025-01-09 08:19:29 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-09 08:19:29' where `id` = 100354;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 147 - 2025-01-09 08:19:29 [0.17ms] */
select * from `vehicle_tax` where `id` = 100354 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 148 - 2025-01-09 08:19:29 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 100354, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 149 - 2025-01-09 08:19:29 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 104019 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 150 - 2025-01-09 08:19:29 [0.34ms] */
update `transaction` set `parent_id` = 105284, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104019;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 151 - 2025-01-09 08:19:29 [0.4ms] */
select * from `invoice` where `invoice`.`id` = 103581 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 152 - 2025-01-09 08:19:29 [0.3ms] */
update `invoice` set `parent_id` = 104841, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 08:19:29' where `id` = 103581;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 153 - 2025-01-09 08:19:29 [0.35ms] */
select * from `invoice` where `id` = 103581 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 154 - 2025-01-09 08:19:29 [0.31ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104841,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 103581, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 155 - 2025-01-09 08:19:29 [0.41ms] */
select * from `transaction` where `transaction`.`id` = 104019 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 156 - 2025-01-09 08:19:29 [0.34ms] */
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_payment
   Query 157 - 2025-01-09 08:19:29 [0.37ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 158 - 2025-01-09 08:19:29 [0.38ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 159 - 2025-01-09 08:19:29 [0.34ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 160 - 2025-01-09 08:19:29 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (104019, 'APPROVED', '2025-01-09 08:19:29', 5, 5, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 161 - 2025-01-09 08:19:29 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 162 - 2025-01-09 08:19:29 [0.26ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104019;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 163 - 2025-01-09 08:19:29 [0.17ms] */
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_payment
   Query 164 - 2025-01-09 08:19:29 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 103581 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 165 - 2025-01-09 08:19:29 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 100355 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 166 - 2025-01-09 08:19:29 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-09 08:19:29' where `id` = 100355;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 167 - 2025-01-09 08:19:29 [0.17ms] */
select * from `vehicle_tax` where `id` = 100355 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 168 - 2025-01-09 08:19:29 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 100355, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 169 - 2025-01-09 08:19:29 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 104020 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 170 - 2025-01-09 08:19:29 [0.17ms] */
update `transaction` set `parent_id` = 105284, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104020;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 171 - 2025-01-09 08:19:29 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 103582 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 172 - 2025-01-09 08:19:29 [0.15ms] */
update `invoice` set `parent_id` = 104841, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 08:19:29' where `id` = 103582;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 173 - 2025-01-09 08:19:29 [0.18ms] */
select * from `invoice` where `id` = 103582 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 174 - 2025-01-09 08:19:29 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104841,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 103582, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 175 - 2025-01-09 08:19:29 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 104020 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 176 - 2025-01-09 08:19:29 [0.17ms] */
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_payment
   Query 177 - 2025-01-09 08:19:29 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 178 - 2025-01-09 08:19:29 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 179 - 2025-01-09 08:19:29 [0.15ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 180 - 2025-01-09 08:19:29 [0.25ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (104020, 'APPROVED', '2025-01-09 08:19:29', 5, 5, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 181 - 2025-01-09 08:19:29 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 182 - 2025-01-09 08:19:29 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104020;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 183 - 2025-01-09 08:19:29 [0.18ms] */
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_payment
   Query 184 - 2025-01-09 08:19:29 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 103582 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 185 - 2025-01-09 08:19:29 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 100356 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 186 - 2025-01-09 08:19:29 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-09 08:19:29' where `id` = 100356;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 187 - 2025-01-09 08:19:29 [0.18ms] */
select * from `vehicle_tax` where `id` = 100356 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 188 - 2025-01-09 08:19:29 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 100356, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 189 - 2025-01-09 08:19:29 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 104021 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 190 - 2025-01-09 08:19:29 [0.17ms] */
update `transaction` set `parent_id` = 105284, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104021;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 191 - 2025-01-09 08:19:29 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 103583 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 192 - 2025-01-09 08:19:29 [0.15ms] */
update `invoice` set `parent_id` = 104841, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 08:19:29' where `id` = 103583;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 193 - 2025-01-09 08:19:29 [0.18ms] */
select * from `invoice` where `id` = 103583 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 194 - 2025-01-09 08:19:29 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104841,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 103583, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 195 - 2025-01-09 08:19:29 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 104021 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 196 - 2025-01-09 08:19:29 [0.19ms] */
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_payment
   Query 197 - 2025-01-09 08:19:29 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 198 - 2025-01-09 08:19:29 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 199 - 2025-01-09 08:19:29 [0.15ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 200 - 2025-01-09 08:19:29 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (104021, 'APPROVED', '2025-01-09 08:19:29', 5, 5, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 201 - 2025-01-09 08:19:29 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 202 - 2025-01-09 08:19:29 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104021;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 203 - 2025-01-09 08:19:29 [0.17ms] */
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_payment
   Query 204 - 2025-01-09 08:19:29 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 103583 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 205 - 2025-01-09 08:19:29 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 100357 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 206 - 2025-01-09 08:19:29 [0.55ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-09 08:19:29' where `id` = 100357;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 207 - 2025-01-09 08:19:29 [0.22ms] */
select * from `vehicle_tax` where `id` = 100357 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 208 - 2025-01-09 08:19:29 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 100357, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 209 - 2025-01-09 08:19:29 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 104022 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 210 - 2025-01-09 08:19:29 [0.18ms] */
update `transaction` set `parent_id` = 105284, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104022;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 211 - 2025-01-09 08:19:29 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 103584 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 212 - 2025-01-09 08:19:29 [0.19ms] */
update `invoice` set `parent_id` = 104841, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 08:19:29' where `id` = 103584;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 213 - 2025-01-09 08:19:29 [0.34ms] */
select * from `invoice` where `id` = 103584 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 214 - 2025-01-09 08:19:29 [0.27ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104841,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 103584, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 215 - 2025-01-09 08:19:29 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 104022 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 216 - 2025-01-09 08:19:29 [0.3ms] */
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_payment
   Query 217 - 2025-01-09 08:19:29 [0.31ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 218 - 2025-01-09 08:19:29 [0.3ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 219 - 2025-01-09 08:19:29 [0.27ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 220 - 2025-01-09 08:19:29 [0.56ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (104022, 'APPROVED', '2025-01-09 08:19:29', 5, 5, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 221 - 2025-01-09 08:19:29 [0.47ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 222 - 2025-01-09 08:19:29 [0.42ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104022;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 223 - 2025-01-09 08:19:29 [0.28ms] */
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_payment
   Query 224 - 2025-01-09 08:19:29 [0.33ms] */
select * from `invoice` where `invoice`.`id` = 103584 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 225 - 2025-01-09 08:19:29 [0.29ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 100358 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 226 - 2025-01-09 08:19:29 [0.25ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-09 08:19:29' where `id` = 100358;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 227 - 2025-01-09 08:19:29 [0.29ms] */
select * from `vehicle_tax` where `id` = 100358 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 228 - 2025-01-09 08:19:29 [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":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 100358, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 229 - 2025-01-09 08:19:29 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 104023 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 230 - 2025-01-09 08:19:29 [0.28ms] */
update `transaction` set `parent_id` = 105284, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104023;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 231 - 2025-01-09 08:19:29 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 103585 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 232 - 2025-01-09 08:19:29 [0.25ms] */
update `invoice` set `parent_id` = 104841, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 08:19:29' where `id` = 103585;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 233 - 2025-01-09 08:19:29 [0.3ms] */
select * from `invoice` where `id` = 103585 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 234 - 2025-01-09 08:19:29 [0.24ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104841,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 103585, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 235 - 2025-01-09 08:19:29 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 104023 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 236 - 2025-01-09 08:19:29 [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_payment
   Query 237 - 2025-01-09 08:19:29 [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_payment
   Query 238 - 2025-01-09 08:19:29 [0.29ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 239 - 2025-01-09 08:19:29 [0.25ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 240 - 2025-01-09 08:19:29 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (104023, 'APPROVED', '2025-01-09 08:19:29', 5, 5, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 241 - 2025-01-09 08:19:29 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 242 - 2025-01-09 08:19:29 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 104023;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 243 - 2025-01-09 08:19:29 [0.17ms] */
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_payment
   Query 244 - 2025-01-09 08:19:29 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 103585 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 245 - 2025-01-09 08:19:29 [0.18ms] */
update `transaction` set `invoice_id` = 104841, `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 105284;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 246 - 2025-01-09 08:19:29 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 105284 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 247 - 2025-01-09 08:19:29 [0.17ms] */
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_payment
   Query 248 - 2025-01-09 08:19:29 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 249 - 2025-01-09 08:19:29 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 250 - 2025-01-09 08:19:29 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105284, 'APPROVED', '2025-01-09 08:19:29', 5, 5, null, 5, 5, '2025-01-09 08:19:29', '2025-01-09 08:19:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 251 - 2025-01-09 08:19:29 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 252 - 2025-01-09 08:19:29 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 08:19:29' where `id` = 105284;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 253 - 2025-01-09 08:19:29 [0.18ms] */
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_payment
   Query 254 - 2025-01-09 08:19:29 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 104841 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 255 - 2025-01-09 08:19:29 [0.42ms] */
select `transaction_id` from `vehicle_tax` where `id` in (95286, 95287, 95288, 95289, 100354, 100355, 100356, 100357, 100358) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 256 - 2025-01-09 08:19:29 [0.7ms] */
select * from `invoice` where `transaction_id` = 96585 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 257 - 2025-01-09 08:19:29 [0.66ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 95929 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 258 - 2025-01-09 08:19:29 [0.64ms] */
select * from `invoice` where `transaction_id` = 96586 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 259 - 2025-01-09 08:19:29 [0.62ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 95930 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 260 - 2025-01-09 08:19:29 [0.66ms] */
select * from `invoice` where `transaction_id` = 96587 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 261 - 2025-01-09 08:19:29 [0.61ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 95931 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 262 - 2025-01-09 08:19:29 [0.7ms] */
select * from `invoice` where `transaction_id` = 96588 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 263 - 2025-01-09 08:19:29 [0.63ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 95932 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 264 - 2025-01-09 08:19:29 [0.68ms] */
select * from `invoice` where `transaction_id` = 104019 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 265 - 2025-01-09 08:19:29 [0.5ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103581 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 266 - 2025-01-09 08:19:29 [0.33ms] */
select * from `invoice` where `transaction_id` = 104020 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 267 - 2025-01-09 08:19:29 [0.32ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103582 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 268 - 2025-01-09 08:19:29 [0.33ms] */
select * from `invoice` where `transaction_id` = 104021 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 269 - 2025-01-09 08:19:29 [0.32ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103583 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 270 - 2025-01-09 08:19:29 [0.33ms] */
select * from `invoice` where `transaction_id` = 104022 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 271 - 2025-01-09 08:19:29 [0.32ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103584 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 272 - 2025-01-09 08:19:29 [0.33ms] */
select * from `invoice` where `transaction_id` = 104023 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 273 - 2025-01-09 08:19:29 [0.32ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103585 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 274 - 2025-01-09 08:19:29 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 275 - 2025-01-09 08:19:29 [0.12ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-09 08:19:30 [1.8ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-09 08:19:30 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-09 08:19:30 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-09 08:19:30 [0.3ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-09 08:19:30 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-09 08:19:30 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-09 08:19:30 [0.32ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-09 08:19:59 [1.4ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-09 08:19:59 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-09 08:19:59 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-09 08:19:59 [0.19ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-09 08:19:59 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-09 08:19:59 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-09 08:19:59 [0.57ms] */
select * from `payment_documents` where `payment_provider_id` = 5 and `receipt_number` = 5283176384321;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-09 08:19:59 [0.44ms] */
delete from `payment_documents` where `transaction_id` = 105284 and `type` = 'GOV_SMS_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-09 08:19:59 [14.03ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `receipt_attachment`, `updated_at`, `created_at`) values (105284, 'GOV_SMS_IMAGE', 5283176384321, 5, 'payment_confirmation/Payment-Confirmation-TR105284-ATTC-1283961775.png', '2025-01-09 08:19:59', '2025-01-09 08:19:59');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 1 - 2025-01-09 08:21:12 [1.49ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 2 - 2025-01-09 08:21:12 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 3 - 2025-01-09 08:21:12 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 4 - 2025-01-09 08:21:12 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 5 - 2025-01-09 08:21:12 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 6 - 2025-01-09 08:21:12 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 7 - 2025-01-09 08:21:12 [1.36ms] */
select * from `transaction` where `transaction`.`id` = 105284 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 8 - 2025-01-09 08:21:12 [4.36ms] */
update `transaction` set `gov_fee_sms_confirmation` = 5283176384321, `gov_fee_ar_number` = 115, `gov_fee_payment_date` = '2025-01-09 08:21:12', `transaction`.`updated_at` = '2025-01-09 08:21:12' where `id` = 105284;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 9 - 2025-01-09 08:21:12 [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): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 10 - 2025-01-09 08:21:12 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-09 08:21:46 [2.21ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-09 08:21:46 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-09 08:21:46 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-09 08:21:46 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-09 08:21:46 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-09 08:21:46 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-09 08:21:46 [0.62ms] */
select * from `payment_documents` where `payment_provider_id` = 5 and `receipt_number` = 115;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-09 08:21:46 [0.48ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 115;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 1 - 2025-01-09 08:25:22 [1.64ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 2 - 2025-01-09 08:25:22 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 3 - 2025-01-09 08:25:22 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 4 - 2025-01-09 08:25:22 [0.28ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 5 - 2025-01-09 08:25:22 [0.23ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 6 - 2025-01-09 08:25:22 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 7 - 2025-01-09 08:25:22 [1.1ms] */
select * from `transaction` where `transaction`.`id` = 105284 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 8 - 2025-01-09 08:25:22 [6.57ms] */
update `transaction` set `gov_fee_ar_number` = 117, `gov_fee_payment_date` = '2025-01-09 08:25:22', `transaction`.`updated_at` = '2025-01-09 08:25:22' where `id` = 105284;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105284
   Query 9 - 2025-01-09 08:25:22 [0.29ms] */
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/transaction/receipt/105284
   Query 10 - 2025-01-09 08:25:22 [0.22ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-01-09 08:25:27 [1.5ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-01-09 08:25:27 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-01-09 08:25:27 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-01-09 08:25:27 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-01-09 08:25:27 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-01-09 08:25:27 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-01-09 08:25:27 [6.54ms] */
select * from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-09 08:25:31 [1.48ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-09 08:25:31 [0.2ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-09 08:25:31 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-09 08:25:31 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-09 08:25:31 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-09 08:25:31 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-09 08:25:31 [1.55ms] */
select * from `payment_documents` where `payment_provider_id` = 5 and `receipt_number` = 117;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-09 08:25:31 [0.51ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 117;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-09 08:25:31 [0.54ms] */
delete from `payment_documents` where `transaction_id` = 105284 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-01-09 08:25:31 [17.53ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `receipt_attachment`, `updated_at`, `created_at`) values (105284, 'GOV_RECEIPT_IMAGE', 117, 5, 'payment_confirmation/Payment-Confirmation-TR105284-ATTC-290270847.png', '2025-01-09 08:25:31', '2025-01-09 08:25:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-09 08:25:46 [1.57ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-09 08:25:46 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-09 08:25:46 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-09 08:25:46 [0.22ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-09 08:25:46 [0.2ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-09 08:25:46 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-09 08:25:46 [0.22ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-09 08:25:46 [0.2ms] */
select `transaction_id` from `vehicle_tax` where `id` in (95286, 95287, 95288, 95289, 100354, 100355, 100356, 100357, 100358) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-09 08:25:46 [2.07ms] */
select `parent_id` from `transaction` where `id` in (96585, 96586, 96587, 96588, 104019, 104020, 104021, 104022, 104023) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-09 08:25:46 [80.84ms] */
select `id` from `transaction` where `parent_id` in (105284) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-09 08:25:46 [0.4ms] */
select * from `transaction` where `id` in (105284) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-09 08:25:46 [0.18ms] */
select `transaction_id` from `vehicle_tax` where `id` in (95286, 95287, 95288, 95289, 100354, 100355, 100356, 100357, 100358) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-09 08:25:46 [0.21ms] */
select * from `invoice` where `transaction_id` = 96585 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-09 08:25:46 [0.19ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 95929 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-09 08:25:46 [0.19ms] */
select * from `invoice` where `transaction_id` = 96586 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-09 08:25:46 [0.17ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 95930 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-01-09 08:25:46 [0.17ms] */
select * from `invoice` where `transaction_id` = 96587 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-09 08:25:46 [0.16ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 95931 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-09 08:25:46 [0.17ms] */
select * from `invoice` where `transaction_id` = 96588 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-09 08:25:46 [0.16ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 95932 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-09 08:25:46 [0.17ms] */
select * from `invoice` where `transaction_id` = 104019 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-09 08:25:46 [0.16ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103581 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-01-09 08:25:46 [0.17ms] */
select * from `invoice` where `transaction_id` = 104020 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-01-09 08:25:46 [0.16ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103582 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-09 08:25:46 [0.17ms] */
select * from `invoice` where `transaction_id` = 104021 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-09 08:25:46 [0.16ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103583 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-09 08:25:46 [0.17ms] */
select * from `invoice` where `transaction_id` = 104022 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-09 08:25:46 [0.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103584 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-09 08:25:46 [0.16ms] */
select * from `invoice` where `transaction_id` = 104023 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-09 08:25:46 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103585 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-09 08:25:46 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-09 08:25:46 [0.12ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-09 08:25:47 [1.47ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-09 08:25:47 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-09 08:25:47 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-09 08:25:47 [0.19ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-09 08:25:47 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-09 08:25:47 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-09 08:25:47 [0.19ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-09 08:26:17 [1.37ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-09 08:26:17 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-09 08:26:17 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-09 08:26:17 [0.22ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-09 08:26:17 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-09 08:26:17 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-09 08:26:17 [0.93ms] */
select * from `payment_documents` where `payment_provider_id` = 5 and `receipt_number` = 5283176384;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-09 08:26:28 [2.04ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-09 08:26:28 [0.29ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-09 08:26:28 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-09 08:26:28 [0.24ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-09 08:26:28 [0.21ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-09 08:26:28 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-09 08:26:28 [1.89ms] */
select * from `payment_documents` where `payment_provider_id` = 5 and `receipt_number` = 52831755432;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-09 08:26:28 [13.66ms] */
delete from `payment_documents` where `transaction_id` = 105284 and `type` = 'GOV_SMS_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-09 08:26:28 [3.61ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `receipt_attachment`, `updated_at`, `created_at`) values (105284, 'GOV_SMS_IMAGE', 52831755432, 5, 'payment_confirmation/Payment-Confirmation-TR105284-ATTC-1028036537.png', '2025-01-09 08:26:28', '2025-01-09 08:26:28');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:57:45 [2.52ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:57:45 [0.58ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:57:45 [0.78ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:57:45 [6.87ms] */
update `userprofiles` set `last_ip` = '142.132.202.224', `login_count` = 6632, `last_login` = '2025-01-09 08:57:45', `userprofiles`.`updated_at` = '2025-01-09 08:57:45' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:57:45 [0.36ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:57:45 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:57:45 [1.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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:57:45 [0.7ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:57:45 [0.29ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-01-09 08:57:45 [0.45ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:57:45 [0.46ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:57:45 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:57:45 [3.81ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('2c8da479e85392624cdadacc415b7928e897090e1c050b29fa450bcd70c574e0c385b0d78c25f906', 116, 3, '[]', 0, '2025-01-09 08:57:45', '2025-01-09 08:57:45', '2026-01-09 08:57:45');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:57:45 [9.74ms] */
select * from `oauth_access_tokens` where `id` = '2c8da479e85392624cdadacc415b7928e897090e1c050b29fa450bcd70c574e0c385b0d78c25f906' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:57:45 [2.89ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '2c8da479e85392624cdadacc415b7928e897090e1c050b29fa450bcd70c574e0c385b0d78c25f906';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 1 - 2025-01-09 08:57:45 [2.17ms] */
select * from `oauth_access_tokens` where `id` = '2c8da479e85392624cdadacc415b7928e897090e1c050b29fa450bcd70c574e0c385b0d78c25f906' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 2 - 2025-01-09 08:57:45 [0.32ms] */
select * from `oauth_access_tokens` where `id` = '2c8da479e85392624cdadacc415b7928e897090e1c050b29fa450bcd70c574e0c385b0d78c25f906' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 3 - 2025-01-09 08:57:45 [0.43ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 4 - 2025-01-09 08:57:45 [0.45ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 5 - 2025-01-09 08:57:45 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '2c8da479e85392624cdadacc415b7928e897090e1c050b29fa450bcd70c574e0c385b0d78c25f906' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 6 - 2025-01-09 08:57:45 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 7 - 2025-01-09 08:57:45 [51.93ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, 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 owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `party_vehicle` left join `vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`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' where `party_id` = 27946 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:57:46 [1.47ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:57:46 [0.2ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:57:46 [0.42ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:57:46 [3.11ms] */
update `userprofiles` set `login_count` = 6633, `last_login` = '2025-01-09 08:57:46', `userprofiles`.`updated_at` = '2025-01-09 08:57:46' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:57:46 [0.17ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:57:46 [0.39ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:57:46 [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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:57:46 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:57:46 [0.17ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-01-09 08:57:46 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:57:46 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:57:46 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:57:46 [3.24ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4c73e83d49cd920e9374819b4c3ec7c37b9ffde4b202ea433e52eadb1f717f6186046b84fbee42c6', 116, 3, '[]', 0, '2025-01-09 08:57:46', '2025-01-09 08:57:46', '2026-01-09 08:57:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:57:46 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '4c73e83d49cd920e9374819b4c3ec7c37b9ffde4b202ea433e52eadb1f717f6186046b84fbee42c6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:57:46 [2.65ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4c73e83d49cd920e9374819b4c3ec7c37b9ffde4b202ea433e52eadb1f717f6186046b84fbee42c6';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 1 - 2025-01-09 08:57:47 [3.17ms] */
select * from `oauth_access_tokens` where `id` = '4c73e83d49cd920e9374819b4c3ec7c37b9ffde4b202ea433e52eadb1f717f6186046b84fbee42c6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 2 - 2025-01-09 08:57:47 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4c73e83d49cd920e9374819b4c3ec7c37b9ffde4b202ea433e52eadb1f717f6186046b84fbee42c6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 3 - 2025-01-09 08:57:47 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 4 - 2025-01-09 08:57:47 [0.32ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 5 - 2025-01-09 08:57:47 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4c73e83d49cd920e9374819b4c3ec7c37b9ffde4b202ea433e52eadb1f717f6186046b84fbee42c6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 6 - 2025-01-09 08:57:47 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 7 - 2025-01-09 08:57:47 [0.4ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, 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 owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `party_vehicle` left join `vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`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' where `party_id` = 27946 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:57:48 [2.16ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:57:48 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:57:48 [0.37ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:57:48 [5.88ms] */
update `userprofiles` set `login_count` = 6634, `last_login` = '2025-01-09 08:57:48', `userprofiles`.`updated_at` = '2025-01-09 08:57:48' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:57:48 [0.24ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:57:48 [0.56ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:57:48 [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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:57:48 [0.23ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:57:48 [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-01-09 08:57:48 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:57:48 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:57:48 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:57:48 [3.13ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('dae3c6e7841efdcc01dc55666cea155b79f20b32ee64098804a5e7f3e452c49ab966e97266983525', 116, 3, '[]', 0, '2025-01-09 08:57:48', '2025-01-09 08:57:48', '2026-01-09 08:57:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:57:48 [0.38ms] */
select * from `oauth_access_tokens` where `id` = 'dae3c6e7841efdcc01dc55666cea155b79f20b32ee64098804a5e7f3e452c49ab966e97266983525' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:57:48 [4.11ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'dae3c6e7841efdcc01dc55666cea155b79f20b32ee64098804a5e7f3e452c49ab966e97266983525';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-09 08:57:48 [1.49ms] */
select * from `oauth_access_tokens` where `id` = 'dae3c6e7841efdcc01dc55666cea155b79f20b32ee64098804a5e7f3e452c49ab966e97266983525' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-09 08:57:48 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae3c6e7841efdcc01dc55666cea155b79f20b32ee64098804a5e7f3e452c49ab966e97266983525' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-09 08:57:48 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-09 08:57:48 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-09 08:57:48 [0.2ms] */
select * from `oauth_access_tokens` where `id` = 'dae3c6e7841efdcc01dc55666cea155b79f20b32ee64098804a5e7f3e452c49ab966e97266983525' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-09 08:57:48 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-09 08:57:48 [7.62ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, 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 owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`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' where `license_plate` = 'GD1221' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:57:49 [2.27ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:57:49 [0.16ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:57:49 [0.37ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:57:49 [6.31ms] */
update `userprofiles` set `login_count` = 6635, `last_login` = '2025-01-09 08:57:49', `userprofiles`.`updated_at` = '2025-01-09 08:57:49' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:57:49 [0.16ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:57:49 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:57:49 [0.19ms] */
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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:57:49 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:57:49 [0.13ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-01-09 08:57:49 [0.22ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:57:49 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:57:49 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:57:49 [4.52ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('bbc1f2e227e24d55f0e552853dd49e0887757074cb5cba7f99c07e805fa4779cd78bd758c1dcb0d2', 116, 3, '[]', 0, '2025-01-09 08:57:49', '2025-01-09 08:57:49', '2026-01-09 08:57:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:57:49 [0.45ms] */
select * from `oauth_access_tokens` where `id` = 'bbc1f2e227e24d55f0e552853dd49e0887757074cb5cba7f99c07e805fa4779cd78bd758c1dcb0d2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:57:49 [2.97ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'bbc1f2e227e24d55f0e552853dd49e0887757074cb5cba7f99c07e805fa4779cd78bd758c1dcb0d2';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-01-09 08:57:50 [2.43ms] */
select * from `oauth_access_tokens` where `id` = 'bbc1f2e227e24d55f0e552853dd49e0887757074cb5cba7f99c07e805fa4779cd78bd758c1dcb0d2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-01-09 08:57:50 [0.3ms] */
select * from `oauth_access_tokens` where `id` = 'bbc1f2e227e24d55f0e552853dd49e0887757074cb5cba7f99c07e805fa4779cd78bd758c1dcb0d2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-01-09 08:57:50 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-01-09 08:57:50 [0.3ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-01-09 08:57:50 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'bbc1f2e227e24d55f0e552853dd49e0887757074cb5cba7f99c07e805fa4779cd78bd758c1dcb0d2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-01-09 08:57:50 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-01-09 08:57:50 [3.95ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_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, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`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 `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 27946 and `vehicle`.`license_plate` = 'GD1221' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:57:51 [1.51ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:57:51 [0.24ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:57:51 [0.34ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:57:51 [14.22ms] */
update `userprofiles` set `login_count` = 6636, `last_login` = '2025-01-09 08:57:51', `userprofiles`.`updated_at` = '2025-01-09 08:57:51' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:57:51 [0.3ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:57:51 [0.65ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:57:51 [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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:57:51 [0.23ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:57:51 [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-01-09 08:57:51 [0.31ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:57:51 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:57:51 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:57:51 [3.41ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('56e3b018c964c55607252b427f747083dd5840475a9a6bb593d7b57d07760d1d504ddaed557a8498', 116, 3, '[]', 0, '2025-01-09 08:57:51', '2025-01-09 08:57:51', '2026-01-09 08:57:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:57:51 [1.97ms] */
select * from `oauth_access_tokens` where `id` = '56e3b018c964c55607252b427f747083dd5840475a9a6bb593d7b57d07760d1d504ddaed557a8498' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:57:51 [2.77ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '56e3b018c964c55607252b427f747083dd5840475a9a6bb593d7b57d07760d1d504ddaed557a8498';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-01-09 08:57:52 [1.48ms] */
select * from `oauth_access_tokens` where `id` = '56e3b018c964c55607252b427f747083dd5840475a9a6bb593d7b57d07760d1d504ddaed557a8498' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-01-09 08:57:52 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '56e3b018c964c55607252b427f747083dd5840475a9a6bb593d7b57d07760d1d504ddaed557a8498' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-01-09 08:57:52 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-01-09 08:57:52 [0.16ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-01-09 08:57:52 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '56e3b018c964c55607252b427f747083dd5840475a9a6bb593d7b57d07760d1d504ddaed557a8498' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-01-09 08:57:52 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-01-09 08:57:52 [1.23ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `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, `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`, `roles`.`name` as `role`, 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` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `roles`.`name` = 'payment' and `invoice`.`total_invoice_amount` > 0 and `invoice`.`party_id` = 27946 and `license_plate` = 'GD1221' and `invoice`.`parent` = 'N' and `invoice`.`grouped` = 'N' or `invoice`.`party_id` = 27946 and `license_plate` = 'GD1221' and `invoice`.`parent` = 'Y' and `invoice`.`grouped` = 'N' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:58:26 [1.64ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:58:26 [0.23ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:58:26 [1.86ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:58:26 [12.22ms] */
update `userprofiles` set `login_count` = 6637, `last_login` = '2025-01-09 08:58:26', `userprofiles`.`updated_at` = '2025-01-09 08:58:26' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:58:26 [0.31ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:58:26 [0.65ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:58:26 [0.22ms] */
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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:58:26 [0.18ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:58:26 [0.15ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-01-09 08:58:26 [0.18ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:58:26 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:58:26 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:58:26 [6.23ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('5de1a6052e0887d8a9252befaf55a5625f4662bd38da254893669eb60e328fdc093f189df81b433b', 116, 3, '[]', 0, '2025-01-09 08:58:26', '2025-01-09 08:58:26', '2026-01-09 08:58:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:58:26 [0.56ms] */
select * from `oauth_access_tokens` where `id` = '5de1a6052e0887d8a9252befaf55a5625f4662bd38da254893669eb60e328fdc093f189df81b433b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:58:26 [4.37ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '5de1a6052e0887d8a9252befaf55a5625f4662bd38da254893669eb60e328fdc093f189df81b433b';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 1 - 2025-01-09 08:58:26 [2.17ms] */
select * from `oauth_access_tokens` where `id` = '5de1a6052e0887d8a9252befaf55a5625f4662bd38da254893669eb60e328fdc093f189df81b433b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 2 - 2025-01-09 08:58:26 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '5de1a6052e0887d8a9252befaf55a5625f4662bd38da254893669eb60e328fdc093f189df81b433b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 3 - 2025-01-09 08:58:26 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 4 - 2025-01-09 08:58:26 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 5 - 2025-01-09 08:58:26 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '5de1a6052e0887d8a9252befaf55a5625f4662bd38da254893669eb60e328fdc093f189df81b433b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 6 - 2025-01-09 08:58:26 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 7 - 2025-01-09 08:58:26 [9.79ms] */
select `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, `vehicle`.`license_plate`, `payment`.`id` as `payment_id`, `payment`.`payment_amount`, `external_payment_reference_no` as `payment_reference_number`, `payment`.`payment_date`, `payment_method`.`name` as `payment_method`, `payment`.`paid_by`, `payment`.`paid_by_mobile` from `payment` left join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` left join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` left join `transaction` on `transaction`.`invoice_id` = `invoice`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `payment_method` on `payment`.`payment_method_id` = `payment_method`.`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' where `transaction`.`party_id` = 58670 and `vehicle`.`license_plate` = 'ICDCHJ' and `payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:58:32 [1.8ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:58:32 [0.25ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:58:32 [0.43ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:58:32 [6.4ms] */
update `userprofiles` set `login_count` = 6638, `last_login` = '2025-01-09 08:58:32', `userprofiles`.`updated_at` = '2025-01-09 08:58:32' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:58:32 [0.17ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:58:32 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:58:32 [0.17ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:58: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-01-09 08:58: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-01-09 08:58:32 [0.22ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:58:32 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:58:32 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:58:32 [3.61ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('aaee4382ad03fb31a6d4fb94cf343bcd7d35720781d052cd483b5126e9d68e727bb7e8bae17546fd', 116, 3, '[]', 0, '2025-01-09 08:58:32', '2025-01-09 08:58:32', '2026-01-09 08:58:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:58:32 [0.38ms] */
select * from `oauth_access_tokens` where `id` = 'aaee4382ad03fb31a6d4fb94cf343bcd7d35720781d052cd483b5126e9d68e727bb7e8bae17546fd' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:58:32 [3.35ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'aaee4382ad03fb31a6d4fb94cf343bcd7d35720781d052cd483b5126e9d68e727bb7e8bae17546fd';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 1 - 2025-01-09 08:58:33 [2.02ms] */
select * from `oauth_access_tokens` where `id` = 'aaee4382ad03fb31a6d4fb94cf343bcd7d35720781d052cd483b5126e9d68e727bb7e8bae17546fd' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 2 - 2025-01-09 08:58:33 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'aaee4382ad03fb31a6d4fb94cf343bcd7d35720781d052cd483b5126e9d68e727bb7e8bae17546fd' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 3 - 2025-01-09 08:58:33 [0.28ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 4 - 2025-01-09 08:58:33 [0.3ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 5 - 2025-01-09 08:58:33 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'aaee4382ad03fb31a6d4fb94cf343bcd7d35720781d052cd483b5126e9d68e727bb7e8bae17546fd' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 6 - 2025-01-09 08:58:33 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 7 - 2025-01-09 08:58:33 [0.6ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, 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 owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `party_vehicle` left join `vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`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' where `party_id` = 27946 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:58:34 [1.51ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:58:34 [0.29ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:58:34 [0.45ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:58:34 [6.2ms] */
update `userprofiles` set `login_count` = 6639, `last_login` = '2025-01-09 08:58:34', `userprofiles`.`updated_at` = '2025-01-09 08:58:34' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:58:34 [0.29ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:58:34 [0.63ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:58:34 [0.25ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:58:34 [0.22ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:58:34 [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-01-09 08:58:34 [0.24ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:58:34 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:58:34 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:58:34 [3.05ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4ebbb7e8069e83e377dec5447a8a29f9c2aea19a440d055a39ebbf899a5988eb864c5609a327c720', 116, 3, '[]', 0, '2025-01-09 08:58:34', '2025-01-09 08:58:34', '2026-01-09 08:58:34');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:58:34 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4ebbb7e8069e83e377dec5447a8a29f9c2aea19a440d055a39ebbf899a5988eb864c5609a327c720' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:58:34 [2.83ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4ebbb7e8069e83e377dec5447a8a29f9c2aea19a440d055a39ebbf899a5988eb864c5609a327c720';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 1 - 2025-01-09 08:58:34 [1.43ms] */
select * from `oauth_access_tokens` where `id` = '4ebbb7e8069e83e377dec5447a8a29f9c2aea19a440d055a39ebbf899a5988eb864c5609a327c720' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 2 - 2025-01-09 08:58:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4ebbb7e8069e83e377dec5447a8a29f9c2aea19a440d055a39ebbf899a5988eb864c5609a327c720' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 3 - 2025-01-09 08:58:34 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 4 - 2025-01-09 08:58:34 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 5 - 2025-01-09 08:58:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4ebbb7e8069e83e377dec5447a8a29f9c2aea19a440d055a39ebbf899a5988eb864c5609a327c720' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 6 - 2025-01-09 08:58:34 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 7 - 2025-01-09 08:58:34 [0.4ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, 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 owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `party_vehicle` left join `vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`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' where `party_id` = 27946 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:58:35 [2.32ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:58:35 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:58:35 [0.42ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:58:35 [5.88ms] */
update `userprofiles` set `login_count` = 6640, `last_login` = '2025-01-09 08:58:35', `userprofiles`.`updated_at` = '2025-01-09 08:58:35' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:58:35 [0.24ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:58:35 [0.56ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:58:35 [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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:58:35 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:58:35 [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-01-09 08:58:35 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:58:35 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:58:35 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:58:35 [3.06ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('890331bec34a55acb26361d34ff9c795104de14891f8ba1dc30aeaf012359522a4c1d75c4df68ac2', 116, 3, '[]', 0, '2025-01-09 08:58:35', '2025-01-09 08:58:35', '2026-01-09 08:58:35');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:58:35 [0.32ms] */
select * from `oauth_access_tokens` where `id` = '890331bec34a55acb26361d34ff9c795104de14891f8ba1dc30aeaf012359522a4c1d75c4df68ac2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:58:35 [2.76ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '890331bec34a55acb26361d34ff9c795104de14891f8ba1dc30aeaf012359522a4c1d75c4df68ac2';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-09 08:58:35 [1.37ms] */
select * from `oauth_access_tokens` where `id` = '890331bec34a55acb26361d34ff9c795104de14891f8ba1dc30aeaf012359522a4c1d75c4df68ac2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-09 08:58:35 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '890331bec34a55acb26361d34ff9c795104de14891f8ba1dc30aeaf012359522a4c1d75c4df68ac2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-09 08:58:35 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-09 08:58:35 [0.16ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-09 08:58:35 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '890331bec34a55acb26361d34ff9c795104de14891f8ba1dc30aeaf012359522a4c1d75c4df68ac2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-09 08:58:35 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-09 08:58:35 [0.4ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, 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 owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`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' where `license_plate` = 'GD1221' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:58:36 [1.78ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:58:36 [0.29ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:58:36 [0.43ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:58:36 [6.44ms] */
update `userprofiles` set `login_count` = 6641, `last_login` = '2025-01-09 08:58:36', `userprofiles`.`updated_at` = '2025-01-09 08:58:36' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:58:36 [0.17ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:58:36 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:58: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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:58: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-01-09 08:58: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-01-09 08:58:36 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:58:36 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:58:36 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:58:36 [3.51ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('225cba437ef1af8e8b8bb26169fffac9f114ae847ed397d7dfd4fbe240d52ff9ee62bb134d08ea3c', 116, 3, '[]', 0, '2025-01-09 08:58:36', '2025-01-09 08:58:36', '2026-01-09 08:58:36');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:58:36 [0.36ms] */
select * from `oauth_access_tokens` where `id` = '225cba437ef1af8e8b8bb26169fffac9f114ae847ed397d7dfd4fbe240d52ff9ee62bb134d08ea3c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:58:36 [3.34ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '225cba437ef1af8e8b8bb26169fffac9f114ae847ed397d7dfd4fbe240d52ff9ee62bb134d08ea3c';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-01-09 08:58:36 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '225cba437ef1af8e8b8bb26169fffac9f114ae847ed397d7dfd4fbe240d52ff9ee62bb134d08ea3c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-01-09 08:58:36 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '225cba437ef1af8e8b8bb26169fffac9f114ae847ed397d7dfd4fbe240d52ff9ee62bb134d08ea3c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-01-09 08:58:36 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-01-09 08:58:36 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-01-09 08:58:36 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '225cba437ef1af8e8b8bb26169fffac9f114ae847ed397d7dfd4fbe240d52ff9ee62bb134d08ea3c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-01-09 08:58:36 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-01-09 08:58:36 [0.35ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_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, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`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 `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 27946 and `vehicle`.`license_plate` = 'GD1221' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:58:37 [1.48ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:58:37 [0.23ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:58:37 [0.49ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:58:37 [3.52ms] */
update `userprofiles` set `login_count` = 6642, `last_login` = '2025-01-09 08:58:37', `userprofiles`.`updated_at` = '2025-01-09 08:58:37' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:58:37 [0.27ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:58:37 [0.67ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:58:37 [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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:58:37 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:58:37 [0.15ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-01-09 08:58:37 [0.17ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:58:37 [0.31ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:58:37 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:58:37 [3.68ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('c8a332d6bb6ea88f82543c946cdd22bd105de3d4e72fdf552a218a58de88e6f6dfa9e9e3eb70660c', 116, 3, '[]', 0, '2025-01-09 08:58:37', '2025-01-09 08:58:37', '2026-01-09 08:58:37');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:58:37 [0.64ms] */
select * from `oauth_access_tokens` where `id` = 'c8a332d6bb6ea88f82543c946cdd22bd105de3d4e72fdf552a218a58de88e6f6dfa9e9e3eb70660c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:58:37 [3.23ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'c8a332d6bb6ea88f82543c946cdd22bd105de3d4e72fdf552a218a58de88e6f6dfa9e9e3eb70660c';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-01-09 08:58:37 [1.47ms] */
select * from `oauth_access_tokens` where `id` = 'c8a332d6bb6ea88f82543c946cdd22bd105de3d4e72fdf552a218a58de88e6f6dfa9e9e3eb70660c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-01-09 08:58:37 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'c8a332d6bb6ea88f82543c946cdd22bd105de3d4e72fdf552a218a58de88e6f6dfa9e9e3eb70660c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-01-09 08:58:37 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-01-09 08:58:37 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-01-09 08:58:37 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'c8a332d6bb6ea88f82543c946cdd22bd105de3d4e72fdf552a218a58de88e6f6dfa9e9e3eb70660c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-01-09 08:58:37 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-01-09 08:58:37 [0.33ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `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, `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`, `roles`.`name` as `role`, 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` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `roles`.`name` = 'payment' and `invoice`.`total_invoice_amount` > 0 and `invoice`.`party_id` = 27946 and `license_plate` = 'GD1221' and `invoice`.`parent` = 'N' and `invoice`.`grouped` = 'N' or `invoice`.`party_id` = 27946 and `license_plate` = 'GD1221' and `invoice`.`parent` = 'Y' and `invoice`.`grouped` = 'N' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:58:44 [1.55ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:58:44 [0.31ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:58:44 [0.52ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:58:44 [2.77ms] */
update `userprofiles` set `login_count` = 6643, `last_login` = '2025-01-09 08:58:44', `userprofiles`.`updated_at` = '2025-01-09 08:58:44' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:58:44 [0.18ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:58:44 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:58:44 [0.17ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:58:44 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:58:44 [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-01-09 08:58:44 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:58:44 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:58:44 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:58:44 [4.75ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4a6b4f4a7cb4278fd5a342c12b0dbda6b00afeadf66d94a0a11af83892ba774ffdb228b7a32153ba', 116, 3, '[]', 0, '2025-01-09 08:58:44', '2025-01-09 08:58:44', '2026-01-09 08:58:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:58:44 [0.41ms] */
select * from `oauth_access_tokens` where `id` = '4a6b4f4a7cb4278fd5a342c12b0dbda6b00afeadf66d94a0a11af83892ba774ffdb228b7a32153ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:58:44 [2.82ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4a6b4f4a7cb4278fd5a342c12b0dbda6b00afeadf66d94a0a11af83892ba774ffdb228b7a32153ba';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-09 08:58:44 [1.44ms] */
select * from `oauth_access_tokens` where `id` = '4a6b4f4a7cb4278fd5a342c12b0dbda6b00afeadf66d94a0a11af83892ba774ffdb228b7a32153ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-09 08:58:44 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4a6b4f4a7cb4278fd5a342c12b0dbda6b00afeadf66d94a0a11af83892ba774ffdb228b7a32153ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-09 08:58:44 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-09 08:58:44 [0.23ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-09 08:58:44 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '4a6b4f4a7cb4278fd5a342c12b0dbda6b00afeadf66d94a0a11af83892ba774ffdb228b7a32153ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-09 08:58:44 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-09 08:58:44 [1.64ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, 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 owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`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' where `license_plate` = 'SDF4234' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:58:45 [2.07ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:58:45 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:58:45 [0.4ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:58:45 [7.23ms] */
update `userprofiles` set `login_count` = 6644, `last_login` = '2025-01-09 08:58:45', `userprofiles`.`updated_at` = '2025-01-09 08:58:45' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:58:45 [0.31ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:58:45 [0.75ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:58:45 [0.31ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:58:45 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:58:45 [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-01-09 08:58:45 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:58:45 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:58:45 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:58:45 [3.26ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('dcedd4b00ca1161f53706c86ce3446fa6d8109b9d7119067f2ebeb7d1aa43c5db6e2c2918b3a2ba6', 116, 3, '[]', 0, '2025-01-09 08:58:45', '2025-01-09 08:58:45', '2026-01-09 08:58:45');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:58:45 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'dcedd4b00ca1161f53706c86ce3446fa6d8109b9d7119067f2ebeb7d1aa43c5db6e2c2918b3a2ba6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:58:45 [2.72ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'dcedd4b00ca1161f53706c86ce3446fa6d8109b9d7119067f2ebeb7d1aa43c5db6e2c2918b3a2ba6';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-01-09 08:58:45 [1.48ms] */
select * from `oauth_access_tokens` where `id` = 'dcedd4b00ca1161f53706c86ce3446fa6d8109b9d7119067f2ebeb7d1aa43c5db6e2c2918b3a2ba6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-01-09 08:58:45 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dcedd4b00ca1161f53706c86ce3446fa6d8109b9d7119067f2ebeb7d1aa43c5db6e2c2918b3a2ba6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-01-09 08:58:45 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-01-09 08:58:45 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-01-09 08:58:45 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dcedd4b00ca1161f53706c86ce3446fa6d8109b9d7119067f2ebeb7d1aa43c5db6e2c2918b3a2ba6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-01-09 08:58:45 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-01-09 08:58:45 [1.23ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_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, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`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 `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 27946 and `vehicle`.`license_plate` = 'SDF4234' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:58:46 [1.49ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:58:46 [0.27ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:58:46 [0.41ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:58:46 [5.83ms] */
update `userprofiles` set `login_count` = 6645, `last_login` = '2025-01-09 08:58:46', `userprofiles`.`updated_at` = '2025-01-09 08:58:46' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:58:46 [0.18ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:58:46 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:58:46 [0.19ms] */
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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:58:46 [0.31ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:58:46 [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-01-09 08:58:46 [0.24ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:58:46 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:58:46 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:58:46 [3.24ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('d7e32016085ff3855b07d1f611a3d3f42c7c5ca88f429b493e8cb132bf53fc6f04a20a46816f6277', 116, 3, '[]', 0, '2025-01-09 08:58:46', '2025-01-09 08:58:46', '2026-01-09 08:58:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:58:46 [0.31ms] */
select * from `oauth_access_tokens` where `id` = 'd7e32016085ff3855b07d1f611a3d3f42c7c5ca88f429b493e8cb132bf53fc6f04a20a46816f6277' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:58:46 [3.27ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'd7e32016085ff3855b07d1f611a3d3f42c7c5ca88f429b493e8cb132bf53fc6f04a20a46816f6277';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-01-09 08:58:46 [1.63ms] */
select * from `oauth_access_tokens` where `id` = 'd7e32016085ff3855b07d1f611a3d3f42c7c5ca88f429b493e8cb132bf53fc6f04a20a46816f6277' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-01-09 08:58:46 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'd7e32016085ff3855b07d1f611a3d3f42c7c5ca88f429b493e8cb132bf53fc6f04a20a46816f6277' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-01-09 08:58:46 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-01-09 08:58:46 [0.21ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-01-09 08:58:46 [0.2ms] */
select * from `oauth_access_tokens` where `id` = 'd7e32016085ff3855b07d1f611a3d3f42c7c5ca88f429b493e8cb132bf53fc6f04a20a46816f6277' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-01-09 08:58:46 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-01-09 08:58:46 [1.32ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `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, `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`, `roles`.`name` as `role`, 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` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `roles`.`name` = 'payment' and `invoice`.`total_invoice_amount` > 0 and `invoice`.`party_id` = 27946 and `license_plate` = 'SDF4234' and `invoice`.`parent` = 'N' and `invoice`.`grouped` = 'N' or `invoice`.`party_id` = 27946 and `license_plate` = 'SDF4234' and `invoice`.`parent` = 'Y' and `invoice`.`grouped` = 'N' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 08:59:17 [1.42ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 08:59:17 [0.27ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 08:59:17 [2.84ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 08:59:17 [5.65ms] */
update `userprofiles` set `login_count` = 6646, `last_login` = '2025-01-09 08:59:17', `userprofiles`.`updated_at` = '2025-01-09 08:59:17' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 08:59:17 [0.2ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 08:59:17 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 08:59:17 [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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 08:59:17 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 08:59:17 [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-01-09 08:59:17 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 08:59:17 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 08:59:17 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 08:59:17 [16.19ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4f26346081579dff094d3669edd26706a72bcc7b919ddb985e496bfc0b87208424d5712ddd5bc772', 116, 3, '[]', 0, '2025-01-09 08:59:17', '2025-01-09 08:59:17', '2026-01-09 08:59:17');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 08:59:17 [0.37ms] */
select * from `oauth_access_tokens` where `id` = '4f26346081579dff094d3669edd26706a72bcc7b919ddb985e496bfc0b87208424d5712ddd5bc772' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 08:59:17 [2.83ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4f26346081579dff094d3669edd26706a72bcc7b919ddb985e496bfc0b87208424d5712ddd5bc772';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 1 - 2025-01-09 08:59:17 [1.43ms] */
select * from `oauth_access_tokens` where `id` = '4f26346081579dff094d3669edd26706a72bcc7b919ddb985e496bfc0b87208424d5712ddd5bc772' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 2 - 2025-01-09 08:59:17 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f26346081579dff094d3669edd26706a72bcc7b919ddb985e496bfc0b87208424d5712ddd5bc772' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 3 - 2025-01-09 08:59:17 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 4 - 2025-01-09 08:59:17 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 5 - 2025-01-09 08:59:17 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f26346081579dff094d3669edd26706a72bcc7b919ddb985e496bfc0b87208424d5712ddd5bc772' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 6 - 2025-01-09 08:59:17 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 7 - 2025-01-09 08:59:17 [1.11ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, `transaction`.`party_id` as `customer_id`, `transaction`.`vehicle_id`, `invoice`.`id` as `invoice_id`, `invoice`.`invoice_number`, `invoice`.`total_invoice_amount` as `total_tax_amount`, `invoice`.`status` as `invoice_status`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `district`.`name` as `deliver_district`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `district` on `transaction`.`deliver_district_id` = `district`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`id` = 92876 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 8 - 2025-01-09 08:59:17 [5.58ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, `party_vehicle`.`status`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` where `vehicle`.`id` = 89074 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 9 - 2025-01-09 08:59:17 [2.53ms] */
select `party`.`id` as `customer_id`, 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 contact, 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, `party`.`partyable_type` as `customer_type`, `person`.`can_vote`, `person`.`occupation`, `person`.`gender`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.father_first_name, " ", person.father_second_name, " ", person.father_third_name, " ", person.father_fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS family_head, `person`.`place_of_birth`, `person`.`date_of_birth`, `district`.`name` as `district`, `region`.`name` as `region`, CONCAT(contact_person.first_name, " ", contact_person.second_name,
                " ", contact_person.third_name, " ", contact_person.fourth_name) as contact_person, `company_type`.`name` as `business_type`, CASE
                WHEN contact_party.phone_number_2 IS NOT NULL THEN CONCAT(contact_party.phone_number_1," / ",contact_party.phone_number_2)
                ELSE contact_party.phone_number_1 END as contact_person_mobile, `company`.`registration_date` as `company_registration_date` from `party` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join (`company` left join `party` as `contact_party` on `company`.`contact_party_id` = `contact_party`.`id` left join `person` as `contact_person` on `contact_party`.`partyable_id` = `contact_person`.`id` left join `company_type` on `company`.`company_type_id` = `company_type`.`id`) on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `address` on `party`.`address_id` = `address`.`id` left join `district` on `address`.`district_id` = `district`.`id` left join `region` on `district`.`region_id` = `region`.`id` where `party`.`id` = 27946 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 09:19:21 [2.16ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 09:19:21 [0.29ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 09:19:21 [0.41ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 09:19:21 [18.55ms] */
update `userprofiles` set `login_count` = 6647, `last_login` = '2025-01-09 09:19:21', `userprofiles`.`updated_at` = '2025-01-09 09:19:21' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 09:19:21 [1.17ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 09:19:21 [1.1ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 09:19:21 [0.79ms] */
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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 09:19:21 [0.61ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 09:19:21 [0.28ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-01-09 09:19:21 [0.48ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 09:19:21 [0.44ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 09:19:21 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 09:19:21 [3.47ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('6e6578abb3a09e6eaaa8d79cd47a312b234600ae22b8725f90e96b9900bce695014efa63d71cec8a', 116, 3, '[]', 0, '2025-01-09 09:19:21', '2025-01-09 09:19:21', '2026-01-09 09:19:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 09:19:21 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '6e6578abb3a09e6eaaa8d79cd47a312b234600ae22b8725f90e96b9900bce695014efa63d71cec8a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 09:19:21 [2.75ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '6e6578abb3a09e6eaaa8d79cd47a312b234600ae22b8725f90e96b9900bce695014efa63d71cec8a';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 1 - 2025-01-09 09:19:21 [1.7ms] */
select * from `oauth_access_tokens` where `id` = '6e6578abb3a09e6eaaa8d79cd47a312b234600ae22b8725f90e96b9900bce695014efa63d71cec8a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 2 - 2025-01-09 09:19:21 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '6e6578abb3a09e6eaaa8d79cd47a312b234600ae22b8725f90e96b9900bce695014efa63d71cec8a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 3 - 2025-01-09 09:19:21 [0.29ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 4 - 2025-01-09 09:19:21 [0.33ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 5 - 2025-01-09 09:19:21 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '6e6578abb3a09e6eaaa8d79cd47a312b234600ae22b8725f90e96b9900bce695014efa63d71cec8a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 6 - 2025-01-09 09:19:21 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 7 - 2025-01-09 09:19:21 [36.89ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, 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 owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `party_vehicle` left join `vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`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' where `party_id` = 58708 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 09:19:22 [1.48ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 09:19:22 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 09:19:22 [1.06ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 09:19:22 [14.52ms] */
update `userprofiles` set `login_count` = 6648, `last_login` = '2025-01-09 09:19:22', `userprofiles`.`updated_at` = '2025-01-09 09:19:22' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 09:19:22 [0.31ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 09:19:22 [0.71ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 09:19:22 [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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 09:19:22 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 09:19:22 [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-01-09 09:19:22 [0.17ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 09:19:22 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 09:19:22 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 09:19:22 [4.23ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('41f497c102830a5e557f37e510d114207aefad0359358e03aaae7e4851e9488639e7334dd04ef2ec', 116, 3, '[]', 0, '2025-01-09 09:19:22', '2025-01-09 09:19:22', '2026-01-09 09:19:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 09:19:22 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '41f497c102830a5e557f37e510d114207aefad0359358e03aaae7e4851e9488639e7334dd04ef2ec' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 09:19:22 [2.81ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '41f497c102830a5e557f37e510d114207aefad0359358e03aaae7e4851e9488639e7334dd04ef2ec';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-09 09:19:22 [1.51ms] */
select * from `oauth_access_tokens` where `id` = '41f497c102830a5e557f37e510d114207aefad0359358e03aaae7e4851e9488639e7334dd04ef2ec' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-09 09:19:22 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '41f497c102830a5e557f37e510d114207aefad0359358e03aaae7e4851e9488639e7334dd04ef2ec' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-09 09:19:22 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-09 09:19:22 [0.44ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-09 09:19:22 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '41f497c102830a5e557f37e510d114207aefad0359358e03aaae7e4851e9488639e7334dd04ef2ec' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-09 09:19:22 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-09 09:19:22 [1.83ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, 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 owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`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' where `license_plate` = 'TN45RR6363' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 09:19:23 [1.59ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 09:19:23 [0.29ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 09:19:23 [0.98ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 09:19:23 [5.75ms] */
update `userprofiles` set `login_count` = 6649, `last_login` = '2025-01-09 09:19:23', `userprofiles`.`updated_at` = '2025-01-09 09:19:23' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 09:19:23 [0.35ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 09:19:23 [0.63ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 09:19:23 [0.32ms] */
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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 09:19:23 [0.22ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 09:19:23 [0.14ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-01-09 09:19:23 [0.15ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 09:19:23 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 09:19:23 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 09:19:24 [13.68ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('dbc0945b6b4d259233fad61848fa938a8cfb87a95478a5ee22449b4f17503384e4ceea5d45043944', 116, 3, '[]', 0, '2025-01-09 09:19:23', '2025-01-09 09:19:23', '2026-01-09 09:19:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 09:19:24 [0.46ms] */
select * from `oauth_access_tokens` where `id` = 'dbc0945b6b4d259233fad61848fa938a8cfb87a95478a5ee22449b4f17503384e4ceea5d45043944' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 09:19:24 [4.73ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'dbc0945b6b4d259233fad61848fa938a8cfb87a95478a5ee22449b4f17503384e4ceea5d45043944';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-01-09 09:19:24 [2.38ms] */
select * from `oauth_access_tokens` where `id` = 'dbc0945b6b4d259233fad61848fa938a8cfb87a95478a5ee22449b4f17503384e4ceea5d45043944' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-01-09 09:19:24 [0.21ms] */
select * from `oauth_access_tokens` where `id` = 'dbc0945b6b4d259233fad61848fa938a8cfb87a95478a5ee22449b4f17503384e4ceea5d45043944' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-01-09 09:19:24 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-01-09 09:19:24 [0.16ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-01-09 09:19:24 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dbc0945b6b4d259233fad61848fa938a8cfb87a95478a5ee22449b4f17503384e4ceea5d45043944' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-01-09 09:19:24 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-01-09 09:19:24 [7.73ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_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, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`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 `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 58708 and `vehicle`.`license_plate` = 'TN45RR6363' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 09:19:25 [1.59ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 09:19:25 [0.21ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 09:19:25 [0.64ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 09:19:25 [5.86ms] */
update `userprofiles` set `login_count` = 6650, `last_login` = '2025-01-09 09:19:25', `userprofiles`.`updated_at` = '2025-01-09 09:19:25' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 09:19:25 [0.23ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 09:19:25 [0.57ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 09:19:25 [0.2ms] */
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 (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 09:19:25 [0.22ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 09:19:25 [0.17ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-01-09 09:19:25 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 09:19:25 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 09:19:25 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 09:19:25 [5.11ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('f5ecf1e50d8afbdcfd6b22ea06dd983756914c4f80034062a035268bb686ceb2225a0730f3b0ac0d', 116, 3, '[]', 0, '2025-01-09 09:19:25', '2025-01-09 09:19:25', '2026-01-09 09:19:25');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 09:19:25 [0.42ms] */
select * from `oauth_access_tokens` where `id` = 'f5ecf1e50d8afbdcfd6b22ea06dd983756914c4f80034062a035268bb686ceb2225a0730f3b0ac0d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 09:19:25 [3.92ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'f5ecf1e50d8afbdcfd6b22ea06dd983756914c4f80034062a035268bb686ceb2225a0730f3b0ac0d';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-01-09 09:19:25 [1.48ms] */
select * from `oauth_access_tokens` where `id` = 'f5ecf1e50d8afbdcfd6b22ea06dd983756914c4f80034062a035268bb686ceb2225a0730f3b0ac0d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-01-09 09:19:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'f5ecf1e50d8afbdcfd6b22ea06dd983756914c4f80034062a035268bb686ceb2225a0730f3b0ac0d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-01-09 09:19:25 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-01-09 09:19:25 [0.17ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-01-09 09:19:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'f5ecf1e50d8afbdcfd6b22ea06dd983756914c4f80034062a035268bb686ceb2225a0730f3b0ac0d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-01-09 09:19:25 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-01-09 09:19:25 [1.93ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `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, `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`, `roles`.`name` as `role`, 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` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `roles`.`name` = 'payment' and `invoice`.`total_invoice_amount` > 0 and `invoice`.`party_id` = 58708 and `license_plate` = 'TN45RR6363' and `invoice`.`parent` = 'N' and `invoice`.`grouped` = 'N' or `invoice`.`party_id` = 58708 and `license_plate` = 'TN45RR6363' and `invoice`.`parent` = 'Y' and `invoice`.`grouped` = 'N' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-09 09:19:31 [1.7ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-01-09 09:19:31 [0.22ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-01-09 09:19:31 [0.57ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 116 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-01-09 09:19:31 [6.13ms] */
update `userprofiles` set `login_count` = 6651, `last_login` = '2025-01-09 09:19:31', `userprofiles`.`updated_at` = '2025-01-09 09:19:31' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-09 09:19:31 [0.22ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-01-09 09:19:31 [0.6ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-01-09 09:19:31 [0.25ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-01-09 09:19:31 [0.22ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-09 09:19:31 [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-01-09 09:19:31 [0.23ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-09 09:19:31 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-09 09:19:31 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-09 09:19:31 [3.48ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('37f11e98a8ad9a837a836a018a6e4751190793df8922c163f2ad2679277e973caf71fab406cf2b91', 116, 3, '[]', 0, '2025-01-09 09:19:31', '2025-01-09 09:19:31', '2026-01-09 09:19:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-09 09:19:31 [0.55ms] */
select * from `oauth_access_tokens` where `id` = '37f11e98a8ad9a837a836a018a6e4751190793df8922c163f2ad2679277e973caf71fab406cf2b91' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-09 09:19:31 [3.24ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '37f11e98a8ad9a837a836a018a6e4751190793df8922c163f2ad2679277e973caf71fab406cf2b91';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 1 - 2025-01-09 09:19:31 [1.58ms] */
select * from `oauth_access_tokens` where `id` = '37f11e98a8ad9a837a836a018a6e4751190793df8922c163f2ad2679277e973caf71fab406cf2b91' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 2 - 2025-01-09 09:19:31 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '37f11e98a8ad9a837a836a018a6e4751190793df8922c163f2ad2679277e973caf71fab406cf2b91' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 3 - 2025-01-09 09:19:31 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 4 - 2025-01-09 09:19:31 [0.27ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 5 - 2025-01-09 09:19:31 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '37f11e98a8ad9a837a836a018a6e4751190793df8922c163f2ad2679277e973caf71fab406cf2b91' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 6 - 2025-01-09 09:19:31 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 7 - 2025-01-09 09:19:31 [0.87ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, `transaction`.`party_id` as `customer_id`, `transaction`.`vehicle_id`, `invoice`.`id` as `invoice_id`, `invoice`.`invoice_number`, `invoice`.`total_invoice_amount` as `total_tax_amount`, `invoice`.`status` as `invoice_status`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `district`.`name` as `deliver_district`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `district` on `transaction`.`deliver_district_id` = `district`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`id` = 101391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 8 - 2025-01-09 09:19:31 [2.4ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, `party_vehicle`.`status`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` where `vehicle`.`id` = 89880 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 9 - 2025-01-09 09:19:31 [4.15ms] */
select `party`.`id` as `customer_id`, 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 contact, 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, `party`.`partyable_type` as `customer_type`, `person`.`can_vote`, `person`.`occupation`, `person`.`gender`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.father_first_name, " ", person.father_second_name, " ", person.father_third_name, " ", person.father_fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS family_head, `person`.`place_of_birth`, `person`.`date_of_birth`, `district`.`name` as `district`, `region`.`name` as `region`, CONCAT(contact_person.first_name, " ", contact_person.second_name,
                " ", contact_person.third_name, " ", contact_person.fourth_name) as contact_person, `company_type`.`name` as `business_type`, CASE
                WHEN contact_party.phone_number_2 IS NOT NULL THEN CONCAT(contact_party.phone_number_1," / ",contact_party.phone_number_2)
                ELSE contact_party.phone_number_1 END as contact_person_mobile, `company`.`registration_date` as `company_registration_date` from `party` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join (`company` left join `party` as `contact_party` on `company`.`contact_party_id` = `contact_party`.`id` left join `person` as `contact_person` on `contact_party`.`partyable_id` = `contact_person`.`id` left join `company_type` on `company`.`company_type_id` = `company_type`.`id`) on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `address` on `party`.`address_id` = `address`.`id` left join `district` on `address`.`district_id` = `district`.`id` left join `region` on `district`.`region_id` = `region`.`id` where `party`.`id` = 58708 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-01-09 10:07:22 [1.91ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-01-09 10:07:22 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-01-09 10:07:22 [0.44ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-01-09 10:07:22 [0.78ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-01-09 10:07:22 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-01-09 10:07:22 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-01-09 10:07:22 [10.41ms] */
select * from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-01-09 10:07:23 [1.43ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-01-09 10:07:23 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-01-09 10:07:23 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-01-09 10:07:23 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-01-09 10:07:23 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-01-09 10:07:23 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-01-09 10:07:23 [18.48ms] */
select * from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 1 - 2025-01-09 10:07:48 [2.24ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 2 - 2025-01-09 10:07:48 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 3 - 2025-01-09 10:07:48 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 4 - 2025-01-09 10:07:48 [0.51ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 5 - 2025-01-09 10:07:48 [75.26ms] */
select count(*) as aggregate from `vehicle` inner join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` inner join (select vehicle_tax.vehicle_id as vehicle_id, count(vehicle_tax.vehicle_id) as count from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `term`.`first_date_of_quarter` <= '2025-01-09 10:07:48' and `vehicle_tax`.`status` = 'OPEN' group by `vehicle_tax`.`vehicle_id`) as `vehicleTaxes` on `vehicle`.`id` = `vehicleTaxes`.`vehicle_id` where `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`provisional` = 'N' and `vehicle`.`provisional` = 'N' and `party_vehicle`.`status` = 'REGISTERED' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 6 - 2025-01-09 10:07:48 [27.79ms] */
select `vehicle`.* from `vehicle` inner join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` inner join (select vehicle_tax.vehicle_id as vehicle_id, count(vehicle_tax.vehicle_id) as count from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `term`.`first_date_of_quarter` <= '2025-01-09 10:07:48' and `vehicle_tax`.`status` = 'OPEN' group by `vehicle_tax`.`vehicle_id`) as `vehicleTaxes` on `vehicle`.`id` = `vehicleTaxes`.`vehicle_id` where `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`provisional` = 'N' and `vehicle`.`provisional` = 'N' and `party_vehicle`.`status` = 'REGISTERED' and `vehicle`.`deleted_at` is null limit 10 offset 50;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 7 - 2025-01-09 10:07:48 [0.27ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 206 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 8 - 2025-01-09 10:07:48 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 206 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 9 - 2025-01-09 10:07:48 [1.07ms] */
select * from `party` where `party`.`id` = 55697 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 10 - 2025-01-09 10:07:48 [1.12ms] */
select * from `company` where `company`.`id` = 88 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 11 - 2025-01-09 10:07:48 [0.72ms] */
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/report.expired-tax-component
   Query 12 - 2025-01-09 10:07:48 [0.58ms] */
select * from `sub_category` where `sub_category`.`id` = 11 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 13 - 2025-01-09 10:07:48 [0.85ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 14 - 2025-01-09 10:07:48 [0.55ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 15 - 2025-01-09 10:07:48 [0.23ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 16 - 2025-01-09 10:07:48 [0.45ms] */
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` = 206 and date(`term`.`first_date_of_quarter`) <= '2025-01-09' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 17 - 2025-01-09 10:07:48 [0.26ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 223 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 18 - 2025-01-09 10:07:48 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 223 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 19 - 2025-01-09 10:07:48 [0.26ms] */
select * from `party` where `party`.`id` = 41448 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 20 - 2025-01-09 10:07:48 [0.85ms] */
select * from `person` where `person`.`id` = 41448 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 21 - 2025-01-09 10:07:48 [0.14ms] */
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/report.expired-tax-component
   Query 22 - 2025-01-09 10:07:48 [0.24ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 23 - 2025-01-09 10:07:48 [0.21ms] */
select * from `model` where `model`.`id` = 1575 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 24 - 2025-01-09 10:07:48 [0.13ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 25 - 2025-01-09 10:07:48 [0.19ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 13 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 26 - 2025-01-09 10:07:48 [1.96ms] */
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` = 223 and date(`term`.`first_date_of_quarter`) <= '2025-01-09' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 27 - 2025-01-09 10:07:48 [0.21ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 28 - 2025-01-09 10:07:48 [0.23ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 252 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 29 - 2025-01-09 10:07:48 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 252 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 30 - 2025-01-09 10:07:48 [0.22ms] */
select * from `party` where `party`.`id` = 55717 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 31 - 2025-01-09 10:07:48 [0.24ms] */
select * from `company` where `company`.`id` = 108 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 32 - 2025-01-09 10:07:48 [0.2ms] */
select * from `classification_type` where `classification_type`.`id` = 3 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/report.expired-tax-component
   Query 33 - 2025-01-09 10:07:48 [0.2ms] */
select * from `sub_category` where `sub_category`.`id` = 2 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 34 - 2025-01-09 10:07:48 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 35 - 2025-01-09 10:07:48 [0.13ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 36 - 2025-01-09 10:07:48 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 37 - 2025-01-09 10:07:48 [0.38ms] */
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` = 252 and date(`term`.`first_date_of_quarter`) <= '2025-01-09' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 38 - 2025-01-09 10:07:48 [0.23ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 263 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 39 - 2025-01-09 10:07:48 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 263 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 40 - 2025-01-09 10:07:48 [0.24ms] */
select * from `party` where `party`.`id` = 8735 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 41 - 2025-01-09 10:07:48 [0.21ms] */
select * from `company` where `company`.`id` = 8735 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 42 - 2025-01-09 10:07:48 [0.14ms] */
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/report.expired-tax-component
   Query 43 - 2025-01-09 10:07:48 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 11 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 44 - 2025-01-09 10:07:48 [0.15ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 45 - 2025-01-09 10:07:48 [0.13ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 46 - 2025-01-09 10:07:48 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 47 - 2025-01-09 10:07:48 [1.39ms] */
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` = 263 and date(`term`.`first_date_of_quarter`) <= '2025-01-09' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 48 - 2025-01-09 10:07:48 [0.21ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 49 - 2025-01-09 10:07:48 [0.19ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 50 - 2025-01-09 10:07:48 [0.21ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 51 - 2025-01-09 10:07:48 [0.19ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 52 - 2025-01-09 10:07:48 [0.13ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 53 - 2025-01-09 10:07:48 [0.22ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 270 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 54 - 2025-01-09 10:07:48 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 270 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 55 - 2025-01-09 10:07:48 [0.22ms] */
select * from `party` where `party`.`id` = 55734 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 56 - 2025-01-09 10:07:48 [0.2ms] */
select * from `company` where `company`.`id` = 125 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 57 - 2025-01-09 10:07:48 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 3 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/report.expired-tax-component
   Query 58 - 2025-01-09 10:07:48 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 2 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 59 - 2025-01-09 10:07:48 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 60 - 2025-01-09 10:07:48 [0.13ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 61 - 2025-01-09 10:07:48 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 62 - 2025-01-09 10:07:48 [0.32ms] */
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` = 270 and date(`term`.`first_date_of_quarter`) <= '2025-01-09' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 63 - 2025-01-09 10:07:48 [0.21ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 274 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 64 - 2025-01-09 10:07:48 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 274 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 65 - 2025-01-09 10:07:48 [0.22ms] */
select * from `party` where `party`.`id` = 55740 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 66 - 2025-01-09 10:07:48 [0.19ms] */
select * from `company` where `company`.`id` = 131 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 67 - 2025-01-09 10:07:48 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` = 1 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/report.expired-tax-component
   Query 68 - 2025-01-09 10:07:48 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 18 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 69 - 2025-01-09 10:07:48 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 70 - 2025-01-09 10:07:48 [0.14ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 71 - 2025-01-09 10:07:48 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 72 - 2025-01-09 10:07:48 [0.33ms] */
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` = 274 and date(`term`.`first_date_of_quarter`) <= '2025-01-09' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 73 - 2025-01-09 10:07:48 [0.21ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 281 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 74 - 2025-01-09 10:07:48 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 281 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 75 - 2025-01-09 10:07:48 [0.21ms] */
select * from `party` where `party`.`id` = 55750 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 76 - 2025-01-09 10:07:48 [0.19ms] */
select * from `company` where `company`.`id` = 141 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 77 - 2025-01-09 10:07:48 [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/report.expired-tax-component
   Query 78 - 2025-01-09 10:07:48 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 79 - 2025-01-09 10:07:48 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 80 - 2025-01-09 10:07:48 [0.13ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 81 - 2025-01-09 10:07:48 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 82 - 2025-01-09 10:07:48 [0.38ms] */
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` = 281 and date(`term`.`first_date_of_quarter`) <= '2025-01-09' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 83 - 2025-01-09 10:07:48 [0.21ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 293 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 84 - 2025-01-09 10:07:48 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 293 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 85 - 2025-01-09 10:07:48 [0.21ms] */
select * from `party` where `party`.`id` = 55759 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 86 - 2025-01-09 10:07:48 [0.19ms] */
select * from `company` where `company`.`id` = 150 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 87 - 2025-01-09 10:07:48 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 3 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/report.expired-tax-component
   Query 88 - 2025-01-09 10:07:48 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 2 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 89 - 2025-01-09 10:07:48 [0.14ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 90 - 2025-01-09 10:07:48 [0.13ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 91 - 2025-01-09 10:07:48 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 92 - 2025-01-09 10:07:48 [0.35ms] */
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` = 293 and date(`term`.`first_date_of_quarter`) <= '2025-01-09' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 93 - 2025-01-09 10:07:49 [0.21ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 302 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 94 - 2025-01-09 10:07:49 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 302 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 95 - 2025-01-09 10:07:49 [0.21ms] */
select * from `party` where `party`.`id` = 55765 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 96 - 2025-01-09 10:07:49 [0.19ms] */
select * from `company` where `company`.`id` = 156 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 97 - 2025-01-09 10:07:49 [0.2ms] */
select * from `classification_type` where `classification_type`.`id` = 4 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/report.expired-tax-component
   Query 98 - 2025-01-09 10:07:49 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 1 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 99 - 2025-01-09 10:07:49 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 100 - 2025-01-09 10:07:49 [0.29ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 101 - 2025-01-09 10:07:49 [0.25ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 102 - 2025-01-09 10:07:49 [0.64ms] */
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` = 302 and date(`term`.`first_date_of_quarter`) <= '2025-01-09' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 103 - 2025-01-09 10:07:49 [0.39ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 311 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 104 - 2025-01-09 10:07:49 [0.48ms] */
select * from `party_vehicle` where `vehicle_id` = 311 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 105 - 2025-01-09 10:07:49 [1.06ms] */
select * from `party` where `party`.`id` = 23653 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 106 - 2025-01-09 10:07:49 [0.57ms] */
select * from `person` where `person`.`id` = 23653 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 107 - 2025-01-09 10:07:49 [0.24ms] */
select * from `classification_type` where `classification_type`.`id` = 4 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/report.expired-tax-component
   Query 108 - 2025-01-09 10:07:49 [0.29ms] */
select * from `sub_category` where `sub_category`.`id` = 1 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 109 - 2025-01-09 10:07:49 [0.25ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 110 - 2025-01-09 10:07:49 [0.26ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 111 - 2025-01-09 10:07:49 [0.27ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 112 - 2025-01-09 10:07:49 [0.69ms] */
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` = 311 and date(`term`.`first_date_of_quarter`) <= '2025-01-09' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 113 - 2025-01-09 10:07:49 [0.19ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-09 10:07:58 [2.05ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-09 10:07:58 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-09 10:07:58 [0.41ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-09 10:07:58 [0.38ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-09 10:07:58 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-09 10:07:58 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-09 10:07:58 [4.84ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, 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 owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`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' where `license_plate` = 11822 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-09 10:07:59 [1.58ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-09 10:07:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-09 10:07:59 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-09 10:07:59 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-01-09 10:07:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-09 10:07:59 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-09 10:07:59 [0.61ms] */
select * from `vehicle` where `vehicle`.`id` = 263 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-09 10:07:59 [0.34ms] */
select * from `vehicle` where `id` = 263 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-09 10:07:59 [1.02ms] */
select * from `party_vehicle` where `vehicle_id` = 263 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-01-09 10:07:59 [4.32ms] */
select `vehicle_tax`.`id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 263 and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-01-09 10:08:01 [1.46ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-09 10:08:01 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-09 10:08:01 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-09 10:08:01 [0.19ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-01-09 10:08:01 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-09 10:08:01 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-09 10:08:01 [0.5ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-09 10:08:02 [1.33ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-09 10:08:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-09 10:08:02 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-09 10:08:02 [0.19ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-09 10:08:02 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-09 10:08:02 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-09 10:08:02 [0.48ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-09 10:08:04 [1.48ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-09 10:08:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-09 10:08:04 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-09 10:08:04 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-09 10:08:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'e0f488bcb7f2fcb6c853b90430da23abde3c70a7e5a3cc6badc5ee3db5a386469df4128cfa37b9ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-09 10:08:04 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-09 10:08:04 [0.92ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-09 10:08:04 [0.67ms] */
select `transaction_id` from `vehicle_tax` where `id` in (100244, 100245, 100246, 100247, 100248) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-09 10:08:04 [0.7ms] */
select `parent_id` from `transaction` where `id` in (103909, 103910, 103911, 103912, 103913) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-09 10:08:04 [0.14ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-09 10:08:04 [0.18ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-09 10:08:04 [0.25ms] */
select * from `transaction` where `id` in (103909, 103910, 103911, 103912, 103913) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-09 10:08:04 [0.93ms] */
select * from `invoice` where `invoice`.`id` = 103471 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-09 10:08:04 [11.21ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103471;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-09 10:08:04 [0.49ms] */
select * from `invoice` where `id` = 103471 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-09 10:08:04 [4.69ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 103471, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-01-09 10:08:04 [1.21ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-09 10:08:04 [0.98ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-09 10:08:04 [4.12ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103909;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-09 10:08:04 [0.7ms] */
select * from `invoice` where `invoice`.`id` = 103472 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-09 10:08:04 [3.7ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103472;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-09 10:08:04 [0.64ms] */
select * from `invoice` where `id` = 103472 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-01-09 10:08:04 [3.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 103472, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-01-09 10:08:04 [0.24ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-09 10:08:04 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-09 10:08:04 [3.49ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103910;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-09 10:08:04 [0.7ms] */
select * from `invoice` where `invoice`.`id` = 103473 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-09 10:08:04 [3.4ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103473;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-09 10:08:04 [0.65ms] */
select * from `invoice` where `id` = 103473 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-09 10:08:04 [3.36ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 103473, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-09 10:08:04 [0.28ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-09 10:08:04 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-01-09 10:08:04 [3.34ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103911;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-01-09 10:08:04 [0.65ms] */
select * from `invoice` where `invoice`.`id` = 103474 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-01-09 10:08:04 [3.56ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103474;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-01-09 10:08:04 [0.64ms] */
select * from `invoice` where `id` = 103474 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-01-09 10:08:04 [3.37ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 103474, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-01-09 10:08:04 [0.27ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-01-09 10:08:04 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-01-09 10:08:04 [3.26ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103912;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-01-09 10:08:04 [0.66ms] */
select * from `invoice` where `invoice`.`id` = 103475 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-01-09 10:08:04 [3.36ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103475;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-01-09 10:08:04 [0.6ms] */
select * from `invoice` where `id` = 103475 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-01-09 10:08:04 [3.6ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 103475, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-01-09 10:08:04 [0.29ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-01-09 10:08:04 [0.28ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-01-09 10:08:04 [3.34ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103913;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-01-09 10:08:04 [3.47ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-01-09 10:08:04' where `id` in (100244, 100245, 100246, 100247, 100248) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-01-09 10:08:04 [1.08ms] */
select * from `vehicle` where `vehicle`.`id` = 263 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-01-09 10:08:04 [0.6ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-01-09 10:08:04 [0.61ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 263 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-01-09 10:08:04 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 263 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-01-09 10:08:04 [0.49ms] */
select * from `party` where `party`.`id` = 8735 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-01-09 10:08:04 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 263 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-01-09 10:08:04 [0.23ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-01-09 10:08:04 [0.24ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-01-09 10:08:04 [2.69ms] */
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 (8735, 2, 263, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-01-09 10:08:04 [1.07ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105285, 'INITIATED', '2025-01-09 10:08:04', 5, 5, 5, 5, '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-01-09 10:08:04 [0.57ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 59981, `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 105285;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-01-09 10:08:04 [0.58ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (100244, 100245, 100246, 100247, 100248) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-01-09 10:08:04 [0.43ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (100244, 100245, 100246, 100247, 100248) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-01-09 10:08:04 [0.71ms] */
insert into `invoice` (`transaction_id`, `party_id`, `invoice_date`, `due_date`, `invoice_amount`, `discounts`, `total_invoice_amount`, `outstanding_balance`, `taxes`, `status`, `grouped`, `parent`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105285, 8735, '2025-01-09 10:08:04', '2025-01-09 10:08:04', 291.00, 0, 291.00, 291.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-01-09 10:08:04 [0.43ms] */
select * from `invoice` where `id` = 104842 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-01-09 10:08:04 [0.36ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":105285,"party_id":8735,"invoice_amount":"291.00","invoice_date":"2025-01-09 10:08:04","due_date":"2025-01-09 10:08:04","outstanding_balance":"291.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"291.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 104842, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-01-09 10:08:04 [0.6ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (100244, 100245, 100246, 100247, 100248) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-01-09 10:08:04 [0.55ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Tax Fees', 5, 291, 291, 104842, 5, 5, '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-01-09 10:08:04 [0.34ms] */
select * from `invoice_item` where `id` = 204786 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-01-09 10:08:04 [0.33ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Tax Fees","unit_price":"291.00","quantity":5,"total_price":"291.00","invoice_id":104842}}', 5, 'App\Models\User', 204786, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-01-09 10:08:04 [0.44ms] */
update `invoice` set `invoice_number` = 'INV-923-104842506', `invoice`.`updated_at` = '2025-01-09 10:08:04' where `id` = 104842;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-01-09 10:08:04 [0.39ms] */
select * from `invoice` where `id` = 104842 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-01-09 10:08:04 [0.34ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-923-104842506"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104842, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-01-09 10:08:04 [0.37ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 100244 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-01-09 10:08:04 [0.32ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-09 10:08:04' where `id` = 100244;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-01-09 10:08:04 [0.36ms] */
select * from `vehicle_tax` where `id` = 100244 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-01-09 10:08:04 [0.42ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 100244, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-01-09 10:08:04 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 103909 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-01-09 10:08:04 [0.4ms] */
update `transaction` set `parent_id` = 105285, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103909;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-01-09 10:08:04 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 103471 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-01-09 10:08:04 [0.53ms] */
update `invoice` set `parent_id` = 104842, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103471;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-01-09 10:08:04 [0.22ms] */
select * from `invoice` where `id` = 103471 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-01-09 10:08:04 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104842,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 103471, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-01-09 10:08:04 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 103909 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-01-09 10:08:04 [0.21ms] */
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_payment
   Query 84 - 2025-01-09 10:08:04 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-01-09 10:08:04 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 86 - 2025-01-09 10:08:04 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-01-09 10:08:04 [0.24ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-01-09 10:08:04 [0.24ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (103909, 'APPROVED', '2025-01-09 10:08:04', 5, 5, null, 5, 5, '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-01-09 10:08:04 [0.24ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-01-09 10:08:04 [0.59ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103909;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-01-09 10:08:04 [0.2ms] */
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_payment
   Query 92 - 2025-01-09 10:08:04 [0.26ms] */
select * from `invoice` where `invoice`.`id` = 103471 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-01-09 10:08:04 [0.22ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 100245 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-01-09 10:08:04 [0.18ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-09 10:08:04' where `id` = 100245;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-01-09 10:08:04 [0.25ms] */
select * from `vehicle_tax` where `id` = 100245 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-01-09 10:08:04 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 100245, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 97 - 2025-01-09 10:08:04 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 103910 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-01-09 10:08:04 [0.26ms] */
update `transaction` set `parent_id` = 105285, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103910;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-01-09 10:08:04 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 103472 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2025-01-09 10:08:04 [0.31ms] */
update `invoice` set `parent_id` = 104842, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103472;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2025-01-09 10:08:04 [0.21ms] */
select * from `invoice` where `id` = 103472 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 102 - 2025-01-09 10:08:04 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104842,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 103472, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-01-09 10:08:04 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 103910 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 104 - 2025-01-09 10:08:04 [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_payment
   Query 105 - 2025-01-09 10:08:04 [0.32ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2025-01-09 10:08:04 [0.39ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 107 - 2025-01-09 10:08:04 [0.34ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 108 - 2025-01-09 10:08:04 [0.65ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (103910, 'APPROVED', '2025-01-09 10:08:04', 5, 5, null, 5, 5, '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 109 - 2025-01-09 10:08:04 [0.79ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 110 - 2025-01-09 10:08:04 [0.62ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103910;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 111 - 2025-01-09 10:08:04 [0.33ms] */
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_payment
   Query 112 - 2025-01-09 10:08:04 [0.38ms] */
select * from `invoice` where `invoice`.`id` = 103472 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 113 - 2025-01-09 10:08:04 [0.25ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 100246 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 114 - 2025-01-09 10:08:04 [0.19ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-09 10:08:04' where `id` = 100246;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 115 - 2025-01-09 10:08:04 [0.2ms] */
select * from `vehicle_tax` where `id` = 100246 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 116 - 2025-01-09 10:08:04 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 100246, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 117 - 2025-01-09 10:08:04 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 103911 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 118 - 2025-01-09 10:08:04 [0.2ms] */
update `transaction` set `parent_id` = 105285, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103911;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 119 - 2025-01-09 10:08:04 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 103473 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 120 - 2025-01-09 10:08:04 [0.26ms] */
update `invoice` set `parent_id` = 104842, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103473;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 121 - 2025-01-09 10:08:04 [0.21ms] */
select * from `invoice` where `id` = 103473 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 122 - 2025-01-09 10:08:04 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":104842,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 103473, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 123 - 2025-01-09 10:08:04 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 103911 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 124 - 2025-01-09 10:08:04 [0.21ms] */
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_payment
   Query 125 - 2025-01-09 10:08:04 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 126 - 2025-01-09 10:08:04 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 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_payment
   Query 127 - 2025-01-09 10:08:04 [0.19ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 128 - 2025-01-09 10:08:04 [0.28ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (103911, 'APPROVED', '2025-01-09 10:08:04', 5, 5, null, 5, 5, '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 129 - 2025-01-09 10:08:04 [0.35ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 130 - 2025-01-09 10:08:04 [0.34ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103911;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 131 - 2025-01-09 10:08:04 [0.24ms] */
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_payment
   Query 132 - 2025-01-09 10:08:04 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 103473 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 133 - 2025-01-09 10:08:04 [1.6ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 100247 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 134 - 2025-01-09 10:08:04 [0.24ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-09 10:08:04' where `id` = 100247;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 135 - 2025-01-09 10:08:04 [0.25ms] */
select * from `vehicle_tax` where `id` = 100247 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 136 - 2025-01-09 10:08:04 [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":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 100247, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-09 10:08:04', '2025-01-09 10:08:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 137 - 2025-01-09 10:08:04 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 103912 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 138 - 2025-01-09 10:08:04 [0.26ms] */
update `transaction` set `parent_id` = 105285, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-09 10:08:04' where `id` = 103912;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 139 - 2025-01-09 10:08:04 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 103474 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 140 - 2025-01-09 10:08:04 [0.34ms] */
