select * from `users` where `id` = 157 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 2 - 2025-03-24 10:21:06 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 3 - 2025-03-24 10:21:06 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 4 - 2025-03-24 10:21:06 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 5 - 2025-03-24 10:21:06 [0.18ms] */
select `region`.`name` from `district` inner join `region` on `region`.`id` = `district`.`region_id` where `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 6 - 2025-03-24 10:21:06 [0.13ms] */
select `name` from `classification_type` where `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 7 - 2025-03-24 10:21:07 [0.24ms] */
select * from `district` where `district`.`id` = 35 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 8 - 2025-03-24 10:21:07 [0.15ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 1 - 2025-03-24 10:21:18 [2.42ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 2 - 2025-03-24 10:21:18 [0.75ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 3 - 2025-03-24 10:21:18 [0.48ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 4 - 2025-03-24 10:21:18 [0.56ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 5 - 2025-03-24 10:21:18 [0.19ms] */
select `name`, `id` from `permissions`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 6 - 2025-03-24 10:21:18 [0.15ms] */
select * from `roles` where `roles`.`id` = 19 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 7 - 2025-03-24 10:21:18 [1.53ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-24 10:21:37 [1.96ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-24 10:21:37 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-24 10:21:37 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-24 10:21:37 [0.33ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-24 10:21:37 [0.29ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-24 10:21:37 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-24 10:21:37 [1.7ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 1 - 2025-03-24 10:21:45 [2.29ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 2 - 2025-03-24 10:21:45 [0.73ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 3 - 2025-03-24 10:21:45 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 4 - 2025-03-24 10:21:45 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 5 - 2025-03-24 10:21:45 [0.14ms] */
select count(*) as aggregate from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 6 - 2025-03-24 10:21:45 [0.12ms] */
select * from `roles` limit 15 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 7 - 2025-03-24 10:21:45 [0.35ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-24 10:21:48 [2.19ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-24 10:21:48 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-24 10:21:48 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-24 10:21:48 [0.31ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-24 10:21:48 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-24 10:21:48 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-24 10:21:48 [0.54ms] */
delete from `payment_documents` where `transaction_id` = 511070 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-24 10:21:48 [0.53ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 1110022;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-24 10:21:48 [0.17ms] */
select * from `transaction` where `transaction`.`id` = 511070 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-03-24 10:21:48 [0.15ms] */
select * from `transaction` where `parent_id` = 511074 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-03-24 10:21:48 [6.5ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (511070, 'SERVICE_RECEIPT_IMAGE', 1110022, 1, '2025-03-24 10:21:48', '2025-03-24 10:21:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-03-24 10:21:48 [3.03ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (511074, 'SERVICE_RECEIPT_IMAGE', 1110022, 1, '2025-03-24 10:21:48', '2025-03-24 10:21:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-03-24 10:21:48 [7.53ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-24 10:21:48' where `receipt_number` = 1110022 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-03-24 10:21:48 [1.32ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-03-24 10:21:48 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-03-24 10:21:48 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-03-24 10:21:48 [0.2ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-03-24 10:21:48 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-03-24 10:21:48 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-03-24 10:21:48 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 511070 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-03-24 10:21:48 [0.44ms] */
select * from `transaction` where `transaction`.`id` = 511074 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-03-24 10:21:48 [0.25ms] */
select * from `invoice_payment` where `invoice_id` = 486744 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-03-24 10:21:48 [215.93ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 511074 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-03-24 10:21:48 [133.08ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 511074 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-03-24 10:21:48 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 511074 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-03-24 10:21:48 [0.19ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-03-24 10:21:48 [0.19ms] */
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 15 - 2025-03-24 10:21:48 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-03-24 10:21:49 [164.56ms] */
select sum(`invoice`.`invoice_amount`) as aggregate 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 `transaction`.`parent_id` = 511074 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-03-24 10:21:49 [0.49ms] */
select * from `party` where `party`.`id` = 44338 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-03-24 10:21:49 [0.69ms] */
insert into `Payment` (`payment_date`, `external_payment_reference_no`, `payment_receipt_number`, `payment_method_id`, `payment_amount`, `paid_by`, `paid_by_mobile`, `siinpay_payref_number`, `district_id`, `payment_collected_by`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('2025-03-24 10:21:49', 123, 2510022, 1, 71.00, 'Ugaaas', 0907797187, null, 37, 153, 153, 153, '2025-03-24 10:21:49', '2025-03-24 10:21:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-03-24 10:21:49 [0.33ms] */
select * from `Payment` where `id` = 177703 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-03-24 10:21:49 [0.52ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":1,"payment_amount":"71.00","payment_date":"2025-03-24 10:21:49","external_payment_reference_no":"123","payment_receipt_number":"2510022","siinpay_payref_number":null,"paid_by":"Ugaaas","paid_by_mobile":"0907797187","district_id":37,"migration_id":null,"payment_collected_by":153}}', 153, 'App\Models\User', 177703, 'Modules\Transaction\Entities\Payment', 'created', '2025-03-24 10:21:49', '2025-03-24 10:21:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-03-24 10:21:49 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 511074 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-03-24 10:21:49 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-03-24 10:21:49 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-03-24 10:21:49 [0.53ms] */
select * from `invoice` where `invoice`.`id` = 486740 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-03-24 10:21:49 [0.54ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-24 10:21:49', 486740, 177703, '2025-03-24 10:21:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-03-24 10:21:49 [0.31ms] */
select * from `invoice` where `invoice`.`id` = 486740 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-03-24 10:21:49 [0.43ms] */
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` = 486740 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-03-24 10:21:49 [0.47ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486740 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 29 - 2025-03-24 10:21:49 [0.36ms] */
update `invoice` set `invoice_amount` = 71, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 71, `status` = 'PAID', `updated_by` = 153, `invoice`.`updated_at` = '2025-03-24 10:21:49' where `id` = 486740;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-03-24 10:21:49 [0.28ms] */
select * from `invoice` where `id` = 486740 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-03-24 10:21:49 [0.31ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"71.00","status":"OPEN"}}', 153, 'App\Models\User', 486740, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:21:49', '2025-03-24 10:21:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-03-24 10:21:49 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 511070 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-03-24 10:21:49 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 511070 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-03-24 10:21:49 [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): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-03-24 10:21:49 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-03-24 10:21:49 [0.19ms] */
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 37 - 2025-03-24 10:21:49 [0.56ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511070, 'PAID', '2025-03-24 10:21:49', 7, 153, null, 153, 153, '2025-03-24 10:21:49', '2025-03-24 10:21:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-03-24 10:21:49 [0.21ms] */
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 39 - 2025-03-24 10:21:49 [0.5ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-03-24 10:21:49' where `id` = 511070;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-03-24 10:21:49 [0.21ms] */
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 41 - 2025-03-24 10:21:49 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 486740 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 42 - 2025-03-24 10:21:49 [0.44ms] */
select * from `vehicle_tax` where `transaction_id` = 511070 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-03-24 10:21:49 [0.25ms] */
update `vehicle_tax` set `status` = 'PAID', `updated_by` = 153, `vehicle_tax`.`updated_at` = '2025-03-24 10:21:49' where `id` = 401255;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-03-24 10:21:49 [0.25ms] */
select * from `vehicle_tax` where `id` = 401255 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-03-24 10:21:49 [0.35ms] */
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"}}', 153, 'App\Models\User', 401255, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 10:21:49', '2025-03-24 10:21:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-03-24 10:21:49 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 486744 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 47 - 2025-03-24 10:21:49 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 486744 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-03-24 10:21:49 [0.21ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-24 10:21:49', 486744, 177703, '2025-03-24 10:21:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-03-24 10:21:49 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 486744 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-03-24 10:21:49 [0.3ms] */
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` = 486744 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-03-24 10:21:49 [0.21ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `updated_by` = 153, `invoice`.`updated_at` = '2025-03-24 10:21:49' where `id` = 486744;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-03-24 10:21:49 [0.23ms] */
select * from `invoice` where `id` = 486744 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-03-24 10:21:49 [0.23ms] */
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":"71.00","status":"OPEN"}}', 153, 'App\Models\User', 486744, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:21:49', '2025-03-24 10:21:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-03-24 10:21:49 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 511074 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-03-24 10:21:49 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 511074 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-03-24 10:21:49 [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): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-03-24 10:21:49 [0.15ms] */
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 58 - 2025-03-24 10:21:49 [0.21ms] */
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 59 - 2025-03-24 10:21:49 [0.21ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511074, 'PAID', '2025-03-24 10:21:49', 7, 153, null, 153, 153, '2025-03-24 10:21:49', '2025-03-24 10:21:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-03-24 10:21:49 [0.33ms] */
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 61 - 2025-03-24 10:21:49 [0.26ms] */
update `transaction` set `current_workflow_state_id` = 8, `updated_by` = 153, `transaction`.`updated_at` = '2025-03-24 10:21:49' where `id` = 511074;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-03-24 10:21:49 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-03-24 10:21:49 [0.26ms] */
select * from `invoice` where `invoice`.`id` = 486744 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 1 - 2025-03-24 10:22:02 [25.49ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 2 - 2025-03-24 10:22:02 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 3 - 2025-03-24 10:22:02 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 4 - 2025-03-24 10:22:02 [6.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 5 - 2025-03-24 10:22:02 [2.88ms] */
select * from `roles` where `roles`.`id` = 19 limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 6 - 2025-03-24 10:22:02 [5.01ms] */
select count(*) as aggregate from `roles` where `name` = 'mof - rta' and `id` <> 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 7 - 2025-03-24 10:22:02 [2.84ms] */
select * from `permissions`;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 8 - 2025-03-24 10:22:02 [4.77ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (1);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 9 - 2025-03-24 10:22:02 [3.41ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 10 - 2025-03-24 10:22:02 [3.72ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 11 - 2025-03-24 10:22:02 [3.59ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 12 - 2025-03-24 10:22:02 [3.74ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (3);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 13 - 2025-03-24 10:22:02 [0.38ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 14 - 2025-03-24 10:22:02 [0.32ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (4);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 15 - 2025-03-24 10:22:02 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 16 - 2025-03-24 10:22:02 [0.94ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (5);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 17 - 2025-03-24 10:22:02 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 18 - 2025-03-24 10:22:02 [0.31ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (6);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 19 - 2025-03-24 10:22:02 [1.02ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 20 - 2025-03-24 10:22:02 [18.4ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (7);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 21 - 2025-03-24 10:22:02 [4.72ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 22 - 2025-03-24 10:22:02 [6.3ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (8);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 23 - 2025-03-24 10:22:02 [2.43ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 24 - 2025-03-24 10:22:02 [0.85ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (9);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 25 - 2025-03-24 10:22:02 [0.22ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 26 - 2025-03-24 10:22:02 [1.02ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (10);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 27 - 2025-03-24 10:22:02 [3.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 28 - 2025-03-24 10:22:02 [6.34ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (11);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 29 - 2025-03-24 10:22:02 [3.66ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 30 - 2025-03-24 10:22:02 [1.56ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (12);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 31 - 2025-03-24 10:22:02 [1.03ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 32 - 2025-03-24 10:22:02 [2.41ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (13);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 33 - 2025-03-24 10:22:02 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 34 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (14);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 35 - 2025-03-24 10:22:02 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 36 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (15);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 37 - 2025-03-24 10:22:02 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 38 - 2025-03-24 10:22:02 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (16);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 39 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 40 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (17);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 41 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 42 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (18);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 43 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 44 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 45 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 46 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (20);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 47 - 2025-03-24 10:22:02 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 48 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (21);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 49 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 50 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (22);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 51 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 52 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (23);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 53 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 54 - 2025-03-24 10:22:02 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (24);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 55 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 56 - 2025-03-24 10:22:02 [0.14ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (25);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 57 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 58 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (26);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 59 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 60 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (27);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 61 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 62 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (28);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 63 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 64 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (29);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 65 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 66 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (30);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 67 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 68 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (31);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 69 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 70 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (32);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 71 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 72 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (33);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 73 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 74 - 2025-03-24 10:22:02 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (34);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 75 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 76 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (35);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 77 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 78 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (36);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 79 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 80 - 2025-03-24 10:22:02 [3.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (37);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 81 - 2025-03-24 10:22:02 [0.29ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 82 - 2025-03-24 10:22:02 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (38);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 83 - 2025-03-24 10:22:02 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 84 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (39);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 85 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 86 - 2025-03-24 10:22:02 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (40);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 87 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 88 - 2025-03-24 10:22:02 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (41);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 89 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 90 - 2025-03-24 10:22:02 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (42);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 91 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 92 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (43);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 93 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 94 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (44);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 95 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 96 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (45);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 97 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 98 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (46);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 99 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 100 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (47);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 101 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 102 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (48);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 103 - 2025-03-24 10:22:02 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 104 - 2025-03-24 10:22:02 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (49);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 105 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 106 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (50);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 107 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 108 - 2025-03-24 10:22:02 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (51);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 109 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 110 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (52);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 111 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 112 - 2025-03-24 10:22:02 [0.64ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (53);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 113 - 2025-03-24 10:22:02 [0.7ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 114 - 2025-03-24 10:22:02 [0.65ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (54);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 115 - 2025-03-24 10:22:02 [0.83ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 116 - 2025-03-24 10:22:02 [1.54ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (55);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 117 - 2025-03-24 10:22:02 [1.11ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 118 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (56);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 119 - 2025-03-24 10:22:02 [0.2ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 120 - 2025-03-24 10:22:02 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (57);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 121 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 122 - 2025-03-24 10:22:02 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (58);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 123 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 124 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (59);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 125 - 2025-03-24 10:22:02 [0.24ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 126 - 2025-03-24 10:22:02 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (60);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 127 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 128 - 2025-03-24 10:22:02 [0.64ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (61);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 129 - 2025-03-24 10:22:02 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 130 - 2025-03-24 10:22:02 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (62);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 131 - 2025-03-24 10:22:02 [1.02ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 132 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (63);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 133 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 134 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (64);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 135 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 136 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (65);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 137 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 138 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (66);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 139 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 140 - 2025-03-24 10:22:02 [0.57ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (67);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 141 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 142 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (68);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 143 - 2025-03-24 10:22:02 [0.44ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 144 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (69);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 145 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 146 - 2025-03-24 10:22:02 [5.03ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (70);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 147 - 2025-03-24 10:22:02 [0.25ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 148 - 2025-03-24 10:22:02 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (71);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 149 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 150 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (72);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 151 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 152 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (73);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 153 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 154 - 2025-03-24 10:22:02 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (74);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 155 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 156 - 2025-03-24 10:22:02 [0.27ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (75);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 157 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 158 - 2025-03-24 10:22:02 [0.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (76);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 159 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 160 - 2025-03-24 10:22:02 [0.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (77);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 161 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 162 - 2025-03-24 10:22:02 [0.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (78);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 163 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 164 - 2025-03-24 10:22:02 [0.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (79);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 165 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 166 - 2025-03-24 10:22:02 [0.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (80);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 167 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 168 - 2025-03-24 10:22:02 [3.14ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (81);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 169 - 2025-03-24 10:22:02 [0.36ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 170 - 2025-03-24 10:22:02 [0.31ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (82);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 171 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 172 - 2025-03-24 10:22:02 [0.25ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (83);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 173 - 2025-03-24 10:22:02 [0.13ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 174 - 2025-03-24 10:22:02 [0.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (84);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 175 - 2025-03-24 10:22:02 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 176 - 2025-03-24 10:22:02 [0.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (85);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 177 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 178 - 2025-03-24 10:22:02 [0.25ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (86);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 179 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 180 - 2025-03-24 10:22:02 [0.24ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (87);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 181 - 2025-03-24 10:22:02 [0.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 182 - 2025-03-24 10:22:02 [0.23ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (88);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 183 - 2025-03-24 10:22:02 [0.11ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 184 - 2025-03-24 10:22:02 [0.23ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (89);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 185 - 2025-03-24 10:22:02 [0.16ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 186 - 2025-03-24 10:22:02 [0.36ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (90);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 187 - 2025-03-24 10:22:02 [0.75ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 188 - 2025-03-24 10:22:02 [0.37ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (91);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 189 - 2025-03-24 10:22:02 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 190 - 2025-03-24 10:22:02 [3.24ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (92);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 191 - 2025-03-24 10:22:02 [0.46ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 192 - 2025-03-24 10:22:02 [0.37ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (93);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 193 - 2025-03-24 10:22:02 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 194 - 2025-03-24 10:22:02 [0.41ms] */
select * from `permissions` where `name` = 'view_backend' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 195 - 2025-03-24 10:22:02 [0.35ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 196 - 2025-03-24 10:22:02 [3.19ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (2, 19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 197 - 2025-03-24 10:22:02 [0.32ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 198 - 2025-03-24 10:22:02 [0.12ms] */
select * from `permissions` where `name` = 'view_dashboard' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 199 - 2025-03-24 10:22:02 [0.26ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 200 - 2025-03-24 10:22:02 [2.93ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (7, 19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 201 - 2025-03-24 10:22:02 [0.47ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 202 - 2025-03-24 10:22:02 [0.14ms] */
select * from `permissions` where `name` = 'view_mydashboard' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 203 - 2025-03-24 10:22:02 [0.39ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 204 - 2025-03-24 10:22:02 [3.08ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (37, 19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 205 - 2025-03-24 10:22:02 [0.3ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 206 - 2025-03-24 10:22:02 [0.18ms] */
select * from `permissions` where `name` = 'rta2_view_reports' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 207 - 2025-03-24 10:22:02 [0.23ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 208 - 2025-03-24 10:22:02 [2.8ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (70, 19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 209 - 2025-03-24 10:22:02 [0.29ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 210 - 2025-03-24 10:22:02 [0.15ms] */
select * from `permissions` where `name` = 'PaymentConfirmationReport' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 211 - 2025-03-24 10:22:02 [0.2ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 212 - 2025-03-24 10:22:02 [2.96ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (92, 19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 213 - 2025-03-24 10:22:02 [0.22ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 1 - 2025-03-24 10:22:03 [1.39ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 2 - 2025-03-24 10:22:03 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 3 - 2025-03-24 10:22:03 [0.3ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 4 - 2025-03-24 10:22:03 [0.18ms] */
select * from `permissions`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 5 - 2025-03-24 10:22:03 [0.3ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 6 - 2025-03-24 10:22:03 [0.82ms] */
select `roles`.*, `role_has_permissions`.`permission_id` as `pivot_permission_id`, `role_has_permissions`.`role_id` as `pivot_role_id` from `roles` inner join `role_has_permissions` on `roles`.`id` = `role_has_permissions`.`role_id` where `role_has_permissions`.`permission_id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93);
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 7 - 2025-03-24 10:22:03 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 8 - 2025-03-24 10:22:03 [0.2ms] */
select count(*) as aggregate from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 9 - 2025-03-24 10:22:03 [0.12ms] */
select * from `roles` limit 15 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 10 - 2025-03-24 10:22:03 [0.78ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-03-24 10:22:09 [2.11ms] */
select * from `users` where `id` = 157 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-03-24 10:22:09 [0.74ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-03-24 10:22:09 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-03-24 10:22:09 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-03-24 10:22:09 [0.18ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-03-24 10:22:09 [0.13ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-03-24' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-03-24 10:22:09 [0.14ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-03-24 10:22:09 [0.12ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-03-24' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-03-24 10:22:09 [83.89ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-23' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-03-24 10:22:09 [44.81ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-23' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-03-24 10:22:09 [259.64ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-24' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-03-24 10:22:10 [769.7ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-24' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 13 - 2025-03-24 10:22:10 [0.33ms] */
select * from `district` where `district`.`id` = 35 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 14 - 2025-03-24 10:22:10 [0.18ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-03-24 10:22:12 [1.68ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-03-24 10:22:12 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-03-24 10:22:12 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-03-24 10:22:12 [0.28ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-03-24 10:22:12 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-03-24 10:22:12 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-03-24 10:22:12 [1.24ms] */
select * from `vehicle_tax` where `id` = 401255 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-03-24 10:22:12 [61.44ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 103 and `name` like '%2025-Q1%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-03-24 10:22:17 [1.52ms] */
select * from `users` where `id` = 157 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-03-24 10:22:17 [0.48ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-03-24 10:22:17 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-03-24 10:22:17 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-03-24 10:22:17 [0.22ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-03-24 10:22:17 [0.14ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-03-24' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-03-24 10:22:17 [0.13ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-03-24 10:22:17 [0.13ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-03-24' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-03-24 10:22:17 [0.22ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-23' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-03-24 10:22:17 [0.17ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-23' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-03-24 10:22:17 [0.16ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-24' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-03-24 10:22:17 [0.14ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-24' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 13 - 2025-03-24 10:22:17 [0.18ms] */
select * from `district` where `district`.`id` = 35 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 14 - 2025-03-24 10:22:17 [0.14ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-03-24 10:22:23 [1.63ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-03-24 10:22:23 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-03-24 10:22:23 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-03-24 10:22:23 [0.22ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-03-24 10:22:23 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-03-24 10:22:23 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-03-24 10:22:23 [0.45ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 611335 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-03-24 10:22:23 [0.22ms] */
select * from `vehicle_tax` where `id` = 401255 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-03-24 10:22:23 [23.65ms] */
update `vehicle_tax` set `tax_sticker_id` = 611335, `vehicle_tax`.`updated_at` = '2025-03-24 10:22:23' where `id` = 401255;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-03-24 10:22:23 [0.4ms] */
select * from `vehicle_tax` where `id` = 401255 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-03-24 10:22:23 [3.54ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"tax_sticker_id":611335},"old":{"tax_sticker_id":null}}', 153, 'App\Models\User', 401255, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 10:22:23', '2025-03-24 10:22:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-03-24 10:22:23 [3.17ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 153, `tax_sticker`.`updated_at` = '2025-03-24 10:22:23' where `id` = 611335;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 1 - 2025-03-24 10:22:36 [1.35ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 2 - 2025-03-24 10:22:36 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 3 - 2025-03-24 10:22:36 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 4 - 2025-03-24 10:22:36 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 5 - 2025-03-24 10:22:36 [0.25ms] */
select `name`, `id` from `permissions`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 6 - 2025-03-24 10:22:36 [0.16ms] */
select * from `roles` where `roles`.`id` = 19 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 7 - 2025-03-24 10:22:36 [0.98ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-03-24 10:22:41 [2.19ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-03-24 10:22:41 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-03-24 10:22:41 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-03-24 10:22:41 [0.32ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-03-24 10:22:41 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-03-24 10:22:41 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-03-24 10:22:41 [0.38ms] */
select * from `vehicle_tax` where `id` in (401255) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-03-24 10:22:41 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 511070 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-03-24 10:22:41 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 511070 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-03-24 10:22:41 [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): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-03-24 10:22:41 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-03-24 10:22:41 [0.15ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-03-24 10:22:41 [0.64ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511070, 'APPROVED', '2025-03-24 10:22:41', 8, 153, null, 153, 153, '2025-03-24 10:22:41', '2025-03-24 10:22:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-03-24 10:22:41 [0.38ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-03-24 10:22:41 [32.68ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-24 10:22:41' where `id` = 511070;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-03-24 10:22:41 [0.29ms] */
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/complete_transaction
   Query 17 - 2025-03-24 10:22:41 [0.57ms] */
select * from `vehicle_tax` where `transaction_id` = 511070 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-03-24 10:22:41 [0.33ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-03-24 10:22:41' where `id` = 401255;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-03-24 10:22:41 [0.36ms] */
select * from `vehicle_tax` where `id` = 401255 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-03-24 10:22:41 [0.64ms] */
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":"ISSUED"},"old":{"status":"PAID"}}', 153, 'App\Models\User', 401255, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 10:22:41', '2025-03-24 10:22:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-03-24 10:22:41 [0.55ms] */
select * from `invoice` where `invoice`.`id` = 486740 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-03-24 10:22:41 [0.26ms] */
select * from `transaction` where `id` = 511070 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-03-24 10:22:41 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 511074 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-03-24 10:22:41 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 25 - 2025-03-24 10:22:41 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 26 - 2025-03-24 10:22:41 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-03-24 10:22:41 [0.3ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511074, 'APPROVED', '2025-03-24 10:22:41', 8, 153, null, 153, 153, '2025-03-24 10:22:41', '2025-03-24 10:22:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-03-24 10:22:41 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-03-24 10:22:41 [0.41ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-24 10:22:41' where `id` = 511074;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-03-24 10:22:41 [0.22ms] */
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/complete_transaction
   Query 31 - 2025-03-24 10:22:41 [0.32ms] */
select * from `vehicle_tax` where `transaction_id` = 511074 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-03-24 10:22:41 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 486744 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 33 - 2025-03-24 10:22:41 [0.23ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 34 - 2025-03-24 10:22:41 [0.53ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 70203 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 35 - 2025-03-24 10:22:41 [0.24ms] */
select * from `party` where `party`.`id` = 44338 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 36 - 2025-03-24 10:22:41 [0.42ms] */
select * from `person` where `person`.`id` = 44338 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-03-24 10:22:41 [0.44ms] */
select * from `vehicle` where `vehicle`.`id` = 61787 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 38 - 2025-03-24 10:22:41 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 486740 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 39 - 2025-03-24 10:22:41 [0.45ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 486740 and `invoice_payment`.`invoice_id` is not null and `invoice_payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 40 - 2025-03-24 10:22:41 [0.49ms] */
select * from `Payment` where `Payment`.`id` = 177703 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-03-24 10:22:41 [0.21ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 26 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-03-24 10:22:41 [0.4ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 611335 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 1 - 2025-03-24 10:22:48 [1.4ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 2 - 2025-03-24 10:22:48 [0.57ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 3 - 2025-03-24 10:22:48 [0.45ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 4 - 2025-03-24 10:22:48 [0.51ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 5 - 2025-03-24 10:22:48 [0.19ms] */
select * from `roles` where `roles`.`id` = 19 limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 6 - 2025-03-24 10:22:48 [0.16ms] */
select count(*) as aggregate from `roles` where `name` = 'mof - rta' and `id` <> 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 7 - 2025-03-24 10:22:48 [0.21ms] */
select * from `permissions`;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 8 - 2025-03-24 10:22:48 [0.39ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (1);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 9 - 2025-03-24 10:22:48 [0.19ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 10 - 2025-03-24 10:22:48 [12.46ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 11 - 2025-03-24 10:22:48 [0.54ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 12 - 2025-03-24 10:22:48 [0.31ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (3);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 13 - 2025-03-24 10:22:48 [0.25ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 14 - 2025-03-24 10:22:48 [0.29ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (4);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 15 - 2025-03-24 10:22:48 [0.25ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 16 - 2025-03-24 10:22:48 [0.27ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (5);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 17 - 2025-03-24 10:22:48 [0.23ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 18 - 2025-03-24 10:22:48 [0.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (6);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 19 - 2025-03-24 10:22:48 [0.21ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 20 - 2025-03-24 10:22:48 [3.32ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (7);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 21 - 2025-03-24 10:22:48 [0.47ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 22 - 2025-03-24 10:22:48 [0.37ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (8);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 23 - 2025-03-24 10:22:48 [0.22ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 24 - 2025-03-24 10:22:48 [0.27ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (9);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 25 - 2025-03-24 10:22:48 [0.19ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 26 - 2025-03-24 10:22:48 [0.22ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (10);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 27 - 2025-03-24 10:22:48 [0.19ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 28 - 2025-03-24 10:22:48 [0.21ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (11);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 29 - 2025-03-24 10:22:48 [0.18ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 30 - 2025-03-24 10:22:48 [0.22ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (12);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 31 - 2025-03-24 10:22:48 [0.18ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 32 - 2025-03-24 10:22:48 [0.22ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (13);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 33 - 2025-03-24 10:22:48 [0.18ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 34 - 2025-03-24 10:22:48 [0.22ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (14);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 35 - 2025-03-24 10:22:48 [0.18ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 36 - 2025-03-24 10:22:48 [0.21ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (15);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 37 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 38 - 2025-03-24 10:22:48 [0.2ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (16);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 39 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 40 - 2025-03-24 10:22:48 [0.2ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (17);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 41 - 2025-03-24 10:22:48 [0.19ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 42 - 2025-03-24 10:22:48 [0.21ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (18);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 43 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 44 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 45 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 46 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (20);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 47 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 48 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (21);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 49 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 50 - 2025-03-24 10:22:48 [0.2ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (22);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 51 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 52 - 2025-03-24 10:22:48 [0.24ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (23);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 53 - 2025-03-24 10:22:48 [0.21ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 54 - 2025-03-24 10:22:48 [0.27ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (24);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 55 - 2025-03-24 10:22:48 [0.25ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 56 - 2025-03-24 10:22:48 [0.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (25);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 57 - 2025-03-24 10:22:48 [0.19ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 58 - 2025-03-24 10:22:48 [0.22ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (26);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 59 - 2025-03-24 10:22:48 [0.23ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 60 - 2025-03-24 10:22:48 [0.21ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (27);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 61 - 2025-03-24 10:22:48 [0.21ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 62 - 2025-03-24 10:22:48 [0.21ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (28);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 63 - 2025-03-24 10:22:48 [0.21ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 64 - 2025-03-24 10:22:48 [0.23ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (29);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 65 - 2025-03-24 10:22:48 [0.21ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 66 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (30);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 67 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 68 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (31);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 69 - 2025-03-24 10:22:48 [0.16ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 70 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (32);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 71 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 72 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (33);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 73 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 74 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (34);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 75 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 76 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (35);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 77 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 78 - 2025-03-24 10:22:48 [0.2ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (36);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 79 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 80 - 2025-03-24 10:22:48 [2.99ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (37);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 81 - 2025-03-24 10:22:48 [0.3ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 82 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (38);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 83 - 2025-03-24 10:22:48 [0.19ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 84 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (39);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 85 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 86 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (40);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 87 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 88 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (41);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 89 - 2025-03-24 10:22:48 [0.18ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 90 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (42);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 91 - 2025-03-24 10:22:48 [0.16ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 92 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (43);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 93 - 2025-03-24 10:22:48 [0.16ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 94 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (44);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 95 - 2025-03-24 10:22:48 [0.16ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 96 - 2025-03-24 10:22:48 [0.21ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (45);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 97 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 98 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (46);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 99 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 100 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (47);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 101 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 102 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (48);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 103 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 104 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (49);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 105 - 2025-03-24 10:22:48 [0.19ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 106 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (50);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 107 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 108 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (51);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 109 - 2025-03-24 10:22:48 [0.16ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 110 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (52);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 111 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 112 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (53);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 113 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 114 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (54);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 115 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 116 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (55);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 117 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 118 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (56);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 119 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 120 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (57);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 121 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 122 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (58);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 123 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 124 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (59);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 125 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 126 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (60);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 127 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 128 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (61);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 129 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 130 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (62);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 131 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 132 - 2025-03-24 10:22:48 [0.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (63);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 133 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 134 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (64);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 135 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 136 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (65);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 137 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 138 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (66);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 139 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 140 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (67);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 141 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 142 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (68);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 143 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 144 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (69);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 145 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 146 - 2025-03-24 10:22:48 [3.06ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (70);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 147 - 2025-03-24 10:22:48 [0.27ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 148 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (71);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 149 - 2025-03-24 10:22:48 [0.18ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 150 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (72);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 151 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 152 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (73);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 153 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 154 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (74);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 155 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 156 - 2025-03-24 10:22:48 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (75);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 157 - 2025-03-24 10:22:48 [0.17ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 158 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (76);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 159 - 2025-03-24 10:22:48 [0.16ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 160 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (77);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 161 - 2025-03-24 10:22:48 [0.16ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 162 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (78);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 163 - 2025-03-24 10:22:48 [0.16ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 164 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (79);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 165 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 166 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (80);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 167 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 168 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (81);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 169 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 170 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (82);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 171 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 172 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (83);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 173 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 174 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (84);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 175 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 176 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (85);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 177 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 178 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (86);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 179 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 180 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (87);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 181 - 2025-03-24 10:22:48 [0.14ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 182 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (88);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 183 - 2025-03-24 10:22:48 [0.16ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 184 - 2025-03-24 10:22:48 [0.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (89);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 185 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 186 - 2025-03-24 10:22:48 [0.18ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (90);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 187 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 188 - 2025-03-24 10:22:48 [0.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (91);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 189 - 2025-03-24 10:22:48 [0.15ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 190 - 2025-03-24 10:22:48 [2.95ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (92);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 191 - 2025-03-24 10:22:48 [4.79ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 192 - 2025-03-24 10:22:48 [0.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 19 and `role_has_permissions`.`permission_id` in (93);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 193 - 2025-03-24 10:22:48 [0.26ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 194 - 2025-03-24 10:22:48 [0.68ms] */
select * from `permissions` where `name` = 'view_backend' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 195 - 2025-03-24 10:22:48 [0.29ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 196 - 2025-03-24 10:22:48 [3.22ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (2, 19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 197 - 2025-03-24 10:22:48 [1.12ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 198 - 2025-03-24 10:22:48 [0.29ms] */
select * from `permissions` where `name` = 'view_dashboard' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 199 - 2025-03-24 10:22:48 [0.23ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 200 - 2025-03-24 10:22:48 [3.2ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (7, 19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 201 - 2025-03-24 10:22:48 [0.3ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 202 - 2025-03-24 10:22:48 [0.17ms] */
select * from `permissions` where `name` = 'rta2_view_reports' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 203 - 2025-03-24 10:22:48 [0.23ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 204 - 2025-03-24 10:22:48 [2.75ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (70, 19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 205 - 2025-03-24 10:22:48 [0.32ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 206 - 2025-03-24 10:22:48 [0.18ms] */
select * from `permissions` where `name` = 'PaymentConfirmationReport' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 207 - 2025-03-24 10:22:48 [0.22ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 208 - 2025-03-24 10:22:48 [2.72ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (92, 19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/19
   Query 209 - 2025-03-24 10:22:48 [0.3ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (19);
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 1 - 2025-03-24 10:22:48 [1.82ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 2 - 2025-03-24 10:22:48 [0.7ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 3 - 2025-03-24 10:22:48 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 4 - 2025-03-24 10:22:48 [0.35ms] */
select * from `permissions`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 5 - 2025-03-24 10:22:48 [0.6ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 6 - 2025-03-24 10:22:48 [0.75ms] */
select `roles`.*, `role_has_permissions`.`permission_id` as `pivot_permission_id`, `role_has_permissions`.`role_id` as `pivot_role_id` from `roles` inner join `role_has_permissions` on `roles`.`id` = `role_has_permissions`.`role_id` where `role_has_permissions`.`permission_id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93);
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 7 - 2025-03-24 10:22:48 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 8 - 2025-03-24 10:22:48 [0.13ms] */
select count(*) as aggregate from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 9 - 2025-03-24 10:22:48 [0.14ms] */
select * from `roles` limit 15 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 10 - 2025-03-24 10:22:48 [0.72ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-03-24 10:22:52 [2.03ms] */
select * from `users` where `id` = 157 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-03-24 10:22:52 [0.73ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-03-24 10:22:52 [0.57ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-03-24 10:22:52 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-03-24 10:22:52 [0.27ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-03-24 10:22:52 [0.32ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-03-24' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-03-24 10:22:52 [0.26ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-03-24 10:22:52 [0.26ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-03-24' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-03-24 10:22:52 [56.67ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-23' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-03-24 10:22:52 [43.29ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-23' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-03-24 10:22:52 [330.01ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-24' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-03-24 10:22:53 [772.28ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-24' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 13 - 2025-03-24 10:22:53 [0.24ms] */
select * from `district` where `district`.`id` = 35 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 14 - 2025-03-24 10:22:53 [0.14ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 1 - 2025-03-24 10:22:56 [1.83ms] */
select * from `users` where `id` = 157 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 2 - 2025-03-24 10:22:56 [0.73ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 3 - 2025-03-24 10:22:56 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 4 - 2025-03-24 10:22:56 [0.49ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 5 - 2025-03-24 10:22:56 [0.27ms] */
select `region`.`name` from `district` inner join `region` on `region`.`id` = `district`.`region_id` where `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 6 - 2025-03-24 10:22:56 [0.24ms] */
select `name` from `classification_type` where `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 7 - 2025-03-24 10:22:56 [0.28ms] */
select * from `district` where `district`.`id` = 35 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 8 - 2025-03-24 10:22:56 [0.26ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 10:24:06 [2.39ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 10:24:06 [0.45ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-24 10:24:06 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-24 10:24:06 [0.48ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-24 10:24:06 [0.34ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-24 10:24:06 [0.37ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 10:24:06 [1.92ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_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_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` = 'QJ021' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-24 10:24:06 [0.59ms] */
select * from `party` where `party`.`id` = 48876 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 10:24:06 [0.4ms] */
select * from `vehicle` where `id` = 78298 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-24 10:24:06 [0.42ms] */
select * from `party_vehicle` where `vehicle_id` = 78298 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-03-24 10:24:07 [2.04ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-24 10:24:07 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-24 10:24:07 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-24 10:24:07 [0.32ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-24 10:24:07 [0.29ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-24 10:24:07 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 10:24:07 [0.56ms] */
select * from `vehicle` where `vehicle`.`id` = 78298 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 10:24:07 [0.4ms] */
select * from `vehicle` where `id` = 78298 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-03-24 10:24:07 [0.48ms] */
select * from `party_vehicle` where `vehicle_id` = 78298 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-03-24 10:24:07 [1.5ms] */
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` = 78298 and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-03-24 10:24:07 [2.09ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-24 10:24:07 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-24 10:24:07 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-24 10:24:07 [0.35ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-24 10:24:07 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-24 10:24:07 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-24 10:24:07 [0.15ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-24 10:24:07 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-24 10:24:07 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-24 10:24:07 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-24 10:24:07 [0.27ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-24 10:24:07 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-24 10:24:07 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-24 10:24:07 [0.26ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-24 10:25:05 [2.33ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-24 10:25:05 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-24 10:25:05 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-24 10:25:05 [0.22ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-24 10:25:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-24 10:25:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-24 10:25:05 [0.15ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-03-24 10:25:05 [0.3ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401333) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-24 10:25:05 [0.24ms] */
select `parent_id` from `transaction` where `id` in (511174) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-24 10:25:05 [0.22ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-03-24 10:25:05 [0.28ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-03-24 10:25:05 [0.22ms] */
select * from `transaction` where `id` in (511174) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-24 10:25:05 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 486842 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-03-24 10:25:05 [6.71ms] */
update `invoice` set `updated_by` = 153, `invoice`.`updated_at` = '2025-03-24 10:25:05' where `id` = 486842;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-24 10:25:05 [0.26ms] */
select * from `invoice` where `id` = 486842 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-24 10:25:05 [3.41ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 153, 'App\Models\User', 486842, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-24 10:25:05 [0.46ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-03-24 10:25:05 [0.52ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-03-24 10:25:05 [3.58ms] */
update `transaction` set `updated_by` = 153, `transaction`.`updated_at` = '2025-03-24 10:25:05' where `id` = 511174;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-03-24 10:25:05 [1.78ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-03-24 10:25:05' where `id` in (401333) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-03-24 10:25:05 [0.47ms] */
select * from `vehicle` where `vehicle`.`id` = 78298 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-03-24 10:25:05 [0.35ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-03-24 10:25:05 [0.3ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 78298 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-03-24 10:25:05 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 78298 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-03-24 10:25:05 [0.26ms] */
select * from `party` where `party`.`id` = 48876 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-03-24 10:25:05 [0.2ms] */
select * from `vehicle` where `vehicle`.`id` = 78298 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-03-24 10:25:05 [0.19ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-03-24 10:25:05 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-03-24 10:25:05 [0.22ms] */
select * from `branches` where `branches`.`id` = 16 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-03-24 10:25:05 [0.48ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48876, 2, 78298, null, 2, 6, 16, 37, 37, 'OPEN', 26, null, 153, 153, '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-03-24 10:25:05 [0.35ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511205, 'INITIATED', '2025-03-24 10:25:05', 5, 153, 153, 153, '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-03-24 10:25:05 [0.18ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 74188, `transaction`.`updated_at` = '2025-03-24 10:25:05' where `id` = 511205;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-03-24 10:25:05 [0.24ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (401333) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-03-24 10:25:05 [0.21ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (401333) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-03-24 10:25:05 [0.25ms] */
insert into `invoice` (`transaction_id`, `party_id`, `invoice_date`, `due_date`, `invoice_amount`, `discounts`, `total_invoice_amount`, `outstanding_balance`, `taxes`, `status`, `grouped`, `parent`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511205, 48876, '2025-03-24 10:25:05', '2025-03-24 10:25:05', 64.00, 0, 64.00, 64.00, 0, 'OPEN', 'N', 'Y', 153, 153, '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-03-24 10:25:05 [0.21ms] */
select * from `invoice` where `id` = 486873 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-03-24 10:25:05 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":511205,"party_id":48876,"invoice_amount":"64.00","invoice_date":"2025-03-24 10:25:05","due_date":"2025-03-24 10:25:05","outstanding_balance":"64.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"64.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 153, 'App\Models\User', 486873, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-03-24 10:25:05 [0.25ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (401333) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-03-24 10:25:05 [0.29ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Quarterly Tax Fees', 1, 64.00, 64, 486873, 153, 153, '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-03-24 10:25:05 [0.17ms] */
select * from `invoice_item` where `id` = 873100 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-03-24 10:25:05 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"64.00","quantity":1,"total_price":"64.00","invoice_id":486873}}', 153, 'App\Models\User', 873100, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-03-24 10:25:05 [0.19ms] */
update `invoice` set `invoice_number` = 'INV-271-486873400', `invoice`.`updated_at` = '2025-03-24 10:25:05' where `id` = 486873;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-03-24 10:25:05 [0.19ms] */
select * from `invoice` where `id` = 486873 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-03-24 10:25:05 [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":{"invoice_number":"INV-271-486873400"},"old":{"invoice_number":null}}', 153, 'App\Models\User', 486873, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-03-24 10:25:05 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 401333 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-03-24 10:25:05 [0.23ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 153, `vehicle_tax`.`updated_at` = '2025-03-24 10:25:05' where `id` = 401333;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-03-24 10:25:05 [0.18ms] */
select * from `vehicle_tax` where `id` = 401333 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-03-24 10:25:05 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 153, 'App\Models\User', 401333, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-03-24 10:25:05 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-03-24 10:25:05 [0.2ms] */
update `transaction` set `tax_collection_point_id` = 26, `parent_id` = 511205, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-24 10:25:05' where `id` = 511174;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-03-24 10:25:05 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 486842 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-03-24 10:25:05 [0.16ms] */
update `invoice` set `parent_id` = 486873, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-24 10:25:05' where `id` = 486842;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-03-24 10:25:05 [0.2ms] */
select * from `invoice` where `id` = 486842 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-03-24 10:25:05 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486873,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 153, 'App\Models\User', 486842, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-03-24 10:25:05 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-03-24 10:25:05 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-03-24 10:25:05 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-03-24 10:25:05 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-03-24 10:25:05 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-03-24 10:25:05 [0.17ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-03-24 10:25:05 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511174, 'APPROVED', '2025-03-24 10:25:05', 5, 153, null, 153, 153, '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-03-24 10:25:05 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-03-24 10:25:05 [0.23ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-24 10:25:05' where `id` = 511174;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-03-24 10:25:05 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-03-24 10:25:05 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 486842 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-03-24 10:25:05 [0.17ms] */
update `transaction` set `invoice_id` = 486873, `transaction`.`updated_at` = '2025-03-24 10:25:05' where `id` = 511205;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-03-24 10:25:05 [0.26ms] */
update `vehicle` set `updated_by` = 153, `vehicle`.`updated_at` = '2025-03-24 10:25:05' where `id` = 78298;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-03-24 10:25:05 [0.18ms] */
select * from `vehicle` where `id` = 78298 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-03-24 10:25:05 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 153, 'App\Models\User', 78298, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-03-24 10:25:05 [0.28ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"updated_by":151}', '{"updated_by":153}', 'updated', 78298, 'Modules\Vehicle\Entities\Vehicle', 153, 'App\Models\User', null, '102.220.42.246', 'Dart/3.4 (dart:io)', 'https://testtra.puntlandgov.org/api/make_payment', '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-03-24 10:25:05 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 511205 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-03-24 10:25:05 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-03-24 10:25:05 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-03-24 10:25:05 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-03-24 10:25:05 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511205, 'APPROVED', '2025-03-24 10:25:05', 5, 153, null, 153, 153, '2025-03-24 10:25:05', '2025-03-24 10:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-03-24 10:25:05 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-03-24 10:25:05 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-24 10:25:05' where `id` = 511205;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-03-24 10:25:05 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-03-24 10:25:05 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486873 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-03-24 10:25:05 [0.2ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401333) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-03-24 10:25:05 [0.3ms] */
select * from `invoice` where `transaction_id` = 511174 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-03-24 10:25:05 [0.26ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486842 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-03-24 10:25:05 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-03-24 10:25:05 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-03-24 10:25:05 [0.14ms] */
select * from `user_accounts` where `user_id` = 153 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-03-24 10:25:05 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-03-24 10:25:05 [0.13ms] */
select * from `user_accounts` where `user_id` = 153 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-24 10:25:06 [1.34ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-24 10:25:06 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-24 10:25:06 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-24 10:25:06 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-24 10:25:06 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-24 10:25:06 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-24 10:25:06 [0.19ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-24 10:25:11 [2.05ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-24 10:25:11 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-24 10:25:11 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-24 10:25:11 [0.32ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-24 10:25:11 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-24 10:25:11 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-24 10:25:11 [0.16ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-03-24 10:25:11 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401333) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-24 10:25:11 [0.34ms] */
select `parent_id` from `transaction` where `id` in (511174) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-24 10:25:11 [189.18ms] */
select `id` from `transaction` where `parent_id` in (511205) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-03-24 10:25:11 [0.43ms] */
select * from `transaction` where `id` in (511205) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-03-24 10:25:11 [0.12ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401333) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-24 10:25:11 [0.15ms] */
select * from `invoice` where `transaction_id` = 511174 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-03-24 10:25:11 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486842 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-24 10:25:11 [0.15ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-24 10:25:11 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-24 10:25:11 [0.13ms] */
select * from `user_accounts` where `user_id` = 153 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-03-24 10:25:11 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-03-24 10:25:11 [0.13ms] */
select * from `user_accounts` where `user_id` = 153 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-24 10:26:02 [2.3ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-24 10:26:02 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-24 10:26:02 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-24 10:26:02 [0.31ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-24 10:26:02 [0.3ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-24 10:26:02 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-24 10:26:02 [5.86ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-24 10:27:05 [2.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-24 10:27:05 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-24 10:27:05 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-24 10:27:05 [0.36ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-24 10:27:05 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-24 10:27:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-24 10:27:05 [0.56ms] */
delete from `payment_documents` where `transaction_id` = 511174 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-24 10:27:05 [0.63ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2510023;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-24 10:27:05 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-03-24 10:27:06 [584.64ms] */
select * from `transaction` where `parent_id` = 511205 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-03-24 10:27:06 [6.08ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (511174, 'GOV_RECEIPT_IMAGE', 2510023, 1, '2025-03-24 10:27:06', '2025-03-24 10:27:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-03-24 10:27:06 [2.82ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (511205, 'GOV_RECEIPT_IMAGE', 2510023, 1, '2025-03-24 10:27:06', '2025-03-24 10:27:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-03-24 10:27:06 [8.5ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-24 10:27:06' where `receipt_number` = 2510023 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-24 10:27:18 [1.33ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-24 10:27:18 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-24 10:27:18 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-24 10:27:18 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-24 10:27:18 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-24 10:27:18 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-24 10:27:18 [1.76ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-24 10:29:29 [1.45ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-24 10:29:29 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-24 10:29:29 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-24 10:29:29 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-24 10:29:29 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-24 10:29:29 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-24 10:29:29 [0.16ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-24 10:29:40 [1.59ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-24 10:29:40 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-24 10:29:40 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-24 10:29:40 [0.21ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-24 10:29:40 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-24 10:29:40 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-24 10:29:40 [0.95ms] */
delete from `payment_documents` where `transaction_id` = 511174 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-24 10:29:40 [0.88ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 1110023;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-24 10:29:40 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-03-24 10:29:40 [0.19ms] */
select * from `transaction` where `parent_id` = 511205 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-03-24 10:29:40 [6.18ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (511174, 'SERVICE_RECEIPT_IMAGE', 1110023, 1, '2025-03-24 10:29:40', '2025-03-24 10:29:40');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-03-24 10:29:40 [9.05ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (511205, 'SERVICE_RECEIPT_IMAGE', 1110023, 1, '2025-03-24 10:29:40', '2025-03-24 10:29:40');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-03-24 10:29:40 [11.91ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-24 10:29:40' where `receipt_number` = 1110023 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-03-24 10:29:40 [1.3ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-03-24 10:29:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-03-24 10:29:40 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-03-24 10:29:40 [0.18ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-03-24 10:29:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-03-24 10:29:40 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-03-24 10:29:40 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-03-24 10:29:40 [1.1ms] */
select * from `transaction` where `transaction`.`id` = 511205 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-03-24 10:29:40 [0.85ms] */
select * from `invoice_payment` where `invoice_id` = 486873 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-03-24 10:29:40 [360.4ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 511205 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-03-24 10:29:40 [166.55ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 511205 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-03-24 10:29:40 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 511205 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-03-24 10:29:40 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-03-24 10:29:40 [0.14ms] */
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 15 - 2025-03-24 10:29:40 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-03-24 10:29:41 [193.33ms] */
select sum(`invoice`.`invoice_amount`) as aggregate 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 `transaction`.`parent_id` = 511205 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-03-24 10:29:41 [0.37ms] */
select * from `party` where `party`.`id` = 48876 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-03-24 10:29:41 [0.65ms] */
insert into `Payment` (`payment_date`, `external_payment_reference_no`, `payment_receipt_number`, `payment_method_id`, `payment_amount`, `paid_by`, `paid_by_mobile`, `siinpay_payref_number`, `district_id`, `payment_collected_by`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('2025-03-24 10:29:41', 'wer', 2510023, 1, 64.00, 'faysal', 7766940, null, 37, 153, 153, 153, '2025-03-24 10:29:41', '2025-03-24 10:29:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-03-24 10:29:41 [0.2ms] */
select * from `Payment` where `id` = 177704 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-03-24 10:29:41 [0.61ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":1,"payment_amount":"64.00","payment_date":"2025-03-24 10:29:41","external_payment_reference_no":"wer","payment_receipt_number":"2510023","siinpay_payref_number":null,"paid_by":"faysal","paid_by_mobile":"7766940","district_id":37,"migration_id":null,"payment_collected_by":153}}', 153, 'App\Models\User', 177704, 'Modules\Transaction\Entities\Payment', 'created', '2025-03-24 10:29:41', '2025-03-24 10:29:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-03-24 10:29:41 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 511205 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-03-24 10:29:41 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-03-24 10:29:41 [0.13ms] */
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 24 - 2025-03-24 10:29:41 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 486842 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-03-24 10:29:41 [0.5ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-24 10:29:41', 486842, 177704, '2025-03-24 10:29:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-03-24 10:29:41 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486842 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-03-24 10:29:41 [0.29ms] */
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` = 486842 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-03-24 10:29:41 [0.54ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486842 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 29 - 2025-03-24 10:29:41 [0.33ms] */
update `invoice` set `invoice_amount` = 64, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 64, `status` = 'PAID', `invoice`.`updated_at` = '2025-03-24 10:29:41' where `id` = 486842;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-03-24 10:29:41 [0.29ms] */
select * from `invoice` where `id` = 486842 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-03-24 10:29:41 [0.3ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"64.00","status":"OPEN"}}', 153, 'App\Models\User', 486842, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:29:41', '2025-03-24 10:29:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-03-24 10:29:41 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-03-24 10:29:41 [0.49ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-03-24 10:29:41 [0.56ms] */
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 35 - 2025-03-24 10:29:41 [0.14ms] */
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 36 - 2025-03-24 10:29:41 [0.4ms] */
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 37 - 2025-03-24 10:29:41 [0.59ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511174, 'PAID', '2025-03-24 10:29:41', 7, 153, null, 153, 153, '2025-03-24 10:29:41', '2025-03-24 10:29:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-03-24 10:29:41 [0.41ms] */
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 39 - 2025-03-24 10:29:41 [0.86ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-03-24 10:29:41' where `id` = 511174;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-03-24 10:29:41 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-03-24 10:29:41 [1.15ms] */
select * from `invoice` where `invoice`.`id` = 486842 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 42 - 2025-03-24 10:29:41 [0.64ms] */
select * from `vehicle_tax` where `transaction_id` = 511174 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-03-24 10:29:41 [0.76ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-03-24 10:29:41' where `id` = 401333;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-03-24 10:29:41 [0.77ms] */
select * from `vehicle_tax` where `id` = 401333 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-03-24 10:29:41 [0.7ms] */
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"}}', 153, 'App\Models\User', 401333, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 10:29:41', '2025-03-24 10:29:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-03-24 10:29:41 [0.38ms] */
select * from `invoice` where `invoice`.`id` = 486873 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 47 - 2025-03-24 10:29:41 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 486873 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-03-24 10:29:41 [0.35ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-24 10:29:41', 486873, 177704, '2025-03-24 10:29:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-03-24 10:29:41 [0.4ms] */
select * from `invoice` where `invoice`.`id` = 486873 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-03-24 10:29:41 [0.49ms] */
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` = 486873 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-03-24 10:29:41 [1ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-03-24 10:29:41' where `id` = 486873;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-03-24 10:29:41 [0.29ms] */
select * from `invoice` where `id` = 486873 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-03-24 10:29:41 [0.52ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"64.00","status":"OPEN"}}', 153, 'App\Models\User', 486873, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:29:41', '2025-03-24 10:29:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-03-24 10:29:41 [0.41ms] */
select * from `transaction` where `transaction`.`id` = 511205 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-03-24 10:29:41 [0.46ms] */
select * from `transaction` where `transaction`.`id` = 511205 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-03-24 10:29:41 [0.3ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-03-24 10:29:41 [0.28ms] */
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 58 - 2025-03-24 10:29:41 [0.35ms] */
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 59 - 2025-03-24 10:29:41 [0.34ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511205, 'PAID', '2025-03-24 10:29:41', 7, 153, null, 153, 153, '2025-03-24 10:29:41', '2025-03-24 10:29:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-03-24 10:29:41 [0.61ms] */
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 61 - 2025-03-24 10:29:41 [0.38ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-03-24 10:29:41' where `id` = 511205;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-03-24 10:29:41 [0.29ms] */
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 63 - 2025-03-24 10:29:41 [0.38ms] */
select * from `invoice` where `invoice`.`id` = 486873 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-24 10:30:12 [1.47ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-24 10:30:12 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-24 10:30:12 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-24 10:30:12 [0.19ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-24 10:30:12 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-24 10:30:12 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-24 10:30:12 [5.73ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-24 10:31:12 [1.99ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-24 10:31:12 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-24 10:31:12 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-24 10:31:12 [0.35ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-24 10:31:12 [0.37ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-24 10:31:12 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-24 10:31:12 [7.21ms] */
delete from `payment_documents` where `transaction_id` = 511174 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-24 10:31:12 [0.57ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2510024;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-24 10:31:12 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-03-24 10:31:12 [383.72ms] */
select * from `transaction` where `parent_id` = 511205 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-03-24 10:31:12 [4.98ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (511174, 'GOV_RECEIPT_IMAGE', 2510024, 1, '2025-03-24 10:31:12', '2025-03-24 10:31:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-03-24 10:31:12 [3.07ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (511205, 'GOV_RECEIPT_IMAGE', 2510024, 1, '2025-03-24 10:31:12', '2025-03-24 10:31:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-03-24 10:31:12 [7.76ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-24 10:31:12' where `receipt_number` = 2510024 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-24 10:31:37 [1.32ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-24 10:31:37 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-24 10:31:37 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-24 10:31:37 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-24 10:31:37 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-24 10:31:37 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-24 10:31:37 [0.15ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-03-24 10:31:37 [0.36ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401333) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-24 10:31:37 [0.24ms] */
select `parent_id` from `transaction` where `id` in (511174) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-24 10:31:37 [169.1ms] */
select `id` from `transaction` where `parent_id` in (511205) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-03-24 10:31:37 [0.49ms] */
select * from `transaction` where `id` in (511205) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-03-24 10:31:37 [0.2ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401333) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-24 10:31:37 [0.44ms] */
select * from `invoice` where `transaction_id` = 511174 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-03-24 10:31:37 [0.22ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486842 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-24 10:31:37 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-24 10:31:37 [0.22ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-24 10:31:37 [0.18ms] */
select * from `user_accounts` where `user_id` = 153 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-03-24 10:31:37 [0.16ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-03-24 10:31:37 [0.16ms] */
select * from `user_accounts` where `user_id` = 153 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-24 10:32:02 [2.2ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-24 10:32:02 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-24 10:32:02 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-24 10:32:02 [0.32ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-24 10:32:02 [0.29ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-24 10:32:02 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-24 10:32:02 [3.66ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-24 10:32:14 [2.38ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-24 10:32:14 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-24 10:32:14 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-24 10:32:14 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-24 10:32:14 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-24 10:32:14 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-24 10:32:14 [20.86ms] */
delete from `payment_documents` where `transaction_id` = 511174 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-24 10:32:14 [1.13ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 1110024;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-24 10:32:14 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-03-24 10:32:14 [0.3ms] */
select * from `transaction` where `parent_id` = 511205 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-03-24 10:32:14 [3.86ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (511174, 'SERVICE_RECEIPT_IMAGE', 1110024, 1, '2025-03-24 10:32:14', '2025-03-24 10:32:14');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-03-24 10:32:14 [3.43ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (511205, 'SERVICE_RECEIPT_IMAGE', 1110024, 1, '2025-03-24 10:32:14', '2025-03-24 10:32:14');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-03-24 10:32:14 [6.83ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-24 10:32:14' where `receipt_number` = 1110024 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-03-24 10:32:14 [2.17ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-03-24 10:32:14 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-03-24 10:32:14 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-03-24 10:32:14 [0.36ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-03-24 10:32:14 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-03-24 10:32:14 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-03-24 10:32:14 [0.17ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-03-24 10:32:14 [0.61ms] */
select * from `transaction` where `transaction`.`id` = 511205 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-03-24 10:32:14 [0.79ms] */
select * from `invoice_payment` where `invoice_id` = 486873 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-03-24 10:32:28 [2.29ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-03-24 10:32:28 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-03-24 10:32:28 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-03-24 10:32:28 [0.31ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-03-24 10:32:28 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-03-24 10:32:28 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-03-24 10:32:28 [0.56ms] */
select * from `vehicle_tax` where `id` = 401333 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-03-24 10:32:28 [51.58ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 103 and `name` like '%2025-Q1%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-03-24 10:32:56 [2.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-03-24 10:32:56 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-03-24 10:32:56 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-03-24 10:32:56 [0.31ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-03-24 10:32:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-03-24 10:32:56 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-03-24 10:32:56 [0.38ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 611334 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-03-24 10:32:56 [0.15ms] */
select * from `vehicle_tax` where `id` = 401333 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-03-24 10:32:56 [11.46ms] */
update `vehicle_tax` set `tax_sticker_id` = 611334, `vehicle_tax`.`updated_at` = '2025-03-24 10:32:56' where `id` = 401333;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-03-24 10:32:56 [0.36ms] */
select * from `vehicle_tax` where `id` = 401333 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-03-24 10:32:56 [3.41ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"tax_sticker_id":611334},"old":{"tax_sticker_id":null}}', 153, 'App\Models\User', 401333, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 10:32:56', '2025-03-24 10:32:56');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-03-24 10:32:56 [3.16ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 153, `tax_sticker`.`updated_at` = '2025-03-24 10:32:56' where `id` = 611334;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-03-24 10:33:05 [1.36ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-03-24 10:33:05 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-03-24 10:33:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-03-24 10:33:05 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-03-24 10:33:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-03-24 10:33:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-03-24 10:33:05 [0.62ms] */
select * from `vehicle_tax` where `id` in (401333) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-03-24 10:33:05 [1.14ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-03-24 10:33:05 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-03-24 10:33:05 [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): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-03-24 10:33:05 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-03-24 10:33:05 [0.15ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-03-24 10:33:05 [3.38ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511174, 'APPROVED', '2025-03-24 10:33:05', 8, 153, null, 153, 153, '2025-03-24 10:33:05', '2025-03-24 10:33:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-03-24 10:33:05 [0.16ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-03-24 10:33:05 [1.59ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-24 10:33:05' where `id` = 511174;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-03-24 10:33:05 [0.15ms] */
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/complete_transaction
   Query 17 - 2025-03-24 10:33:05 [0.83ms] */
select * from `vehicle_tax` where `transaction_id` = 511174 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-03-24 10:33:05 [8.2ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-03-24 10:33:05' where `id` = 401333;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-03-24 10:33:05 [8.16ms] */
select * from `vehicle_tax` where `id` = 401333 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-03-24 10:33:05 [1.74ms] */
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":"ISSUED"},"old":{"status":"PAID"}}', 153, 'App\Models\User', 401333, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 10:33:05', '2025-03-24 10:33:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-03-24 10:33:05 [1.14ms] */
select * from `invoice` where `invoice`.`id` = 486842 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-03-24 10:33:05 [0.62ms] */
select * from `transaction` where `id` = 511174 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-03-24 10:33:05 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 511205 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-03-24 10:33:05 [0.23ms] */
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/complete_transaction
   Query 25 - 2025-03-24 10:33:05 [0.25ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 26 - 2025-03-24 10:33:05 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-03-24 10:33:05 [0.49ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511205, 'APPROVED', '2025-03-24 10:33:05', 8, 153, null, 153, 153, '2025-03-24 10:33:05', '2025-03-24 10:33:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-03-24 10:33:05 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-03-24 10:33:05 [0.44ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-24 10:33:05' where `id` = 511205;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-03-24 10:33:05 [0.23ms] */
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/complete_transaction
   Query 31 - 2025-03-24 10:33:05 [0.31ms] */
select * from `vehicle_tax` where `transaction_id` = 511205 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-03-24 10:33:05 [0.32ms] */
select * from `invoice` where `invoice`.`id` = 486873 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 33 - 2025-03-24 10:33:05 [0.23ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 34 - 2025-03-24 10:33:05 [1.62ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 74188 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 35 - 2025-03-24 10:33:05 [0.32ms] */
select * from `party` where `party`.`id` = 48876 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 36 - 2025-03-24 10:33:05 [1.78ms] */
select * from `person` where `person`.`id` = 48876 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-03-24 10:33:05 [2.07ms] */
select * from `vehicle` where `vehicle`.`id` = 78298 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 38 - 2025-03-24 10:33:05 [0.68ms] */
select * from `invoice` where `invoice`.`id` = 486842 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 39 - 2025-03-24 10:33:05 [2.13ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 486842 and `invoice_payment`.`invoice_id` is not null and `invoice_payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 40 - 2025-03-24 10:33:05 [1.61ms] */
select * from `Payment` where `Payment`.`id` = 177704 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-03-24 10:33:05 [0.23ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 26 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-03-24 10:33:05 [0.83ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 611334 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 10:34:18 [2.09ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 10:34:18 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-24 10:34:18 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-24 10:34:18 [0.18ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-24 10:34:18 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-24 10:34:18 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 10:34:18 [1.13ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_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_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` = 'QJ021' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-24 10:34:18 [0.29ms] */
select * from `party` where `party`.`id` = 48876 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 10:34:18 [0.48ms] */
select * from `vehicle` where `id` = 78298 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-24 10:34:18 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 78298 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-03-24 10:34:18 [1.51ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-24 10:34:18 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-24 10:34:18 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-24 10:34:18 [0.33ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-24 10:34:18 [0.23ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-24 10:34:18 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 10:34:18 [0.42ms] */
select * from `vehicle` where `vehicle`.`id` = 78298 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 10:34:18 [0.24ms] */
select * from `vehicle` where `id` = 78298 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-03-24 10:34:18 [0.19ms] */
select * from `party_vehicle` where `vehicle_id` = 78298 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-03-24 10:34:18 [1.09ms] */
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` = 78298 and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-03-24 10:34:19 [1.4ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-24 10:34:19 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-24 10:34:19 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-24 10:34:19 [0.2ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-24 10:34:19 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-24 10:34:19 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-24 10:34:19 [0.13ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-24 10:34:19 [1.36ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-24 10:34:19 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-24 10:34:19 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-24 10:34:19 [0.19ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-24 10:34:19 [0.23ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-24 10:34:19 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-24 10:34:19 [0.27ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-03-24 10:35:03 [1.62ms] */
select * from `users` where `id` = 157 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-03-24 10:35:03 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-03-24 10:35:03 [0.5ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-03-24 10:35:03 [0.49ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-03-24 10:35:03 [0.2ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-03-24 10:35:03 [0.16ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-03-24' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-03-24 10:35:03 [53.87ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-03-24 10:35:03 [29.87ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-03-24' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-03-24 10:35:03 [89.71ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-23' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-03-24 10:35:03 [44.06ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-23' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-03-24 10:35:03 [265.11ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-24' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-03-24 10:35:04 [769.99ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-24' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 13 - 2025-03-24 10:35:04 [0.24ms] */
select * from `district` where `district`.`id` = 35 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 14 - 2025-03-24 10:35:04 [0.14ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/logout
   Query 1 - 2025-03-24 10:35:12 [2.04ms] */
select * from `users` where `id` = 157 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/logout
   Query 2 - 2025-03-24 10:35:12 [0.75ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/logout
   Query 3 - 2025-03-24 10:35:12 [0.65ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/logout
   Query 4 - 2025-03-24 10:35:12 [0.62ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 1 - 2025-03-24 10:35:20 [1.68ms] */
select * from `users` where `email` = 'admin@admin.com' and `status` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 2 - 2025-03-24 10:35:20 [0.25ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 3 - 2025-03-24 10:35:20 [0.5ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 2 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 4 - 2025-03-24 10:35:20 [5.93ms] */
update `userprofiles` set `login_count` = 486, `last_login` = '2025-03-24 10:35:20', `userprofiles`.`updated_at` = '2025-03-24 10:35:20' where `id` = 2;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 5 - 2025-03-24 10:35:20 [0.7ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 6 - 2025-03-24 10:35:20 [0.51ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 7 - 2025-03-24 10:35:20 [0.48ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-03-24 10:35:20 [2.07ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-03-24 10:35:20 [0.72ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-03-24 10:35:20 [0.55ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-03-24 10:35:20 [0.55ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-03-24 10:35:20 [0.15ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-03-24 10:35:20 [0.12ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-03-24' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-03-24 10:35:20 [0.13ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-03-24 10:35:20 [0.12ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-03-24' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-03-24 10:35:20 [0.18ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-23' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-03-24 10:35:20 [0.15ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-23' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-03-24 10:35:20 [0.14ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-24' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-03-24 10:35:20 [0.14ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-24' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 1 - 2025-03-24 10:35:23 [2.25ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 2 - 2025-03-24 10:35:23 [0.75ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 3 - 2025-03-24 10:35:23 [0.64ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 4 - 2025-03-24 10:35:23 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 5 - 2025-03-24 10:35:23 [0.13ms] */
select count(*) as aggregate from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 6 - 2025-03-24 10:35:23 [0.14ms] */
select * from `roles` limit 15 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 7 - 2025-03-24 10:35:23 [0.34ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 1 - 2025-03-24 10:35:30 [2.34ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 2 - 2025-03-24 10:35:30 [0.72ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 3 - 2025-03-24 10:35:30 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 4 - 2025-03-24 10:35:30 [0.35ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 5 - 2025-03-24 10:35:30 [0.15ms] */
select `name`, `id` from `permissions`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 6 - 2025-03-24 10:35:30 [0.14ms] */
select * from `roles` where `roles`.`id` = 19 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/19/edit
   Query 7 - 2025-03-24 10:35:30 [0.46ms] */
select `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` from `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` where `role_has_permissions`.`role_id` = 19;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 10:37:44 [1.38ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 10:37:44 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-24 10:37:44 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-24 10:37:44 [0.18ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-24 10:37:44 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-24 10:37:44 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 10:37:44 [1.12ms] */
