insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (97381, 'PAID', '2024-12-26 14:06:31', 7, 5, null, 5, 5, '2024-12-26 14:06:31', '2024-12-26 14:06:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 126 - 2024-12-26 14:06:31 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 127 - 2024-12-26 14:06:31 [0.18ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-26 14:06:31' where `id` = 97381;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 128 - 2024-12-26 14:06:31 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 129 - 2024-12-26 14:06:31 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 96490 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 130 - 2024-12-26 14:06:31 [0.2ms] */
select * from `vehicle_tax` where `transaction_id` = 97381 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 131 - 2024-12-26 14:06:31 [0.17ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-26 14:06:31' where `id` = 95695;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 132 - 2024-12-26 14:06:31 [0.2ms] */
select * from `vehicle_tax` where `id` = 95695 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 133 - 2024-12-26 14:06:31 [0.15ms] */
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":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 95695, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-26 14:06:31', '2024-12-26 14:06:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 134 - 2024-12-26 14:06:31 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 96493 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 135 - 2024-12-26 14:06:31 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-26 14:06:31', 96493, 89715, '2024-12-26 14:06:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 136 - 2024-12-26 14:06:31 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 96493 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 137 - 2024-12-26 14:06:31 [0.23ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 96493 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 138 - 2024-12-26 14:06:31 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 96493 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 139 - 2024-12-26 14:06:31 [0.16ms] */
update `invoice` set `invoice_amount` = 24, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 24, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-26 14:06:31' where `id` = 96493;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 140 - 2024-12-26 14:06:31 [0.2ms] */
select * from `invoice` where `id` = 96493 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 141 - 2024-12-26 14:06:31 [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":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"24.00","status":"OPEN"}}', 5, 'App\Models\User', 96493, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-26 14:06:31', '2024-12-26 14:06:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 142 - 2024-12-26 14:06:31 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 97384 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 143 - 2024-12-26 14:06:31 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 97384 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 144 - 2024-12-26 14:06:31 [0.13ms] */
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/confirm_payment
   Query 145 - 2024-12-26 14:06:31 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 146 - 2024-12-26 14:06:31 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 147 - 2024-12-26 14:06:31 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (97384, 'PAID', '2024-12-26 14:06:31', 7, 5, null, 5, 5, '2024-12-26 14:06:31', '2024-12-26 14:06:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 148 - 2024-12-26 14:06:31 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 149 - 2024-12-26 14:06:31 [0.18ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-26 14:06:31' where `id` = 97384;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 150 - 2024-12-26 14:06:31 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 151 - 2024-12-26 14:06:31 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 96493 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 152 - 2024-12-26 14:06:31 [0.19ms] */
select * from `vehicle_tax` where `transaction_id` = 97384 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 153 - 2024-12-26 14:06:31 [0.15ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-26 14:06:31' where `id` = 95698;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 154 - 2024-12-26 14:06:31 [0.17ms] */
select * from `vehicle_tax` where `id` = 95698 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 155 - 2024-12-26 14:06:31 [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":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 95698, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-26 14:06:31', '2024-12-26 14:06:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 156 - 2024-12-26 14:06:31 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 102518 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 157 - 2024-12-26 14:06:31 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 102518 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 158 - 2024-12-26 14:06:31 [0.17ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-26 14:06:31', 102518, 89715, '2024-12-26 14:06:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 159 - 2024-12-26 14:06:31 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 102518 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 160 - 2024-12-26 14:06:31 [0.23ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 102518 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 161 - 2024-12-26 14:06:31 [0.16ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-26 14:06:31' where `id` = 102518;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 162 - 2024-12-26 14:06:31 [0.19ms] */
select * from `invoice` where `id` = 102518 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 163 - 2024-12-26 14:06:31 [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":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"144.00","status":"OPEN"}}', 5, 'App\Models\User', 102518, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-26 14:06:31', '2024-12-26 14:06:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 164 - 2024-12-26 14:06:31 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 102949 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 165 - 2024-12-26 14:06:31 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 102949 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 166 - 2024-12-26 14:06:31 [0.13ms] */
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/confirm_payment
   Query 167 - 2024-12-26 14:06:31 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 168 - 2024-12-26 14:06:31 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 169 - 2024-12-26 14:06:31 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102949, 'PAID', '2024-12-26 14:06:31', 7, 5, null, 5, 5, '2024-12-26 14:06:31', '2024-12-26 14:06:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 170 - 2024-12-26 14:06:31 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 171 - 2024-12-26 14:06:31 [0.18ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-26 14:06:31' where `id` = 102949;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 172 - 2024-12-26 14:06:31 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 173 - 2024-12-26 14:06:31 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 102518 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 174 - 2024-12-26 14:06:31 [0.19ms] */
insert into `payment_confirmation` (`payment_id`, `text`, `attachment`, `updated_at`, `created_at`) values (89715, 'asdasd', 1, '2024-12-26 14:06:31', '2024-12-26 14:06:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-26 14:06:33 [1.34ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-26 14:06:33 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-26 14:06:33 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-26 14:06:33 [0.16ms] */
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 - 2024-12-26 14:06:33 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-26 14:06:33 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-26 14:06:33 [0.71ms] */
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` = 26705 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 - 2024-12-26 14:06:34 [2.04ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2024-12-26 14:06:34 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2024-12-26 14:06:34 [0.32ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2024-12-26 14:06:34 [0.27ms] */
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 - 2024-12-26 14:06:34 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2024-12-26 14:06:34 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2024-12-26 14:06:34 [0.46ms] */
select * from `vehicle` where `vehicle`.`id` = 461 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2024-12-26 14:06:34 [0.36ms] */
select * from `vehicle` where `id` = 461 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2024-12-26 14:06:34 [0.34ms] */
select * from `party_vehicle` where `vehicle_id` = 461 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2024-12-26 14:06:34 [1.14ms] */
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` = 461 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 - 2024-12-26 14:06:34 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2024-12-26 14:06:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2024-12-26 14:06:34 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2024-12-26 14:06:34 [0.16ms] */
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 - 2024-12-26 14:06:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2024-12-26 14:06:34 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2024-12-26 14:06:34 [0.24ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2024-12-26 14:06:34 [1.41ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-26 14:06:34 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-26 14:06:34 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-26 14:06:34 [0.18ms] */
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 - 2024-12-26 14:06:34 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '7a5524652a6e42a11c3a9aa0490707b16a28b04b69cbd8824687954e1c40eb0756dbe7d82f7ee083' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-26 14:06:34 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-26 14:06:34 [0.16ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2024-12-26 14:06:47 [1.43ms] */
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 - 2024-12-26 14:06:47 [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 - 2024-12-26 14:06:47 [0.36ms] */
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 - 2024-12-26 14:06:47 [8.21ms] */
update `userprofiles` set `login_count` = 6478, `last_login` = '2024-12-26 14:06:47', `userprofiles`.`updated_at` = '2024-12-26 14:06:47' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:06:47 [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 - 2024-12-26 14:06:47 [0.58ms] */
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 - 2024-12-26 14:06:47 [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 - 2024-12-26 14:06:47 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:06:47 [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 - 2024-12-26 14:06:47 [0.22ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:06:47 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:06:47 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:06:47 [3.5ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('764fcb3081a54c6eb75e34004443914a4af198354da41a4eec4fef0aa2835d6268474091449c27ba', 116, 3, '[]', 0, '2024-12-26 14:06:47', '2024-12-26 14:06:47', '2025-12-26 14:06:47');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:06:47 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '764fcb3081a54c6eb75e34004443914a4af198354da41a4eec4fef0aa2835d6268474091449c27ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:06:47 [3.22ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '764fcb3081a54c6eb75e34004443914a4af198354da41a4eec4fef0aa2835d6268474091449c27ba';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 1 - 2024-12-26 14:06:47 [1.61ms] */
select * from `oauth_access_tokens` where `id` = '764fcb3081a54c6eb75e34004443914a4af198354da41a4eec4fef0aa2835d6268474091449c27ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 2 - 2024-12-26 14:06:47 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '764fcb3081a54c6eb75e34004443914a4af198354da41a4eec4fef0aa2835d6268474091449c27ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 3 - 2024-12-26 14:06:47 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 4 - 2024-12-26 14:06:47 [0.19ms] */
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 - 2024-12-26 14:06:47 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '764fcb3081a54c6eb75e34004443914a4af198354da41a4eec4fef0aa2835d6268474091449c27ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 6 - 2024-12-26 14:06:47 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 7 - 2024-12-26 14:06:47 [39.9ms] */
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 - 2024-12-26 14:06:48 [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 - 2024-12-26 14:06: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 - 2024-12-26 14:06: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 - 2024-12-26 14:06:48 [6.03ms] */
update `userprofiles` set `login_count` = 6479, `last_login` = '2024-12-26 14:06:48', `userprofiles`.`updated_at` = '2024-12-26 14:06:48' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:06:48 [0.25ms] */
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 - 2024-12-26 14:06:48 [0.58ms] */
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 - 2024-12-26 14:06:48 [0.69ms] */
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 - 2024-12-26 14:06:48 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:06:48 [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 - 2024-12-26 14:06:48 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:06:48 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:06:48 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:06:48 [3.13ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('8bd5dbee2a66777e1f773b567b14732a44aa5571404c8749c89aed7f626cd291eaab514934800818', 116, 3, '[]', 0, '2024-12-26 14:06:48', '2024-12-26 14:06:48', '2025-12-26 14:06:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:06:48 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '8bd5dbee2a66777e1f773b567b14732a44aa5571404c8749c89aed7f626cd291eaab514934800818' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:06:48 [2.91ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '8bd5dbee2a66777e1f773b567b14732a44aa5571404c8749c89aed7f626cd291eaab514934800818';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 1 - 2024-12-26 14:06:48 [2.58ms] */
select * from `oauth_access_tokens` where `id` = '8bd5dbee2a66777e1f773b567b14732a44aa5571404c8749c89aed7f626cd291eaab514934800818' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 2 - 2024-12-26 14:06:48 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '8bd5dbee2a66777e1f773b567b14732a44aa5571404c8749c89aed7f626cd291eaab514934800818' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 3 - 2024-12-26 14:06:48 [0.29ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 4 - 2024-12-26 14:06:48 [0.26ms] */
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 - 2024-12-26 14:06:48 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '8bd5dbee2a66777e1f773b567b14732a44aa5571404c8749c89aed7f626cd291eaab514934800818' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 6 - 2024-12-26 14:06:48 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 7 - 2024-12-26 14:06:48 [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 - 2024-12-26 14:06:49 [2.18ms] */
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 - 2024-12-26 14:06:49 [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 - 2024-12-26 14:06:49 [0.35ms] */
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 - 2024-12-26 14:06:49 [6.03ms] */
update `userprofiles` set `login_count` = 6480, `last_login` = '2024-12-26 14:06:49', `userprofiles`.`updated_at` = '2024-12-26 14:06:49' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:06:49 [0.15ms] */
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 - 2024-12-26 14:06:49 [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 - 2024-12-26 14:06:49 [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 - 2024-12-26 14:06:49 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:06:49 [0.23ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2024-12-26 14:06:49 [0.26ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:06:49 [0.3ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:06:49 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:06:49 [3.57ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('488b102a4f7be5e4b42422324f96a51b296f4937c85bd3ef4cee0b9e9fdc4b7ce8725fba15ceb575', 116, 3, '[]', 0, '2024-12-26 14:06:49', '2024-12-26 14:06:49', '2025-12-26 14:06:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:06:49 [0.58ms] */
select * from `oauth_access_tokens` where `id` = '488b102a4f7be5e4b42422324f96a51b296f4937c85bd3ef4cee0b9e9fdc4b7ce8725fba15ceb575' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:06:49 [3.18ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '488b102a4f7be5e4b42422324f96a51b296f4937c85bd3ef4cee0b9e9fdc4b7ce8725fba15ceb575';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-26 14:06:50 [2.21ms] */
select * from `oauth_access_tokens` where `id` = '488b102a4f7be5e4b42422324f96a51b296f4937c85bd3ef4cee0b9e9fdc4b7ce8725fba15ceb575' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-26 14:06:50 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '488b102a4f7be5e4b42422324f96a51b296f4937c85bd3ef4cee0b9e9fdc4b7ce8725fba15ceb575' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-26 14:06:50 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-26 14:06:50 [0.35ms] */
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 - 2024-12-26 14:06:50 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '488b102a4f7be5e4b42422324f96a51b296f4937c85bd3ef4cee0b9e9fdc4b7ce8725fba15ceb575' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-26 14:06:50 [0.3ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-26 14:06:50 [0.82ms] */
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 - 2024-12-26 14:06:50 [1.37ms] */
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 - 2024-12-26 14:06:50 [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 - 2024-12-26 14:06:50 [0.36ms] */
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 - 2024-12-26 14:06:50 [13.35ms] */
update `userprofiles` set `login_count` = 6481, `last_login` = '2024-12-26 14:06:50', `userprofiles`.`updated_at` = '2024-12-26 14:06:50' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:06:50 [0.33ms] */
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 - 2024-12-26 14:06:50 [0.74ms] */
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 - 2024-12-26 14:06:51 [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 - 2024-12-26 14:06:51 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:06: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 - 2024-12-26 14:06:51 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:06:51 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:06:51 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:06:51 [3.49ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('81329f89645f71c38bf34dfbcd879d8de28c06e6767f842f53a8fc2fc53dc39c797653bbcfdfe6a4', 116, 3, '[]', 0, '2024-12-26 14:06:51', '2024-12-26 14:06:51', '2025-12-26 14:06:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:06:51 [0.69ms] */
select * from `oauth_access_tokens` where `id` = '81329f89645f71c38bf34dfbcd879d8de28c06e6767f842f53a8fc2fc53dc39c797653bbcfdfe6a4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:06:51 [2.93ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '81329f89645f71c38bf34dfbcd879d8de28c06e6767f842f53a8fc2fc53dc39c797653bbcfdfe6a4';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2024-12-26 14:06:51 [2.41ms] */
select * from `oauth_access_tokens` where `id` = '81329f89645f71c38bf34dfbcd879d8de28c06e6767f842f53a8fc2fc53dc39c797653bbcfdfe6a4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2024-12-26 14:06:51 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '81329f89645f71c38bf34dfbcd879d8de28c06e6767f842f53a8fc2fc53dc39c797653bbcfdfe6a4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2024-12-26 14:06:51 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2024-12-26 14:06:51 [0.27ms] */
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 - 2024-12-26 14:06:51 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '81329f89645f71c38bf34dfbcd879d8de28c06e6767f842f53a8fc2fc53dc39c797653bbcfdfe6a4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2024-12-26 14:06:51 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2024-12-26 14:06:51 [1.22ms] */
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 - 2024-12-26 14:06:52 [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 - 2024-12-26 14:06: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/login
   Query 3 - 2024-12-26 14:06:52 [0.39ms] */
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 - 2024-12-26 14:06:52 [6.13ms] */
update `userprofiles` set `login_count` = 6482, `last_login` = '2024-12-26 14:06:52', `userprofiles`.`updated_at` = '2024-12-26 14:06:52' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:06:52 [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 - 2024-12-26 14:06:52 [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 - 2024-12-26 14:06:52 [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 - 2024-12-26 14:06:52 [0.15ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:06:52 [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 - 2024-12-26 14:06:52 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:06:52 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:06:52 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:06:52 [3.34ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('7c8f45991f6561a868221e5070c4e54a2cd98b23444a3ee36c0e4572cfcf8a1fe9f20021616985e0', 116, 3, '[]', 0, '2024-12-26 14:06:52', '2024-12-26 14:06:52', '2025-12-26 14:06:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:06:52 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '7c8f45991f6561a868221e5070c4e54a2cd98b23444a3ee36c0e4572cfcf8a1fe9f20021616985e0' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:06:52 [2.94ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '7c8f45991f6561a868221e5070c4e54a2cd98b23444a3ee36c0e4572cfcf8a1fe9f20021616985e0';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2024-12-26 14:06:52 [1.45ms] */
select * from `oauth_access_tokens` where `id` = '7c8f45991f6561a868221e5070c4e54a2cd98b23444a3ee36c0e4572cfcf8a1fe9f20021616985e0' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2024-12-26 14:06:52 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '7c8f45991f6561a868221e5070c4e54a2cd98b23444a3ee36c0e4572cfcf8a1fe9f20021616985e0' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2024-12-26 14:06:52 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2024-12-26 14:06: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 - 2024-12-26 14:06:52 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '7c8f45991f6561a868221e5070c4e54a2cd98b23444a3ee36c0e4572cfcf8a1fe9f20021616985e0' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2024-12-26 14:06:52 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2024-12-26 14:06:52 [0.79ms] */
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 - 2024-12-26 14:09:49 [2.06ms] */
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 - 2024-12-26 14:09:49 [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 - 2024-12-26 14:09:49 [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 - 2024-12-26 14:09:49 [5.75ms] */
update `userprofiles` set `login_count` = 6483, `last_login` = '2024-12-26 14:09:49', `userprofiles`.`updated_at` = '2024-12-26 14:09:49' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:09: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 - 2024-12-26 14:09:49 [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 - 2024-12-26 14:09:49 [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 - 2024-12-26 14:09:49 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:09:49 [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 - 2024-12-26 14:09: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 - 2024-12-26 14:09:49 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:09:49 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:09:49 [3.02ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('97acd29f321b319c28b40e58b7792b99cc67e9d6d93f919aab7858732846346d8051d785a38a21a5', 116, 3, '[]', 0, '2024-12-26 14:09:49', '2024-12-26 14:09:49', '2025-12-26 14:09:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:09:49 [0.36ms] */
select * from `oauth_access_tokens` where `id` = '97acd29f321b319c28b40e58b7792b99cc67e9d6d93f919aab7858732846346d8051d785a38a21a5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:09:49 [6.36ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '97acd29f321b319c28b40e58b7792b99cc67e9d6d93f919aab7858732846346d8051d785a38a21a5';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 1 - 2024-12-26 14:09:49 [2.23ms] */
select * from `oauth_access_tokens` where `id` = '97acd29f321b319c28b40e58b7792b99cc67e9d6d93f919aab7858732846346d8051d785a38a21a5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 2 - 2024-12-26 14:09:49 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '97acd29f321b319c28b40e58b7792b99cc67e9d6d93f919aab7858732846346d8051d785a38a21a5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 3 - 2024-12-26 14:09:49 [0.28ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 4 - 2024-12-26 14:09:49 [0.29ms] */
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 - 2024-12-26 14:09:49 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '97acd29f321b319c28b40e58b7792b99cc67e9d6d93f919aab7858732846346d8051d785a38a21a5' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 6 - 2024-12-26 14:09:49 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 7 - 2024-12-26 14:09:49 [25.23ms] */
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 - 2024-12-26 14:09:50 [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 - 2024-12-26 14:09:50 [0.18ms] */
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 - 2024-12-26 14:09:50 [0.36ms] */
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 - 2024-12-26 14:09:50 [5.95ms] */
update `userprofiles` set `login_count` = 6484, `last_login` = '2024-12-26 14:09:50', `userprofiles`.`updated_at` = '2024-12-26 14:09:50' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:09:50 [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 - 2024-12-26 14:09:50 [0.5ms] */
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 - 2024-12-26 14:09:50 [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 - 2024-12-26 14:09:50 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:09:50 [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 - 2024-12-26 14:09:50 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:09:50 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:09:50 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:09:50 [3.11ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('dbe0148fd7e836e7635234b299e6d0adfae81a47ff5ca9c4f1d4ef0cea0b449f47614a1e2b7f5eb7', 116, 3, '[]', 0, '2024-12-26 14:09:50', '2024-12-26 14:09:50', '2025-12-26 14:09:50');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:09:50 [0.38ms] */
select * from `oauth_access_tokens` where `id` = 'dbe0148fd7e836e7635234b299e6d0adfae81a47ff5ca9c4f1d4ef0cea0b449f47614a1e2b7f5eb7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:09:50 [3.01ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'dbe0148fd7e836e7635234b299e6d0adfae81a47ff5ca9c4f1d4ef0cea0b449f47614a1e2b7f5eb7';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-26 14:09:50 [2.23ms] */
select * from `oauth_access_tokens` where `id` = 'dbe0148fd7e836e7635234b299e6d0adfae81a47ff5ca9c4f1d4ef0cea0b449f47614a1e2b7f5eb7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-26 14:09:50 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dbe0148fd7e836e7635234b299e6d0adfae81a47ff5ca9c4f1d4ef0cea0b449f47614a1e2b7f5eb7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-26 14:09:50 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-26 14:09:50 [0.25ms] */
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 - 2024-12-26 14:09:50 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'dbe0148fd7e836e7635234b299e6d0adfae81a47ff5ca9c4f1d4ef0cea0b449f47614a1e2b7f5eb7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-26 14:09:50 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-26 14:09:50 [0.95ms] */
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 - 2024-12-26 14:09:51 [1.99ms] */
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 - 2024-12-26 14:09:51 [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 - 2024-12-26 14:09:51 [0.36ms] */
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 - 2024-12-26 14:09:51 [5.74ms] */
update `userprofiles` set `login_count` = 6485, `last_login` = '2024-12-26 14:09:51', `userprofiles`.`updated_at` = '2024-12-26 14:09:51' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:09:51 [0.25ms] */
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 - 2024-12-26 14:09:51 [0.61ms] */
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 - 2024-12-26 14:09:51 [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 - 2024-12-26 14:09:51 [0.21ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:09:51 [0.21ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2024-12-26 14:09:51 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:09:51 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:09:51 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:09:51 [3.16ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('e62518946ae2585fa30a2ef9e8ff95cbc9cd7adcde7702ebb5caa8643b44510cd720338b98a75b65', 116, 3, '[]', 0, '2024-12-26 14:09:51', '2024-12-26 14:09:51', '2025-12-26 14:09:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:09:51 [0.29ms] */
select * from `oauth_access_tokens` where `id` = 'e62518946ae2585fa30a2ef9e8ff95cbc9cd7adcde7702ebb5caa8643b44510cd720338b98a75b65' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:09:51 [2.71ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'e62518946ae2585fa30a2ef9e8ff95cbc9cd7adcde7702ebb5caa8643b44510cd720338b98a75b65';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2024-12-26 14:09:51 [2.23ms] */
select * from `oauth_access_tokens` where `id` = 'e62518946ae2585fa30a2ef9e8ff95cbc9cd7adcde7702ebb5caa8643b44510cd720338b98a75b65' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2024-12-26 14:09:51 [0.34ms] */
select * from `oauth_access_tokens` where `id` = 'e62518946ae2585fa30a2ef9e8ff95cbc9cd7adcde7702ebb5caa8643b44510cd720338b98a75b65' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2024-12-26 14:09:51 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2024-12-26 14:09:51 [0.26ms] */
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 - 2024-12-26 14:09:51 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'e62518946ae2585fa30a2ef9e8ff95cbc9cd7adcde7702ebb5caa8643b44510cd720338b98a75b65' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2024-12-26 14:09:51 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2024-12-26 14:09:51 [0.76ms] */
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 - 2024-12-26 14:09:52 [1.76ms] */
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 - 2024-12-26 14:09:52 [0.26ms] */
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 - 2024-12-26 14:09:52 [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 - 2024-12-26 14:09:52 [5.7ms] */
update `userprofiles` set `login_count` = 6486, `last_login` = '2024-12-26 14:09:52', `userprofiles`.`updated_at` = '2024-12-26 14:09:52' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:09:52 [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 - 2024-12-26 14:09:52 [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 - 2024-12-26 14:09:52 [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 - 2024-12-26 14:09:52 [0.19ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:09:52 [0.21ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2024-12-26 14:09:52 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:09:52 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:09:52 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:09:52 [3.1ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('cc43fa72bac0977faaaff1aaf5251b183d16baa5befe6d4ff73b93fa0ffc88247b6f922ee701fbc7', 116, 3, '[]', 0, '2024-12-26 14:09:52', '2024-12-26 14:09:52', '2025-12-26 14:09:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:09:52 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'cc43fa72bac0977faaaff1aaf5251b183d16baa5befe6d4ff73b93fa0ffc88247b6f922ee701fbc7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:09:52 [2.78ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'cc43fa72bac0977faaaff1aaf5251b183d16baa5befe6d4ff73b93fa0ffc88247b6f922ee701fbc7';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2024-12-26 14:09:52 [2.26ms] */
select * from `oauth_access_tokens` where `id` = 'cc43fa72bac0977faaaff1aaf5251b183d16baa5befe6d4ff73b93fa0ffc88247b6f922ee701fbc7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2024-12-26 14:09:52 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'cc43fa72bac0977faaaff1aaf5251b183d16baa5befe6d4ff73b93fa0ffc88247b6f922ee701fbc7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2024-12-26 14:09:52 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2024-12-26 14:09:52 [0.24ms] */
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 - 2024-12-26 14:09:52 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'cc43fa72bac0977faaaff1aaf5251b183d16baa5befe6d4ff73b93fa0ffc88247b6f922ee701fbc7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2024-12-26 14:09:52 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2024-12-26 14:09:52 [1.09ms] */
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 - 2024-12-26 14:10:25 [2.41ms] */
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 - 2024-12-26 14:10: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/login
   Query 3 - 2024-12-26 14:10:25 [0.38ms] */
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 - 2024-12-26 14:10:25 [14.49ms] */
update `userprofiles` set `login_count` = 6487, `last_login` = '2024-12-26 14:10:25', `userprofiles`.`updated_at` = '2024-12-26 14:10:25' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:10:25 [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 - 2024-12-26 14:10:25 [0.74ms] */
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 - 2024-12-26 14:10:25 [0.48ms] */
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 - 2024-12-26 14:10:25 [0.26ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:10:25 [0.23ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2024-12-26 14:10:25 [0.27ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:10:25 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:10:25 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:10:25 [3.22ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('3c439ccadf93a4c3cd356c749cae2a592c37c661f82f5ff740cc7f4759c00a432b508a0e207e17ee', 116, 3, '[]', 0, '2024-12-26 14:10:25', '2024-12-26 14:10:25', '2025-12-26 14:10:25');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:10:25 [0.36ms] */
select * from `oauth_access_tokens` where `id` = '3c439ccadf93a4c3cd356c749cae2a592c37c661f82f5ff740cc7f4759c00a432b508a0e207e17ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:10:25 [2.97ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '3c439ccadf93a4c3cd356c749cae2a592c37c661f82f5ff740cc7f4759c00a432b508a0e207e17ee';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 1 - 2024-12-26 14:10:25 [2.37ms] */
select * from `oauth_access_tokens` where `id` = '3c439ccadf93a4c3cd356c749cae2a592c37c661f82f5ff740cc7f4759c00a432b508a0e207e17ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 2 - 2024-12-26 14:10:25 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '3c439ccadf93a4c3cd356c749cae2a592c37c661f82f5ff740cc7f4759c00a432b508a0e207e17ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 3 - 2024-12-26 14:10:25 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 4 - 2024-12-26 14:10:25 [0.39ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 5 - 2024-12-26 14:10:25 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '3c439ccadf93a4c3cd356c749cae2a592c37c661f82f5ff740cc7f4759c00a432b508a0e207e17ee' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 6 - 2024-12-26 14:10:25 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 7 - 2024-12-26 14:10:25 [20.09ms] */
select `invoice`.`invoice_number`, `invoice`.`invoice_date` as `issue_date`, `invoice`.`due_date`, `invoice`.`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 customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `invoice`.`total_invoice_amount`, `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 `transaction`.`invoice_id` = `invoice`.`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 `invoice`.`id` = 101099 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 8 - 2024-12-26 14:10:25 [0.38ms] */
select `id`, `item`, `description`, `quantity`, `unit_price`, `total_price` from `invoice_item` where `invoice_id` = 101099 and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2024-12-26 14:10:38 [1.3ms] */
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 - 2024-12-26 14:10:38 [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 - 2024-12-26 14:10:38 [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 - 2024-12-26 14:10:38 [5.99ms] */
update `userprofiles` set `login_count` = 6488, `last_login` = '2024-12-26 14:10:38', `userprofiles`.`updated_at` = '2024-12-26 14:10:38' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:10:38 [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 - 2024-12-26 14:10:38 [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 - 2024-12-26 14:10:38 [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 - 2024-12-26 14:10:38 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:10:38 [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 - 2024-12-26 14:10:38 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:10:38 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:10:38 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:10:38 [3.16ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('684fa34dca1125c6a14c0623e71ac021e372d2fa8257eb413dbd163c7e63d9be8c465fab3dbac05c', 116, 3, '[]', 0, '2024-12-26 14:10:38', '2024-12-26 14:10:38', '2025-12-26 14:10:38');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:10:38 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '684fa34dca1125c6a14c0623e71ac021e372d2fa8257eb413dbd163c7e63d9be8c465fab3dbac05c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:10:38 [2.96ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '684fa34dca1125c6a14c0623e71ac021e372d2fa8257eb413dbd163c7e63d9be8c465fab3dbac05c';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 1 - 2024-12-26 14:10:38 [2.26ms] */
select * from `oauth_access_tokens` where `id` = '684fa34dca1125c6a14c0623e71ac021e372d2fa8257eb413dbd163c7e63d9be8c465fab3dbac05c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 2 - 2024-12-26 14:10:38 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '684fa34dca1125c6a14c0623e71ac021e372d2fa8257eb413dbd163c7e63d9be8c465fab3dbac05c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 3 - 2024-12-26 14:10:38 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 4 - 2024-12-26 14:10:38 [0.25ms] */
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 - 2024-12-26 14:10:38 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '684fa34dca1125c6a14c0623e71ac021e372d2fa8257eb413dbd163c7e63d9be8c465fab3dbac05c' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 6 - 2024-12-26 14:10:38 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 7 - 2024-12-26 14:10:38 [0.48ms] */
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 - 2024-12-26 14:10:39 [2.02ms] */
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 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [5.88ms] */
update `userprofiles` set `login_count` = 6489, `last_login` = '2024-12-26 14:10:39', `userprofiles`.`updated_at` = '2024-12-26 14:10:39' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [0.91ms] */
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 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [0.17ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:10:39 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:10:39 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:10:39 [3.11ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('1112064723992e882fbf988edf8b73e114909383889337d28a5c3ed24a7768687d0752564fba8024', 116, 3, '[]', 0, '2024-12-26 14:10:39', '2024-12-26 14:10:39', '2025-12-26 14:10:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:10:39 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '1112064723992e882fbf988edf8b73e114909383889337d28a5c3ed24a7768687d0752564fba8024' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:10:39 [2.83ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '1112064723992e882fbf988edf8b73e114909383889337d28a5c3ed24a7768687d0752564fba8024';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-26 14:10:39 [1.43ms] */
select * from `oauth_access_tokens` where `id` = '1112064723992e882fbf988edf8b73e114909383889337d28a5c3ed24a7768687d0752564fba8024' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-26 14:10:39 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '1112064723992e882fbf988edf8b73e114909383889337d28a5c3ed24a7768687d0752564fba8024' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-26 14:10:39 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1112064723992e882fbf988edf8b73e114909383889337d28a5c3ed24a7768687d0752564fba8024' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-26 14:10:39 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-26 14:10:39 [0.34ms] */
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 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [0.39ms] */
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 - 2024-12-26 14:10:39 [5.84ms] */
update `userprofiles` set `login_count` = 6490, `userprofiles`.`updated_at` = '2024-12-26 14:10:39' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:10:39 [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 - 2024-12-26 14:10:39 [0.26ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:10:39 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:10:39 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:10:39 [3.23ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('64cdf8dc230059458ce1ed9b746cf06e8491b4df29d7bf4e5d623b4ddf98c69d556aceff2c7e63db', 116, 3, '[]', 0, '2024-12-26 14:10:39', '2024-12-26 14:10:39', '2025-12-26 14:10:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:10:39 [0.36ms] */
select * from `oauth_access_tokens` where `id` = '64cdf8dc230059458ce1ed9b746cf06e8491b4df29d7bf4e5d623b4ddf98c69d556aceff2c7e63db' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:10:39 [3.5ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '64cdf8dc230059458ce1ed9b746cf06e8491b4df29d7bf4e5d623b4ddf98c69d556aceff2c7e63db';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 1 - 2024-12-26 14:10:39 [2.15ms] */
select * from `oauth_access_tokens` where `id` = '64cdf8dc230059458ce1ed9b746cf06e8491b4df29d7bf4e5d623b4ddf98c69d556aceff2c7e63db' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 2 - 2024-12-26 14:10:39 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '64cdf8dc230059458ce1ed9b746cf06e8491b4df29d7bf4e5d623b4ddf98c69d556aceff2c7e63db' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 3 - 2024-12-26 14:10:39 [0.28ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 4 - 2024-12-26 14:10:39 [0.24ms] */
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 - 2024-12-26 14:10:39 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '64cdf8dc230059458ce1ed9b746cf06e8491b4df29d7bf4e5d623b4ddf98c69d556aceff2c7e63db' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 6 - 2024-12-26 14:10:39 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 7 - 2024-12-26 14:10:39 [1.09ms] */
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 - 2024-12-26 14:10:40 [2.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 - 2024-12-26 14:10:40 [0.18ms] */
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 - 2024-12-26 14:10:40 [0.38ms] */
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 - 2024-12-26 14:10:40 [5.85ms] */
update `userprofiles` set `login_count` = 6491, `last_login` = '2024-12-26 14:10:40', `userprofiles`.`updated_at` = '2024-12-26 14:10:40' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:10:40 [0.25ms] */
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 - 2024-12-26 14:10:40 [0.8ms] */
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 - 2024-12-26 14:10:40 [0.35ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (116) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2024-12-26 14:10:40 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:10:40 [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 - 2024-12-26 14:10:40 [0.26ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:10:40 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:10:40 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:10:40 [3.45ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('56aa35a71ddcac6a73487a428da5ba8a9c42989f272a572fb641e2541551be609293dc42a2140ade', 116, 3, '[]', 0, '2024-12-26 14:10:40', '2024-12-26 14:10:40', '2025-12-26 14:10:40');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:10:40 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '56aa35a71ddcac6a73487a428da5ba8a9c42989f272a572fb641e2541551be609293dc42a2140ade' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:10:40 [2.8ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '56aa35a71ddcac6a73487a428da5ba8a9c42989f272a572fb641e2541551be609293dc42a2140ade';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2024-12-26 14:10:40 [1.44ms] */
select * from `oauth_access_tokens` where `id` = '56aa35a71ddcac6a73487a428da5ba8a9c42989f272a572fb641e2541551be609293dc42a2140ade' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2024-12-26 14:10:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '56aa35a71ddcac6a73487a428da5ba8a9c42989f272a572fb641e2541551be609293dc42a2140ade' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2024-12-26 14:10:40 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2024-12-26 14:10:40 [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 - 2024-12-26 14:10:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '56aa35a71ddcac6a73487a428da5ba8a9c42989f272a572fb641e2541551be609293dc42a2140ade' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2024-12-26 14:10:40 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2024-12-26 14:10:40 [0.34ms] */
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 - 2024-12-26 14:10:41 [1.35ms] */
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 - 2024-12-26 14:10:41 [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 - 2024-12-26 14:10:41 [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 - 2024-12-26 14:10:41 [5.83ms] */
update `userprofiles` set `login_count` = 6492, `last_login` = '2024-12-26 14:10:41', `userprofiles`.`updated_at` = '2024-12-26 14:10:41' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:10:41 [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 - 2024-12-26 14:10:41 [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 - 2024-12-26 14:10:41 [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 - 2024-12-26 14:10:41 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:10:41 [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 - 2024-12-26 14:10:41 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:10:41 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:10:41 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:10:41 [3.14ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('0321874197c565e6585d5ef492ed2f417f332a4b448ba26ed9da197b15692bf1ebdf87407adc6867', 116, 3, '[]', 0, '2024-12-26 14:10:41', '2024-12-26 14:10:41', '2025-12-26 14:10:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:10:41 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '0321874197c565e6585d5ef492ed2f417f332a4b448ba26ed9da197b15692bf1ebdf87407adc6867' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:10:41 [2.9ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '0321874197c565e6585d5ef492ed2f417f332a4b448ba26ed9da197b15692bf1ebdf87407adc6867';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2024-12-26 14:10:41 [1.45ms] */
select * from `oauth_access_tokens` where `id` = '0321874197c565e6585d5ef492ed2f417f332a4b448ba26ed9da197b15692bf1ebdf87407adc6867' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2024-12-26 14:10:41 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '0321874197c565e6585d5ef492ed2f417f332a4b448ba26ed9da197b15692bf1ebdf87407adc6867' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2024-12-26 14:10:41 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2024-12-26 14:10:41 [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 - 2024-12-26 14:10:41 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '0321874197c565e6585d5ef492ed2f417f332a4b448ba26ed9da197b15692bf1ebdf87407adc6867' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2024-12-26 14:10:41 [0.29ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2024-12-26 14:10:41 [0.56ms] */
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 - 2024-12-26 14:11:15 [2.04ms] */
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 - 2024-12-26 14:11:15 [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 - 2024-12-26 14:11:15 [0.46ms] */
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 - 2024-12-26 14:11:15 [5.99ms] */
update `userprofiles` set `login_count` = 6493, `last_login` = '2024-12-26 14:11:15', `userprofiles`.`updated_at` = '2024-12-26 14:11:15' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:11:15 [0.37ms] */
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 - 2024-12-26 14:11:15 [0.62ms] */
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 - 2024-12-26 14:11:15 [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 - 2024-12-26 14:11:15 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:11:15 [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 - 2024-12-26 14:11:15 [0.22ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:11:15 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:11:15 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:11:15 [3.29ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('9e1e387f8b0ced6ebe7092d8d7fef313a2ed60765286401ac80a8ffc9d06c91ddc3345c79569b8e4', 116, 3, '[]', 0, '2024-12-26 14:11:15', '2024-12-26 14:11:15', '2025-12-26 14:11:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:11:15 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '9e1e387f8b0ced6ebe7092d8d7fef313a2ed60765286401ac80a8ffc9d06c91ddc3345c79569b8e4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:11:15 [2.9ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '9e1e387f8b0ced6ebe7092d8d7fef313a2ed60765286401ac80a8ffc9d06c91ddc3345c79569b8e4';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 1 - 2024-12-26 14:11:15 [1.55ms] */
select * from `oauth_access_tokens` where `id` = '9e1e387f8b0ced6ebe7092d8d7fef313a2ed60765286401ac80a8ffc9d06c91ddc3345c79569b8e4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 2 - 2024-12-26 14:11:15 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9e1e387f8b0ced6ebe7092d8d7fef313a2ed60765286401ac80a8ffc9d06c91ddc3345c79569b8e4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 3 - 2024-12-26 14:11:15 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 4 - 2024-12-26 14:11:15 [0.18ms] */
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 - 2024-12-26 14:11:15 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '9e1e387f8b0ced6ebe7092d8d7fef313a2ed60765286401ac80a8ffc9d06c91ddc3345c79569b8e4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 6 - 2024-12-26 14:11:15 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 7 - 2024-12-26 14:11:15 [0.31ms] */
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 - 2024-12-26 14:13:31 [2.45ms] */
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 - 2024-12-26 14:13:31 [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 - 2024-12-26 14:13:31 [0.36ms] */
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 - 2024-12-26 14:13:31 [13.19ms] */
update `userprofiles` set `login_count` = 6494, `last_login` = '2024-12-26 14:13:31', `userprofiles`.`updated_at` = '2024-12-26 14:13:31' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:13:31 [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 - 2024-12-26 14:13:31 [0.69ms] */
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 - 2024-12-26 14:13:31 [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 - 2024-12-26 14:13:31 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:13:31 [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 - 2024-12-26 14:13:31 [0.16ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:13:31 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:13:31 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:13:31 [3.27ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('56ef5d73c7848b8de609ffe52b3b80fecf0458b7640a57a0ea8e7157e210f6bd78114566e1e8e3b4', 116, 3, '[]', 0, '2024-12-26 14:13:31', '2024-12-26 14:13:31', '2025-12-26 14:13:31');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:13:32 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '56ef5d73c7848b8de609ffe52b3b80fecf0458b7640a57a0ea8e7157e210f6bd78114566e1e8e3b4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:13:32 [2.96ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '56ef5d73c7848b8de609ffe52b3b80fecf0458b7640a57a0ea8e7157e210f6bd78114566e1e8e3b4';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 1 - 2024-12-26 14:13:32 [2.34ms] */
select * from `oauth_access_tokens` where `id` = '56ef5d73c7848b8de609ffe52b3b80fecf0458b7640a57a0ea8e7157e210f6bd78114566e1e8e3b4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 2 - 2024-12-26 14:13:32 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '56ef5d73c7848b8de609ffe52b3b80fecf0458b7640a57a0ea8e7157e210f6bd78114566e1e8e3b4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 3 - 2024-12-26 14:13:32 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 4 - 2024-12-26 14:13:32 [0.3ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 5 - 2024-12-26 14:13:32 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '56ef5d73c7848b8de609ffe52b3b80fecf0458b7640a57a0ea8e7157e210f6bd78114566e1e8e3b4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 6 - 2024-12-26 14:13:32 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 7 - 2024-12-26 14:13:32 [0.28ms] */
select `invoice`.`invoice_number`, `invoice`.`invoice_date` as `issue_date`, `invoice`.`due_date`, `invoice`.`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 customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `invoice`.`total_invoice_amount`, `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 `transaction`.`invoice_id` = `invoice`.`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 `invoice`.`id` = 101099 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 8 - 2024-12-26 14:13:32 [0.18ms] */
select `id`, `item`, `description`, `quantity`, `unit_price`, `total_price` from `invoice_item` where `invoice_id` = 101099 and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2024-12-26 14:13:38 [2.34ms] */
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 - 2024-12-26 14:13:38 [0.19ms] */
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 - 2024-12-26 14:13:38 [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 - 2024-12-26 14:13:38 [10.96ms] */
update `userprofiles` set `login_count` = 6495, `last_login` = '2024-12-26 14:13:38', `userprofiles`.`updated_at` = '2024-12-26 14:13:38' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:13:38 [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 - 2024-12-26 14:13:38 [0.59ms] */
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 - 2024-12-26 14:13:38 [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 - 2024-12-26 14:13:38 [0.19ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:13:38 [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 - 2024-12-26 14:13:38 [0.22ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:13:38 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:13:38 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:13:38 [5.57ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('2effa2da9cbfb056d01358235e47dbc7b82eda88f6f6521ee6f226845e7da8f3245bf20272a0ffc8', 116, 3, '[]', 0, '2024-12-26 14:13:38', '2024-12-26 14:13:38', '2025-12-26 14:13:38');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:13:38 [0.45ms] */
select * from `oauth_access_tokens` where `id` = '2effa2da9cbfb056d01358235e47dbc7b82eda88f6f6521ee6f226845e7da8f3245bf20272a0ffc8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:13:38 [3.09ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '2effa2da9cbfb056d01358235e47dbc7b82eda88f6f6521ee6f226845e7da8f3245bf20272a0ffc8';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 1 - 2024-12-26 14:13:38 [1.61ms] */
select * from `oauth_access_tokens` where `id` = '2effa2da9cbfb056d01358235e47dbc7b82eda88f6f6521ee6f226845e7da8f3245bf20272a0ffc8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 2 - 2024-12-26 14:13:38 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '2effa2da9cbfb056d01358235e47dbc7b82eda88f6f6521ee6f226845e7da8f3245bf20272a0ffc8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 3 - 2024-12-26 14:13:38 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 4 - 2024-12-26 14:13:38 [0.16ms] */
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 - 2024-12-26 14:13:38 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '2effa2da9cbfb056d01358235e47dbc7b82eda88f6f6521ee6f226845e7da8f3245bf20272a0ffc8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 6 - 2024-12-26 14:13:38 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicles
   Query 7 - 2024-12-26 14:13:38 [1.07ms] */
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 - 2024-12-26 14:13:39 [2.14ms] */
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 - 2024-12-26 14:13:39 [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 - 2024-12-26 14:13:39 [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 - 2024-12-26 14:13:39 [5.83ms] */
update `userprofiles` set `login_count` = 6496, `last_login` = '2024-12-26 14:13:39', `userprofiles`.`updated_at` = '2024-12-26 14:13:39' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:13:39 [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 - 2024-12-26 14:13:39 [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 - 2024-12-26 14:13:39 [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 - 2024-12-26 14:13:39 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:13:39 [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 - 2024-12-26 14:13:39 [0.8ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:13:39 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:13:39 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:13:39 [3.46ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('67fdbc8a8b4fbc26b8f808fb58c3889c2e8053d49a0a9e5b69823e77fa9842a2c98a61ec99865ec9', 116, 3, '[]', 0, '2024-12-26 14:13:39', '2024-12-26 14:13:39', '2025-12-26 14:13:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:13:39 [0.55ms] */
select * from `oauth_access_tokens` where `id` = '67fdbc8a8b4fbc26b8f808fb58c3889c2e8053d49a0a9e5b69823e77fa9842a2c98a61ec99865ec9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:13:39 [3.03ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '67fdbc8a8b4fbc26b8f808fb58c3889c2e8053d49a0a9e5b69823e77fa9842a2c98a61ec99865ec9';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-26 14:13:39 [1.44ms] */
select * from `oauth_access_tokens` where `id` = '67fdbc8a8b4fbc26b8f808fb58c3889c2e8053d49a0a9e5b69823e77fa9842a2c98a61ec99865ec9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-26 14:13:39 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '67fdbc8a8b4fbc26b8f808fb58c3889c2e8053d49a0a9e5b69823e77fa9842a2c98a61ec99865ec9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-26 14:13:39 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-26 14:13:39 [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 - 2024-12-26 14:13:39 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '67fdbc8a8b4fbc26b8f808fb58c3889c2e8053d49a0a9e5b69823e77fa9842a2c98a61ec99865ec9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-26 14:13:39 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-26 14:13:39 [0.35ms] */
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 - 2024-12-26 14:13:40 [2.3ms] */
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 - 2024-12-26 14:13:40 [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 - 2024-12-26 14:13:40 [0.36ms] */
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 - 2024-12-26 14:13:40 [10.92ms] */
update `userprofiles` set `login_count` = 6497, `last_login` = '2024-12-26 14:13:40', `userprofiles`.`updated_at` = '2024-12-26 14:13:40' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:13:40 [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 - 2024-12-26 14:13:40 [0.69ms] */
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 - 2024-12-26 14:13:40 [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 - 2024-12-26 14:13:40 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:13:40 [0.11ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2024-12-26 14:13:40 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:13:40 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:13:40 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:13:40 [3.02ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('8bc2c84b8b6fb5626bb39091e32c6a1d358b50fd27d3f0fc185f57722e5fe832f50bea978f574a45', 116, 3, '[]', 0, '2024-12-26 14:13:40', '2024-12-26 14:13:40', '2025-12-26 14:13:40');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:13:40 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '8bc2c84b8b6fb5626bb39091e32c6a1d358b50fd27d3f0fc185f57722e5fe832f50bea978f574a45' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:13:40 [3.1ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '8bc2c84b8b6fb5626bb39091e32c6a1d358b50fd27d3f0fc185f57722e5fe832f50bea978f574a45';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2024-12-26 14:13:40 [1.56ms] */
select * from `oauth_access_tokens` where `id` = '8bc2c84b8b6fb5626bb39091e32c6a1d358b50fd27d3f0fc185f57722e5fe832f50bea978f574a45' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2024-12-26 14:13:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '8bc2c84b8b6fb5626bb39091e32c6a1d358b50fd27d3f0fc185f57722e5fe832f50bea978f574a45' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2024-12-26 14:13:40 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2024-12-26 14:13:40 [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 - 2024-12-26 14:13:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '8bc2c84b8b6fb5626bb39091e32c6a1d358b50fd27d3f0fc185f57722e5fe832f50bea978f574a45' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2024-12-26 14:13:40 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2024-12-26 14:13:40 [0.3ms] */
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 - 2024-12-26 14:13:41 [2.13ms] */
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 - 2024-12-26 14:13:41 [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 - 2024-12-26 14:13:41 [0.36ms] */
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 - 2024-12-26 14:13:41 [10.79ms] */
update `userprofiles` set `login_count` = 6498, `last_login` = '2024-12-26 14:13:41', `userprofiles`.`updated_at` = '2024-12-26 14:13:41' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:13:41 [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 - 2024-12-26 14:13:41 [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 - 2024-12-26 14:13:41 [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 - 2024-12-26 14:13:41 [0.25ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:13:41 [0.23ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2024-12-26 14:13:41 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:13:41 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:13:41 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:13:41 [3.21ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('a83d6f9e7b9cd1c46d7fcd763256461bed9e3e21d45c73066e8d1ae72160a9be92bd5385db738ade', 116, 3, '[]', 0, '2024-12-26 14:13:41', '2024-12-26 14:13:41', '2025-12-26 14:13:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:13:41 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'a83d6f9e7b9cd1c46d7fcd763256461bed9e3e21d45c73066e8d1ae72160a9be92bd5385db738ade' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:13:41 [2.77ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'a83d6f9e7b9cd1c46d7fcd763256461bed9e3e21d45c73066e8d1ae72160a9be92bd5385db738ade';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2024-12-26 14:13:41 [1.59ms] */
select * from `oauth_access_tokens` where `id` = 'a83d6f9e7b9cd1c46d7fcd763256461bed9e3e21d45c73066e8d1ae72160a9be92bd5385db738ade' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2024-12-26 14:13:41 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'a83d6f9e7b9cd1c46d7fcd763256461bed9e3e21d45c73066e8d1ae72160a9be92bd5385db738ade' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2024-12-26 14:13:41 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2024-12-26 14:13:41 [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 - 2024-12-26 14:13:41 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a83d6f9e7b9cd1c46d7fcd763256461bed9e3e21d45c73066e8d1ae72160a9be92bd5385db738ade' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2024-12-26 14:13:41 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2024-12-26 14:13:41 [0.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` = 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 - 2024-12-26 14:13:43 [2.22ms] */
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 - 2024-12-26 14:13:43 [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 - 2024-12-26 14:13:43 [0.47ms] */
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 - 2024-12-26 14:13:43 [6.93ms] */
update `userprofiles` set `login_count` = 6499, `last_login` = '2024-12-26 14:13:43', `userprofiles`.`updated_at` = '2024-12-26 14:13:43' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:13:43 [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 - 2024-12-26 14:13:43 [0.61ms] */
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 - 2024-12-26 14:13:43 [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 - 2024-12-26 14:13:43 [0.19ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:13:43 [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 - 2024-12-26 14:13:43 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:13:43 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:13:43 [0.12ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:13:43 [3.03ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4be8da863f8644ec9150970d7090fa6a2de01d37dab658d2736950390370ddae528932dc1ae9407b', 116, 3, '[]', 0, '2024-12-26 14:13:43', '2024-12-26 14:13:43', '2025-12-26 14:13:43');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:13:43 [0.38ms] */
select * from `oauth_access_tokens` where `id` = '4be8da863f8644ec9150970d7090fa6a2de01d37dab658d2736950390370ddae528932dc1ae9407b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:13:43 [3.03ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4be8da863f8644ec9150970d7090fa6a2de01d37dab658d2736950390370ddae528932dc1ae9407b';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 1 - 2024-12-26 14:13:43 [1.46ms] */
select * from `oauth_access_tokens` where `id` = '4be8da863f8644ec9150970d7090fa6a2de01d37dab658d2736950390370ddae528932dc1ae9407b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 2 - 2024-12-26 14:13:43 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4be8da863f8644ec9150970d7090fa6a2de01d37dab658d2736950390370ddae528932dc1ae9407b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 3 - 2024-12-26 14:13:43 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 4 - 2024-12-26 14:13:43 [0.16ms] */
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 - 2024-12-26 14:13:43 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4be8da863f8644ec9150970d7090fa6a2de01d37dab658d2736950390370ddae528932dc1ae9407b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 6 - 2024-12-26 14:13:43 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 7 - 2024-12-26 14:13:43 [0.61ms] */
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` = 101390 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 8 - 2024-12-26 14:13:43 [0.47ms] */
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 - 2024-12-26 14:13:43 [0.28ms] */
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/login
   Query 1 - 2024-12-26 14:14:06 [1.29ms] */
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 - 2024-12-26 14:14:06 [0.19ms] */
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 - 2024-12-26 14:14:06 [0.39ms] */
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 - 2024-12-26 14:14:06 [11.82ms] */
update `userprofiles` set `login_count` = 6500, `last_login` = '2024-12-26 14:14:06', `userprofiles`.`updated_at` = '2024-12-26 14:14:06' where `id` = 116;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-26 14:14:06 [0.26ms] */
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 - 2024-12-26 14:14:06 [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 - 2024-12-26 14:14:06 [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 - 2024-12-26 14:14:06 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-26 14:14:06 [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 - 2024-12-26 14:14:06 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-26 14:14:06 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-26 14:14:06 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-26 14:14:06 [3.51ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4fafde33bc62ce334119c8f9f4bd0a92924c9b24df0c979dffeed2c9a6ffe59bcc6e5ebc377b54e3', 116, 3, '[]', 0, '2024-12-26 14:14:06', '2024-12-26 14:14:06', '2025-12-26 14:14:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-26 14:14:06 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4fafde33bc62ce334119c8f9f4bd0a92924c9b24df0c979dffeed2c9a6ffe59bcc6e5ebc377b54e3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-26 14:14:06 [3.07ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4fafde33bc62ce334119c8f9f4bd0a92924c9b24df0c979dffeed2c9a6ffe59bcc6e5ebc377b54e3';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 1 - 2024-12-26 14:14:06 [1.42ms] */
select * from `oauth_access_tokens` where `id` = '4fafde33bc62ce334119c8f9f4bd0a92924c9b24df0c979dffeed2c9a6ffe59bcc6e5ebc377b54e3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 2 - 2024-12-26 14:14:06 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4fafde33bc62ce334119c8f9f4bd0a92924c9b24df0c979dffeed2c9a6ffe59bcc6e5ebc377b54e3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 3 - 2024-12-26 14:14:06 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 4 - 2024-12-26 14:14:06 [0.16ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 5 - 2024-12-26 14:14:06 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4fafde33bc62ce334119c8f9f4bd0a92924c9b24df0c979dffeed2c9a6ffe59bcc6e5ebc377b54e3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 6 - 2024-12-26 14:14:06 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 7 - 2024-12-26 14:14:06 [19.88ms] */
select `invoice`.`invoice_number`, `invoice`.`invoice_date` as `issue_date`, `invoice`.`due_date`, `invoice`.`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 customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `invoice`.`total_invoice_amount`, `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 `transaction`.`invoice_id` = `invoice`.`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 `invoice`.`id` = 101098 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoice
   Query 8 - 2024-12-26 14:14:06 [0.35ms] */
select `id`, `item`, `description`, `quantity`, `unit_price`, `total_price` from `invoice_item` where `invoice_id` = 101098 and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 1 - 2024-12-26 14:17:01 [1.42ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 2 - 2024-12-26 14:17:01 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 3 - 2024-12-26 14:17:01 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 4 - 2024-12-26 14:17:01 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 5 - 2024-12-26 14:17:01 [15.42ms] */
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` <= '2024-12-26 14:17:01' 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): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 6 - 2024-12-26 14:17:01 [9.21ms] */
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` <= '2024-12-26 14:17:01' 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 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 7 - 2024-12-26 14:17:01 [0.16ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 2 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 8 - 2024-12-26 14:17:01 [0.14ms] */
select * from `party_vehicle` where `vehicle_id` = 2 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 9 - 2024-12-26 14:17:01 [0.14ms] */
select * from `party` where `party`.`id` = 58204 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 10 - 2024-12-26 14:17:01 [0.16ms] */
select * from `person` where `person`.`id` = 55761 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 11 - 2024-12-26 14:17:01 [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): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 12 - 2024-12-26 14:17:01 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 13 - 2024-12-26 14:17:01 [0.16ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 14 - 2024-12-26 14:17:01 [0.14ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 15 - 2024-12-26 14:17:01 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 16 - 2024-12-26 14:17:01 [0.61ms] */
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` = 2 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 17 - 2024-12-26 14:17:01 [0.14ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 4 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 18 - 2024-12-26 14:17:01 [0.17ms] */
select * from `party_vehicle` where `vehicle_id` = 4 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 19 - 2024-12-26 14:17:01 [0.16ms] */
select * from `party` where `party`.`id` = 23256 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 20 - 2024-12-26 14:17:01 [0.14ms] */
select * from `person` where `person`.`id` = 23256 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 21 - 2024-12-26 14:17:01 [0.13ms] */
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): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 22 - 2024-12-26 14:17:01 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 1 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 23 - 2024-12-26 14:17:01 [0.12ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 24 - 2024-12-26 14:17:01 [0.12ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 25 - 2024-12-26 14:17:01 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 26 - 2024-12-26 14:17:01 [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` = 4 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 27 - 2024-12-26 14:17:01 [0.14ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 6 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 28 - 2024-12-26 14:17:01 [0.14ms] */
select * from `party_vehicle` where `vehicle_id` = 6 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 29 - 2024-12-26 14:17:01 [0.15ms] */
select * from `party` where `party`.`id` = 23562 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 30 - 2024-12-26 14:17:01 [0.15ms] */
select * from `person` where `person`.`id` = 23562 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 31 - 2024-12-26 14:17:01 [0.13ms] */
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): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 32 - 2024-12-26 14:17:01 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 1 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 33 - 2024-12-26 14:17:01 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 34 - 2024-12-26 14:17:01 [0.12ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 35 - 2024-12-26 14:17:01 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 36 - 2024-12-26 14:17:01 [0.58ms] */
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` = 6 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 37 - 2024-12-26 14:17:01 [0.14ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 38 - 2024-12-26 14:17:01 [0.13ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 39 - 2024-12-26 14:17:01 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 18 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 40 - 2024-12-26 14:17:01 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 18 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 41 - 2024-12-26 14:17:01 [0.15ms] */
select * from `party` where `party`.`id` = 24797 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 42 - 2024-12-26 14:17:01 [0.15ms] */
select * from `person` where `person`.`id` = 24797 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 43 - 2024-12-26 14:17:01 [0.13ms] */
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): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 44 - 2024-12-26 14:17:01 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 18 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 45 - 2024-12-26 14:17:01 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 46 - 2024-12-26 14:17:01 [0.12ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 47 - 2024-12-26 14:17:01 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 48 - 2024-12-26 14:17:01 [0.46ms] */
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` = 18 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 49 - 2024-12-26 14:17:01 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 30 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 50 - 2024-12-26 14:17:01 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 30 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 51 - 2024-12-26 14:17:01 [0.14ms] */
select * from `party` where `party`.`id` = 27946 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 52 - 2024-12-26 14:17:01 [0.15ms] */
select * from `person` where `person`.`id` = 27946 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 53 - 2024-12-26 14:17:01 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 54 - 2024-12-26 14:17:01 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 55 - 2024-12-26 14:17:01 [0.13ms] */
select * from `model` where `model`.`id` = 19 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 56 - 2024-12-26 14:17:01 [0.13ms] */
select * from `make` where `make`.`id` = 2 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 57 - 2024-12-26 14:17:01 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 9 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 58 - 2024-12-26 14:17:01 [0.46ms] */
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` = 30 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 59 - 2024-12-26 14:17:01 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 30 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 60 - 2024-12-26 14:17:01 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 30 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 61 - 2024-12-26 14:17:01 [0.14ms] */
select * from `party` where `party`.`id` = 27946 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 62 - 2024-12-26 14:17:01 [0.15ms] */
select * from `person` where `person`.`id` = 27946 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 63 - 2024-12-26 14:17:01 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 64 - 2024-12-26 14:17:01 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 65 - 2024-12-26 14:17:01 [0.13ms] */
select * from `model` where `model`.`id` = 19 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 66 - 2024-12-26 14:17:01 [0.13ms] */
select * from `make` where `make`.`id` = 2 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 67 - 2024-12-26 14:17:01 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 9 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 68 - 2024-12-26 14:17:01 [0.17ms] */
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` = 30 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 69 - 2024-12-26 14:17:01 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 34 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 70 - 2024-12-26 14:17:01 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 34 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 71 - 2024-12-26 14:17:01 [0.15ms] */
select * from `party` where `party`.`id` = 27081 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 72 - 2024-12-26 14:17:01 [0.15ms] */
select * from `person` where `person`.`id` = 27081 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 73 - 2024-12-26 14:17:01 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 74 - 2024-12-26 14:17:01 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 6 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 75 - 2024-12-26 14:17:01 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 76 - 2024-12-26 14:17:01 [0.13ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 77 - 2024-12-26 14:17:01 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 78 - 2024-12-26 14:17:01 [0.48ms] */
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` = 34 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 79 - 2024-12-26 14:17:01 [0.15ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 54 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 80 - 2024-12-26 14:17:01 [0.14ms] */
select * from `party_vehicle` where `vehicle_id` = 54 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 81 - 2024-12-26 14:17:01 [0.15ms] */
select * from `party` where `party`.`id` = 3072 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 82 - 2024-12-26 14:17:01 [0.15ms] */
select * from `person` where `person`.`id` = 3072 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 83 - 2024-12-26 14:17:01 [0.13ms] */
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): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 84 - 2024-12-26 14:17:01 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 1 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 85 - 2024-12-26 14:17:01 [0.14ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 86 - 2024-12-26 14:17:01 [0.12ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 87 - 2024-12-26 14:17:01 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 88 - 2024-12-26 14:17:01 [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` = 54 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 89 - 2024-12-26 14:17:01 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 59 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 90 - 2024-12-26 14:17:01 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 59 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 91 - 2024-12-26 14:17:01 [0.14ms] */
select * from `party` where `party`.`id` = 3053 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 92 - 2024-12-26 14:17:01 [0.15ms] */
select * from `person` where `person`.`id` = 3053 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 93 - 2024-12-26 14:17:01 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 94 - 2024-12-26 14:17:01 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 95 - 2024-12-26 14:17:01 [0.15ms] */
select * from `model` where `model`.`id` = 85 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 96 - 2024-12-26 14:17:01 [0.12ms] */
select * from `make` where `make`.`id` = 5 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 97 - 2024-12-26 14:17:01 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 98 - 2024-12-26 14:17:01 [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` = 59 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 99 - 2024-12-26 14:17:01 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 60 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 100 - 2024-12-26 14:17:01 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 60 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 101 - 2024-12-26 14:17:01 [0.14ms] */
select * from `party` where `party`.`id` = 3054 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 102 - 2024-12-26 14:17:01 [0.14ms] */
select * from `person` where `person`.`id` = 3054 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 103 - 2024-12-26 14:17:01 [0.15ms] */
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): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 104 - 2024-12-26 14:17:01 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 1 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 105 - 2024-12-26 14:17:01 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 106 - 2024-12-26 14:17:01 [0.13ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 107 - 2024-12-26 14:17:01 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 108 - 2024-12-26 14:17:01 [0.48ms] */
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` = 60 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 109 - 2024-12-26 14:17:01 [0.13ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 1 - 2024-12-26 14:17:05 [2.06ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 2 - 2024-12-26 14:17:05 [0.83ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 3 - 2024-12-26 14:17:05 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 4 - 2024-12-26 14:17:05 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 5 - 2024-12-26 14:17:05 [0.29ms] */
select * from `vehicle` where `id` = 59 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 6 - 2024-12-26 14:17:05 [0.29ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 59 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 7 - 2024-12-26 14:17:05 [0.31ms] */
select * from `vehicle` where `id` = 59 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 8 - 2024-12-26 14:17:05 [0.27ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 59 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 9 - 2024-12-26 14:17:05 [1.93ms] */
select * from `make` where `make`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 10 - 2024-12-26 14:17:05 [0.15ms] */
select * from `model` where `make_id` is null and `model`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 11 - 2024-12-26 14:17:05 [0.24ms] */
select * from `model` where `model`.`id` = 85 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 12 - 2024-12-26 14:17:05 [0.14ms] */
select * from `make` where `make`.`id` = 5 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 13 - 2024-12-26 14:17:05 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 14 - 2024-12-26 14:17:05 [0.47ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` = 59 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 15 - 2024-12-26 14:17:05 [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): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 16 - 2024-12-26 14:17:05 [0.15ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 17 - 2024-12-26 14:17:05 [0.16ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 1 and `vehicle_color`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 18 - 2024-12-26 14:17:05 [0.41ms] */
select * from `fuel_type` where `fuel_type`.`id` = 2 and `fuel_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 19 - 2024-12-26 14:17:05 [0.43ms] */
select * from `party_vehicle` where `vehicle_id` = 59 and `party_vehicle`.`deleted_at` is null order by `updated_at` desc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 20 - 2024-12-26 14:17:05 [0.45ms] */
select * from `vehicle` where `vehicle`.`id` = 59 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 21 - 2024-12-26 14:17:05 [0.16ms] */
select * from `model` where `model`.`id` = 85 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 22 - 2024-12-26 14:17:05 [0.13ms] */
select * from `make` where `make`.`id` = 5 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 23 - 2024-12-26 14:17:05 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 24 - 2024-12-26 14:17:05 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 25 - 2024-12-26 14:17:05 [0.15ms] */
select * from `party` where `party`.`id` = 3053 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 26 - 2024-12-26 14:17:05 [0.16ms] */
select * from `person` where `person`.`id` = 3053 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 27 - 2024-12-26 14:17:05 [0.47ms] */
select * from `transaction` where `transaction`.`id` = 77475 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 28 - 2024-12-26 14:17:05 [0.16ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 29 - 2024-12-26 14:17:05 [0.14ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 30 - 2024-12-26 14:17:05 [0.15ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 31 - 2024-12-26 14:17:05 [0.14ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 32 - 2024-12-26 14:17:05 [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 `term`.`quarter` <> 0 and `vehicle_tax`.`vehicle_id` = 59 and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 33 - 2024-12-26 14:17:05 [0.26ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 34 - 2024-12-26 14:17:05 [0.49ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 431918 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 35 - 2024-12-26 14:17:05 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 59 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 36 - 2024-12-26 14:17:05 [0.27ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 37 - 2024-12-26 14:17:05 [0.47ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 77475 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 38 - 2024-12-26 14:17:05 [0.28ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 39 - 2024-12-26 14:17:05 [0.75ms] */
select * from `transaction` where `transaction`.`id` = 96387 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 40 - 2024-12-26 14:17:05 [0.22ms] */
select * from `party` where `party`.`id` = 3053 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 41 - 2024-12-26 14:17:05 [0.28ms] */
select * from `person` where `person`.`id` = 3053 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 42 - 2024-12-26 14:17:05 [0.22ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 43 - 2024-12-26 14:17:05 [0.55ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 44 - 2024-12-26 14:17:05 [0.25ms] */
select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 1 and `model_has_roles`.`model_type` = 'App\Models\User' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 45 - 2024-12-26 14:17:05 [0.55ms] */
select count(*) as aggregate from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` where `transaction`.`vehicle_id` = 59 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `status` != 'CANCELED' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 46 - 2024-12-26 14:17:05 [0.56ms] */
select `transaction`.* from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` where `transaction`.`vehicle_id` = 59 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `status` != 'CANCELED' and `transaction`.`deleted_at` is null order by `transaction`.`created_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 47 - 2024-12-26 14:17:05 [0.22ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 48 - 2024-12-26 14:17:05 [0.14ms] */
select * from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 49 - 2024-12-26 14:17:05 [0.16ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 50 - 2024-12-26 14:17:05 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 51 - 2024-12-26 14:17:05 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 52 - 2024-12-26 14:17:05 [0.15ms] */
select * from `vehicle` where `vehicle`.`id` = 59 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 53 - 2024-12-26 14:17:05 [0.14ms] */
select * from `party` where `party`.`id` = 3053 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 54 - 2024-12-26 14:17:05 [0.15ms] */
select * from `person` where `person`.`id` = 3053 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 55 - 2024-12-26 14:17:05 [0.28ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 77475 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 56 - 2024-12-26 14:17:05 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 57 - 2024-12-26 14:17:05 [0.12ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 58 - 2024-12-26 14:17:05 [0.14ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 59 - 2024-12-26 14:17:05 [0.13ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 29 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 60 - 2024-12-26 14:17:05 [0.35ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 96388 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 61 - 2024-12-26 14:17:05 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 7 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 62 - 2024-12-26 14:17:05 [0.12ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 63 - 2024-12-26 14:17:05 [0.12ms] */
select * from `service` where `service`.`id` = 7 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 64 - 2024-12-26 14:17:05 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 59 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 65 - 2024-12-26 14:17:05 [0.16ms] */
select * from `party` where `party`.`id` = 3053 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 66 - 2024-12-26 14:17:05 [0.14ms] */
select * from `person` where `person`.`id` = 3053 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 67 - 2024-12-26 14:17:05 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 77475 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 68 - 2024-12-26 14:17:05 [0.12ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 69 - 2024-12-26 14:17:05 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 70 - 2024-12-26 14:17:05 [0.14ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 71 - 2024-12-26 14:17:05 [0.3ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 95567 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 72 - 2024-12-26 14:17:05 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 73 - 2024-12-26 14:17:05 [0.12ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 74 - 2024-12-26 14:17:05 [0.12ms] */
select * from `service` where `service`.`id` = 1 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 75 - 2024-12-26 14:17:05 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 59 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 76 - 2024-12-26 14:17:05 [0.13ms] */
select * from `party` where `party`.`id` = 3053 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 77 - 2024-12-26 14:17:05 [0.14ms] */
select * from `person` where `person`.`id` = 3053 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 78 - 2024-12-26 14:17:05 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 77475 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 79 - 2024-12-26 14:17:05 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 80 - 2024-12-26 14:17:05 [0.12ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 81 - 2024-12-26 14:17:05 [0.13ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 82 - 2024-12-26 14:17:05 [0.14ms] */
select * from `users` where `users`.`id` = 1 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 83 - 2024-12-26 14:17:05 [0.25ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 77475 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 84 - 2024-12-26 14:17:05 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 85 - 2024-12-26 14:17:05 [0.12ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 86 - 2024-12-26 14:17:05 [0.24ms] */
select * from `license_plate_number_change_history` where `vehicle_id` = 59 and `license_plate_number_change_history`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/59
   Query 87 - 2024-12-26 14:17:05 [0.22ms] */
select * from `title_reprint_history` where `vehicle_id` = 59 and `title_reprint_history`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=59&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 1 - 2024-12-26 14:17:06 [1.33ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=59&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 2 - 2024-12-26 14:17:06 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=59&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 3 - 2024-12-26 14:17:06 [0.49ms] */
SELECT event,auditable_id,auditable_type, old_values, new_values,a.created_at,a.updated_at, first_name,last_name
                    FROM audits a 
                    left join users ur on a.user_id = ur.id 
                    left join vehicle v on a.auditable_id = v.id 
                    where auditable_id = 59 and a.auditable_type = 'Modules\\Vehicle\\Entities\\Vehicle' ORDER BY a.id DESC
                    ;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 1 - 2024-12-26 14:17:23 [2.02ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 2 - 2024-12-26 14:17:23 [0.72ms] */
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 - 2024-12-26 14:17:23 [0.35ms] */
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 - 2024-12-26 14:17:23 [0.41ms] */
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 - 2024-12-26 14:17:23 [9.55ms] */
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` <= '2024-12-26 14:17:23' 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 `vehicleTaxes`.`count` = 3 and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 6 - 2024-12-26 14:17:23 [7.91ms] */
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` <= '2024-12-26 14:17:23' 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 `vehicleTaxes`.`count` = 3 and `vehicle`.`deleted_at` is null limit 10 offset 0;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 7 - 2024-12-26 14:17:23 [0.18ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 34 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 - 2024-12-26 14:17:23 [0.14ms] */
select * from `party_vehicle` where `vehicle_id` = 34 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 - 2024-12-26 14:17:23 [0.15ms] */
select * from `party` where `party`.`id` = 27081 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 - 2024-12-26 14:17:23 [0.15ms] */
select * from `person` where `person`.`id` = 27081 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 11 - 2024-12-26 14:17:23 [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 12 - 2024-12-26 14:17:23 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 6 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 13 - 2024-12-26 14:17:23 [0.23ms] */
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 - 2024-12-26 14:17:23 [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 15 - 2024-12-26 14:17:23 [0.26ms] */
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 - 2024-12-26 14:17:23 [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` = 34 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' 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 - 2024-12-26 14:17:23 [0.21ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 71 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 - 2024-12-26 14:17:23 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 71 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 - 2024-12-26 14:17:23 [0.23ms] */
select * from `party` where `party`.`id` = 27057 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 - 2024-12-26 14:17:23 [0.24ms] */
select * from `person` where `person`.`id` = 27057 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 21 - 2024-12-26 14:17:23 [0.2ms] */
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 - 2024-12-26 14:17:23 [0.21ms] */
select * from `sub_category` where `sub_category`.`id` = 6 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 23 - 2024-12-26 14:17:23 [0.2ms] */
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 24 - 2024-12-26 14:17:23 [0.19ms] */
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 - 2024-12-26 14:17:23 [0.2ms] */
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 26 - 2024-12-26 14:17:23 [0.55ms] */
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` = 71 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' 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 - 2024-12-26 14:17:23 [0.2ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 75 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 28 - 2024-12-26 14:17:23 [0.22ms] */
select * from `party_vehicle` where `vehicle_id` = 75 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 29 - 2024-12-26 14:17:23 [0.23ms] */
select * from `party` where `party`.`id` = 27071 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 30 - 2024-12-26 14:17:23 [0.22ms] */
select * from `person` where `person`.`id` = 27071 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 31 - 2024-12-26 14:17:23 [0.24ms] */
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 32 - 2024-12-26 14:17:23 [0.24ms] */
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 33 - 2024-12-26 14:17:23 [0.23ms] */
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 34 - 2024-12-26 14:17:23 [0.22ms] */
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 35 - 2024-12-26 14:17:23 [0.22ms] */
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 36 - 2024-12-26 14:17:23 [0.74ms] */
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` = 75 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' 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 37 - 2024-12-26 14:17:23 [0.25ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 38 - 2024-12-26 14:17:23 [0.24ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 39 - 2024-12-26 14:17:23 [0.24ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 40 - 2024-12-26 14:17:23 [0.2ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 881 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 41 - 2024-12-26 14:17:23 [0.29ms] */
select * from `party_vehicle` where `vehicle_id` = 881 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 42 - 2024-12-26 14:17:23 [0.32ms] */
select * from `party` where `party`.`id` = 57890 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 43 - 2024-12-26 14:17:23 [0.32ms] */
select * from `company` where `company`.`id` = 2281 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 44 - 2024-12-26 14:17:23 [0.3ms] */
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 45 - 2024-12-26 14:17:23 [0.3ms] */
select * from `sub_category` where `sub_category`.`id` = 19 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 46 - 2024-12-26 14:17:23 [0.32ms] */
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 47 - 2024-12-26 14:17:23 [0.28ms] */
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 48 - 2024-12-26 14:17:23 [0.12ms] */
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 49 - 2024-12-26 14:17:23 [0.43ms] */
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` = 881 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' 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 50 - 2024-12-26 14:17:23 [0.14ms] */
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 51 - 2024-12-26 14:17:23 [0.12ms] */
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 52 - 2024-12-26 14:17:23 [0.13ms] */
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 53 - 2024-12-26 14:17:23 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1027 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 - 2024-12-26 14:17:23 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 1027 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 - 2024-12-26 14:17:23 [0.15ms] */
select * from `party` where `party`.`id` = 56133 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 - 2024-12-26 14:17:23 [0.13ms] */
select * from `company` where `company`.`id` = 524 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 57 - 2024-12-26 14:17:23 [0.13ms] */
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 58 - 2024-12-26 14:17:23 [0.13ms] */
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 59 - 2024-12-26 14:17:23 [0.12ms] */
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 - 2024-12-26 14:17:23 [0.12ms] */
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 - 2024-12-26 14:17:23 [0.12ms] */
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 - 2024-12-26 14:17:23 [0.41ms] */
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` = 1027 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' 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 - 2024-12-26 14:17:23 [0.16ms] */
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 64 - 2024-12-26 14:17:23 [0.13ms] */
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 65 - 2024-12-26 14:17:23 [0.12ms] */
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 66 - 2024-12-26 14:17:23 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1120 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 67 - 2024-12-26 14:17:23 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 1120 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 68 - 2024-12-26 14:17:23 [0.14ms] */
select * from `party` where `party`.`id` = 58370 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 69 - 2024-12-26 14:17:23 [0.13ms] */
select * from `company` where `company`.`id` = 2504 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 70 - 2024-12-26 14:17:23 [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 71 - 2024-12-26 14:17:23 [0.16ms] */
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 72 - 2024-12-26 14:17:23 [0.27ms] */
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 73 - 2024-12-26 14:17:23 [0.23ms] */
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 74 - 2024-12-26 14:17:23 [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 75 - 2024-12-26 14:17:23 [0.79ms] */
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` = 1120 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' 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 76 - 2024-12-26 14:17:23 [0.28ms] */
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 77 - 2024-12-26 14:17:23 [0.25ms] */
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 78 - 2024-12-26 14:17:23 [0.23ms] */
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 79 - 2024-12-26 14:17:23 [0.27ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1124 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 80 - 2024-12-26 14:17:23 [0.29ms] */
select * from `party_vehicle` where `vehicle_id` = 1124 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 81 - 2024-12-26 14:17:23 [0.28ms] */
select * from `party` where `party`.`id` = 57141 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 82 - 2024-12-26 14:17:23 [0.13ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 83 - 2024-12-26 14:17:23 [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 84 - 2024-12-26 14:17:23 [0.13ms] */
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 85 - 2024-12-26 14:17:23 [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 86 - 2024-12-26 14:17:23 [0.12ms] */
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 87 - 2024-12-26 14:17:23 [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 88 - 2024-12-26 14:17:23 [0.42ms] */
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` = 1124 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' 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 89 - 2024-12-26 14:17:23 [0.13ms] */
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 90 - 2024-12-26 14:17:23 [0.13ms] */
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 91 - 2024-12-26 14:17:23 [0.13ms] */
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 92 - 2024-12-26 14:17:23 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1125 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 93 - 2024-12-26 14:17:23 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 1125 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 94 - 2024-12-26 14:17:23 [0.15ms] */
select * from `party` where `party`.`id` = 45621 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 95 - 2024-12-26 14:17:23 [0.15ms] */
select * from `person` where `person`.`id` = 45621 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 96 - 2024-12-26 14:17:23 [0.13ms] */
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 97 - 2024-12-26 14:17:23 [0.24ms] */
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 98 - 2024-12-26 14:17:23 [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 99 - 2024-12-26 14:17:23 [0.23ms] */
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 100 - 2024-12-26 14:17:23 [0.24ms] */
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 101 - 2024-12-26 14:17:23 [0.68ms] */
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` = 1125 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' 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 102 - 2024-12-26 14:17:23 [0.27ms] */
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 103 - 2024-12-26 14:17:23 [0.27ms] */
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 104 - 2024-12-26 14:17:23 [0.28ms] */
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 105 - 2024-12-26 14:17:23 [0.3ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1145 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 106 - 2024-12-26 14:17:23 [0.33ms] */
select * from `party_vehicle` where `vehicle_id` = 1145 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 107 - 2024-12-26 14:17:23 [0.39ms] */
select * from `party` where `party`.`id` = 57359 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 108 - 2024-12-26 14:17:23 [0.34ms] */
select * from `company` where `company`.`id` = 1750 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 109 - 2024-12-26 14:17:23 [0.34ms] */
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 110 - 2024-12-26 14:17:23 [0.34ms] */
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 111 - 2024-12-26 14:17:23 [0.34ms] */
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 112 - 2024-12-26 14:17:23 [0.34ms] */
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 113 - 2024-12-26 14:17:23 [0.36ms] */
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 114 - 2024-12-26 14:17:23 [0.84ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1145 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' 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 115 - 2024-12-26 14:17:23 [0.29ms] */
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 116 - 2024-12-26 14:17:23 [0.29ms] */
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 117 - 2024-12-26 14:17:23 [0.3ms] */
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 118 - 2024-12-26 14:17:23 [0.4ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1146 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 119 - 2024-12-26 14:17:23 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 1146 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 120 - 2024-12-26 14:17:23 [0.23ms] */
select * from `party` where `party`.`id` = 57623 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 121 - 2024-12-26 14:17:23 [0.2ms] */
select * from `company` where `company`.`id` = 2014 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 122 - 2024-12-26 14:17:23 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 123 - 2024-12-26 14:17:23 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 9 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 124 - 2024-12-26 14:17:23 [0.13ms] */
select * from `model` where `model`.`id` = 4 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 125 - 2024-12-26 14:17:23 [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 126 - 2024-12-26 14:17:23 [0.19ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 11 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 127 - 2024-12-26 14:17:23 [0.46ms] */
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` = 1146 and date(`term`.`first_date_of_quarter`) <= '2024-12-26' 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 128 - 2024-12-26 14:17:23 [0.14ms] */
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 129 - 2024-12-26 14:17:23 [0.14ms] */
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 130 - 2024-12-26 14:17:23 [0.14ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 1 - 2024-12-26 14:19:53 [1.29ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 2 - 2024-12-26 14:19:53 [0.72ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 3 - 2024-12-26 14:19:53 [0.7ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 4 - 2024-12-26 14:19:53 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 5 - 2024-12-26 14:19:53 [0.31ms] */
select * from `vehicle` where `id` = 1124 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 6 - 2024-12-26 14:19:53 [0.16ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 1124 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 7 - 2024-12-26 14:19:53 [0.14ms] */
select * from `vehicle` where `id` = 1124 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 8 - 2024-12-26 14:19:53 [0.15ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 1124 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 9 - 2024-12-26 14:19:53 [1.25ms] */
select * from `make` where `make`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 10 - 2024-12-26 14:19:53 [0.15ms] */
select * from `model` where `make_id` is null and `model`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 11 - 2024-12-26 14:19:53 [0.28ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 12 - 2024-12-26 14:19:53 [0.14ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 13 - 2024-12-26 14:19:53 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 14 - 2024-12-26 14:19:53 [0.16ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` = 1124 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 15 - 2024-12-26 14:19:53 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 16 - 2024-12-26 14:19:53 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 17 - 2024-12-26 14:19:53 [0.15ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 1 and `vehicle_color`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 18 - 2024-12-26 14:19:53 [0.14ms] */
select * from `fuel_type` where `fuel_type`.`id` = 1 and `fuel_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 19 - 2024-12-26 14:19:53 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 1124 and `party_vehicle`.`deleted_at` is null order by `updated_at` desc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 20 - 2024-12-26 14:19:53 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 21 - 2024-12-26 14:19:53 [0.14ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 22 - 2024-12-26 14:19:53 [0.13ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 23 - 2024-12-26 14:19:53 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 24 - 2024-12-26 14:19:53 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 25 - 2024-12-26 14:19:53 [0.17ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 26 - 2024-12-26 14:19:53 [0.14ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 27 - 2024-12-26 14:19:53 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 65849 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 28 - 2024-12-26 14:19:53 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 29 - 2024-12-26 14:19:53 [0.14ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 30 - 2024-12-26 14:19:53 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 31 - 2024-12-26 14:19:53 [0.13ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 32 - 2024-12-26 14:19:53 [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 `term`.`quarter` <> 0 and `vehicle_tax`.`vehicle_id` = 1124 and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 33 - 2024-12-26 14:19:53 [0.15ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 34 - 2024-12-26 14:19:53 [0.15ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 35 - 2024-12-26 14:19:53 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 36 - 2024-12-26 14:19:53 [0.16ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 37 - 2024-12-26 14:19:53 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 38 - 2024-12-26 14:19:53 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 100459 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 39 - 2024-12-26 14:19:53 [0.16ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 40 - 2024-12-26 14:19:53 [0.13ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 41 - 2024-12-26 14:19:53 [0.13ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 42 - 2024-12-26 14:19:53 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 43 - 2024-12-26 14:19:53 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 44 - 2024-12-26 14:19:53 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 45 - 2024-12-26 14:19:53 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 46 - 2024-12-26 14:19:53 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 100460 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 47 - 2024-12-26 14:19:53 [0.26ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 48 - 2024-12-26 14:19:53 [0.29ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 49 - 2024-12-26 14:19:53 [0.26ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 50 - 2024-12-26 14:19:53 [0.27ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 454794 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 51 - 2024-12-26 14:19:53 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 52 - 2024-12-26 14:19:53 [0.25ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 53 - 2024-12-26 14:19:53 [0.27ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 54 - 2024-12-26 14:19:53 [0.23ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 55 - 2024-12-26 14:19:53 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 100461 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 56 - 2024-12-26 14:19:53 [0.21ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 57 - 2024-12-26 14:19:53 [0.2ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 58 - 2024-12-26 14:19:53 [0.2ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 59 - 2024-12-26 14:19:53 [0.2ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 441024 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 60 - 2024-12-26 14:19:53 [0.22ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 61 - 2024-12-26 14:19:53 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 62 - 2024-12-26 14:19:53 [0.22ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 63 - 2024-12-26 14:19:53 [0.19ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 64 - 2024-12-26 14:19:53 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 100462 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 65 - 2024-12-26 14:19:53 [0.21ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 66 - 2024-12-26 14:19:53 [0.21ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 67 - 2024-12-26 14:19:53 [0.21ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 68 - 2024-12-26 14:19:53 [0.24ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 69 - 2024-12-26 14:19:53 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 70 - 2024-12-26 14:19:53 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 71 - 2024-12-26 14:19:53 [0.12ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 72 - 2024-12-26 14:19:53 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 100463 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 73 - 2024-12-26 14:19:53 [0.13ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 74 - 2024-12-26 14:19:53 [0.14ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 75 - 2024-12-26 14:19:53 [0.13ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 76 - 2024-12-26 14:19:53 [0.13ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 424310 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 77 - 2024-12-26 14:19:53 [0.23ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 78 - 2024-12-26 14:19:53 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 79 - 2024-12-26 14:19:53 [0.15ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 80 - 2024-12-26 14:19:53 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 81 - 2024-12-26 14:19:53 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 100464 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 82 - 2024-12-26 14:19:53 [0.14ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 83 - 2024-12-26 14:19:53 [0.13ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 84 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 85 - 2024-12-26 14:19:53 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 86 - 2024-12-26 14:19:53 [0.22ms] */
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): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 87 - 2024-12-26 14:19:53 [0.21ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 88 - 2024-12-26 14:19:53 [0.22ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 89 - 2024-12-26 14:19:53 [0.27ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 452323 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 90 - 2024-12-26 14:19:53 [0.26ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 91 - 2024-12-26 14:19:53 [0.23ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 92 - 2024-12-26 14:19:53 [0.26ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 93 - 2024-12-26 14:19:53 [0.23ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 94 - 2024-12-26 14:19:53 [0.41ms] */
select * from `transaction` where `transaction`.`id` = 100465 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 95 - 2024-12-26 14:19:53 [0.29ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 96 - 2024-12-26 14:19:53 [0.29ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 97 - 2024-12-26 14:19:53 [0.28ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 98 - 2024-12-26 14:19:53 [0.28ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 99 - 2024-12-26 14:19:53 [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): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 100 - 2024-12-26 14:19:53 [0.37ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 101 - 2024-12-26 14:19:53 [0.13ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 102 - 2024-12-26 14:19:53 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 103 - 2024-12-26 14:19:53 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 104 - 2024-12-26 14:19:53 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 105 - 2024-12-26 14:19:53 [0.12ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 106 - 2024-12-26 14:19:53 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 100466 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 107 - 2024-12-26 14:19:53 [0.14ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 108 - 2024-12-26 14:19:53 [0.13ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 109 - 2024-12-26 14:19:53 [0.12ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 110 - 2024-12-26 14:19:53 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 111 - 2024-12-26 14:19:53 [0.14ms] */
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): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 112 - 2024-12-26 14:19:53 [0.14ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 113 - 2024-12-26 14:19:53 [0.15ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 114 - 2024-12-26 14:19:53 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 115 - 2024-12-26 14:19:53 [0.17ms] */
select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 1 and `model_has_roles`.`model_type` = 'App\Models\User' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 116 - 2024-12-26 14:19:53 [0.32ms] */
select count(*) as aggregate from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` where `transaction`.`vehicle_id` = 1124 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `status` != 'CANCELED' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 117 - 2024-12-26 14:19:53 [0.34ms] */
select `transaction`.* from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` where `transaction`.`vehicle_id` = 1124 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `status` != 'CANCELED' and `transaction`.`deleted_at` is null order by `transaction`.`created_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 118 - 2024-12-26 14:19:53 [0.14ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 119 - 2024-12-26 14:19:53 [0.15ms] */
select * from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 120 - 2024-12-26 14:19:53 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 121 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 122 - 2024-12-26 14:19:53 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 123 - 2024-12-26 14:19:53 [0.17ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 124 - 2024-12-26 14:19:53 [0.14ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 125 - 2024-12-26 14:19:53 [0.13ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 126 - 2024-12-26 14:19:53 [0.15ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 127 - 2024-12-26 14:19:53 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 128 - 2024-12-26 14:19:53 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 129 - 2024-12-26 14:19:53 [0.13ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 130 - 2024-12-26 14:19:53 [0.16ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 27 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 131 - 2024-12-26 14:19:53 [0.36ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 100467 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 132 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 133 - 2024-12-26 14:19:53 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 134 - 2024-12-26 14:19:53 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 135 - 2024-12-26 14:19:53 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 136 - 2024-12-26 14:19:53 [0.13ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 137 - 2024-12-26 14:19:53 [0.14ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 138 - 2024-12-26 14:19:53 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 139 - 2024-12-26 14:19:53 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 140 - 2024-12-26 14:19:53 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 141 - 2024-12-26 14:19:53 [0.14ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 142 - 2024-12-26 14:19:53 [0.23ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 100464 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 143 - 2024-12-26 14:19:53 [0.13ms] */
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): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 144 - 2024-12-26 14:19:53 [0.13ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 145 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 146 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 147 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 148 - 2024-12-26 14:19:53 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 149 - 2024-12-26 14:19:53 [0.13ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 150 - 2024-12-26 14:19:53 [0.15ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 151 - 2024-12-26 14:19:53 [0.13ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 152 - 2024-12-26 14:19:53 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 153 - 2024-12-26 14:19:53 [0.12ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 154 - 2024-12-26 14:19:53 [0.16ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 155 - 2024-12-26 14:19:53 [0.22ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 100465 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 156 - 2024-12-26 14:19:53 [0.13ms] */
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): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 157 - 2024-12-26 14:19:53 [0.12ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 158 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 159 - 2024-12-26 14:19:53 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 160 - 2024-12-26 14:19:53 [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): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 161 - 2024-12-26 14:19:53 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 162 - 2024-12-26 14:19:53 [0.17ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 163 - 2024-12-26 14:19:53 [0.13ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 164 - 2024-12-26 14:19:53 [0.13ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 165 - 2024-12-26 14:19:53 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 166 - 2024-12-26 14:19:53 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 167 - 2024-12-26 14:19:53 [0.13ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 168 - 2024-12-26 14:19:53 [0.23ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 100466 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 169 - 2024-12-26 14:19:53 [0.13ms] */
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): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 170 - 2024-12-26 14:19:53 [0.12ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 171 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 7 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 172 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 173 - 2024-12-26 14:19:53 [0.12ms] */
select * from `service` where `service`.`id` = 7 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 174 - 2024-12-26 14:19:53 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 175 - 2024-12-26 14:19:53 [0.13ms] */
select * from `party` where `party`.`id` = 57141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 176 - 2024-12-26 14:19:53 [0.13ms] */
select * from `company` where `company`.`id` = 1532 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 177 - 2024-12-26 14:19:53 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 178 - 2024-12-26 14:19:53 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 179 - 2024-12-26 14:19:53 [0.12ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 180 - 2024-12-26 14:19:53 [0.13ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 181 - 2024-12-26 14:19:53 [0.22ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 100458 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 182 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 183 - 2024-12-26 14:19:53 [0.12ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 184 - 2024-12-26 14:19:53 [0.13ms] */
select * from `service` where `service`.`id` = 1 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 185 - 2024-12-26 14:19:53 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 1124 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 186 - 2024-12-26 14:19:53 [0.13ms] */
select * from `party` where `party`.`id` = 56164 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 187 - 2024-12-26 14:19:53 [0.13ms] */
select * from `company` where `company`.`id` = 555 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 188 - 2024-12-26 14:19:53 [0.15ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 65849 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 189 - 2024-12-26 14:19:53 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 190 - 2024-12-26 14:19:53 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 191 - 2024-12-26 14:19:53 [0.14ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 192 - 2024-12-26 14:19:53 [0.14ms] */
select * from `users` where `users`.`id` = 1 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 193 - 2024-12-26 14:19:53 [0.34ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 65849 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 194 - 2024-12-26 14:19:53 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 195 - 2024-12-26 14:19:53 [0.12ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 196 - 2024-12-26 14:19:53 [0.14ms] */
select * from `license_plate_number_change_history` where `vehicle_id` = 1124 and `license_plate_number_change_history`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1124
   Query 197 - 2024-12-26 14:19:53 [0.13ms] */
select * from `title_reprint_history` where `vehicle_id` = 1124 and `title_reprint_history`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=1124&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 1 - 2024-12-26 14:19:54 [1.41ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=1124&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 2 - 2024-12-26 14:19:54 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=1124&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 3 - 2024-12-26 14:19:54 [0.56ms] */
SELECT event,auditable_id,auditable_type, old_values, new_values,a.created_at,a.updated_at, first_name,last_name
                    FROM audits a 
                    left join users ur on a.user_id = ur.id 
                    left join vehicle v on a.auditable_id = v.id 
                    where auditable_id = 1124 and a.auditable_type = 'Modules\\Vehicle\\Entities\\Vehicle' ORDER BY a.id DESC
                    ;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 1 - 2024-12-26 14:20:03 [2.35ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 2 - 2024-12-26 14:20:03 [0.74ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 3 - 2024-12-26 14:20:03 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 4 - 2024-12-26 14:20:03 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 5 - 2024-12-26 14:20:03 [0.29ms] */
select * from `vehicle` where `id` = 1146 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 6 - 2024-12-26 14:20:03 [0.26ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 1146 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 7 - 2024-12-26 14:20:03 [0.15ms] */
select * from `vehicle` where `id` = 1146 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 8 - 2024-12-26 14:20:03 [0.14ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 1146 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 9 - 2024-12-26 14:20:03 [1.25ms] */
select * from `make` where `make`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 10 - 2024-12-26 14:20:03 [0.14ms] */
select * from `model` where `make_id` is null and `model`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 11 - 2024-12-26 14:20:03 [0.2ms] */
select * from `model` where `model`.`id` = 4 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 12 - 2024-12-26 14:20:03 [0.14ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/1146
   Query 13 - 2024-12-26 14:20:03 [0.14ms] */
