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` = 14725 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:37:44 [0.26ms] */
select * from `party` where `party`.`id` = 17259 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 10:37:44 [0.24ms] */
select * from `vehicle` where `id` = 26310 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:37:44 [0.29ms] */
select * from `party_vehicle` where `vehicle_id` = 26310 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 10:37:53 [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:37:53 [0.28ms] */
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:53 [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:37:53 [0.31ms] */
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:53 [0.27ms] */
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:53 [0.25ms] */
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:53 [0.33ms] */
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` = 14725 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:37:53 [0.15ms] */
select * from `party` where `party`.`id` = 17259 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 10:37:53 [0.15ms] */
select * from `vehicle` where `id` = 26310 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:37:53 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 26310 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 10:38:01 [2.07ms] */
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:38:01 [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:38:01 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-24 10:38:01 [0.35ms] */
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:38:01 [0.3ms] */
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:38:01 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 10:38:01 [0.33ms] */
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` = 14725 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:38:01 [0.15ms] */
select * from `party` where `party`.`id` = 17259 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 10:38:01 [0.16ms] */
select * from `vehicle` where `id` = 26310 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:38:01 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 26310 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 10:39:22 [2.07ms] */
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:39:22 [0.28ms] */
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:39:22 [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:39:22 [0.32ms] */
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:39:22 [0.28ms] */
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:39:22 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 10:39:22 [1.08ms] */
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` = 'VE444' 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:39:22 [0.24ms] */
select * from `party` where `party`.`id` = 53832 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 10:39:22 [0.26ms] */
select * from `vehicle` where `id` = 87428 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:39:22 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 87428 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:39:22 [1.68ms] */
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:39:22 [0.26ms] */
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:39:22 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-24 10:39:22 [0.82ms] */
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:39:22 [0.28ms] */
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:39:22 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 10:39:22 [0.42ms] */
select * from `vehicle` where `vehicle`.`id` = 87428 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 10:39:22 [0.32ms] */
select * from `vehicle` where `id` = 87428 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:39:22 [0.43ms] */
select * from `party_vehicle` where `vehicle_id` = 87428 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:39:22 [1.33ms] */
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` = 87428 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:39:23 [1.6ms] */
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:39:23 [0.25ms] */
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:39:23 [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:39:23 [0.29ms] */
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:39:23 [0.27ms] */
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:39:23 [0.26ms] */
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:39:23 [0.25ms] */
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:39:23 [1.35ms] */
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:39:23 [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:39:23 [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:39:23 [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:39:23 [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:39:23 [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:39:23 [0.18ms] */
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/vehicle
   Query 1 - 2025-03-24 10:40:59 [2.32ms] */
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:40:59 [0.31ms] */
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:40:59 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-24 10:40:59 [0.34ms] */
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:40:59 [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:40:59 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 10:40:59 [1.82ms] */
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` = 'YX357' 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:40:59 [0.64ms] */
select * from `party` where `party`.`id` = 56882 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 10:40:59 [0.61ms] */
select * from `company` where `company`.`id` = 1169 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-24 10:40:59 [0.65ms] */
select * from `party` where `party`.`id` = 1 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 11 - 2025-03-24 10:40:59 [0.57ms] */
select * from `vehicle` where `id` = 73401 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 12 - 2025-03-24 10:40:59 [0.63ms] */
select * from `party_vehicle` where `vehicle_id` = 73401 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:41:00 [1.62ms] */
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:41:00 [0.17ms] */
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:41:00 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-24 10:41:00 [0.24ms] */
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:41:00 [0.18ms] */
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:41:00 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 10:41:00 [0.42ms] */
select * from `vehicle` where `vehicle`.`id` = 73401 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 10:41:00 [0.32ms] */
select * from `vehicle` where `id` = 73401 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:41:00 [0.38ms] */
select * from `party_vehicle` where `vehicle_id` = 73401 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:41:00 [1.54ms] */
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` = 73401 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:41:00 [1.52ms] */
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:41:00 [0.17ms] */
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:41:00 [0.17ms] */
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:41:00 [0.22ms] */
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:41:00 [0.18ms] */
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:41:00 [0.16ms] */
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:41:00 [0.17ms] */
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:41:00 [1.38ms] */
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:41:00 [0.17ms] */
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:41:00 [0.16ms] */
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:41:00 [0.2ms] */
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:41:00 [0.16ms] */
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:41:00 [0.16ms] */
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:41:00 [0.21ms] */
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/login
   Query 1 - 2025-03-24 10:46:16 [2.31ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-24 10:46:16 [0.41ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-24 10:46:16 [0.77ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-24 10:46:16 [4.16ms] */
update `userprofiles` set `login_count` = 6774, `last_login` = '2025-03-24 10:46:16', `userprofiles`.`updated_at` = '2025-03-24 10:46:16' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-24 10:46:16 [0.45ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-24 10:46:16 [0.58ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-24 10:46:16 [0.58ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-24 10:46:16 [0.5ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-24 10:46:16 [0.42ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-24 10:46:16 [0.57ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-24 10:46:16 [0.36ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-24 10:46:16 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-24 10:46:16 [5.28ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('2e19cb623cb11a83deaf663dc13d87a0e6bf10c1dd7a058c29fdc963a23930e5c3a11573c6fc9771', 149, 5, '[]', 0, '2025-03-24 10:46:16', '2025-03-24 10:46:16', '2026-03-24 10:46:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-24 10:46:16 [0.33ms] */
select * from `oauth_access_tokens` where `id` = '2e19cb623cb11a83deaf663dc13d87a0e6bf10c1dd7a058c29fdc963a23930e5c3a11573c6fc9771' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-24 10:46:16 [3.36ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '2e19cb623cb11a83deaf663dc13d87a0e6bf10c1dd7a058c29fdc963a23930e5c3a11573c6fc9771';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:46:20 [1.35ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-24 10:46:20 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-24 10:46:20 [0.37ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-24 10:46:20 [6.04ms] */
update `userprofiles` set `login_count` = 6775, `last_login` = '2025-03-24 10:46:20', `userprofiles`.`updated_at` = '2025-03-24 10:46:20' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-24 10:46:20 [0.16ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-24 10:46:20 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-24 10:46:20 [0.24ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-24 10:46:20 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-24 10:46:20 [0.18ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-24 10:46:20 [0.24ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-24 10:46:20 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-24 10:46:20 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-24 10:46:20 [3.37ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('b8e9d11547d8973dee13b115a8e8bd50ad872c85c10b70ffe9360cc9a152856f1f14ee308be7c338', 149, 5, '[]', 0, '2025-03-24 10:46:20', '2025-03-24 10:46:20', '2026-03-24 10:46:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-24 10:46:20 [0.35ms] */
select * from `oauth_access_tokens` where `id` = 'b8e9d11547d8973dee13b115a8e8bd50ad872c85c10b70ffe9360cc9a152856f1f14ee308be7c338' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-24 10:46:20 [3.06ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'b8e9d11547d8973dee13b115a8e8bd50ad872c85c10b70ffe9360cc9a152856f1f14ee308be7c338';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 10:46:21 [1.45ms] */
select * from `oauth_access_tokens` where `id` = 'b8e9d11547d8973dee13b115a8e8bd50ad872c85c10b70ffe9360cc9a152856f1f14ee308be7c338' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 10:46:21 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b8e9d11547d8973dee13b115a8e8bd50ad872c85c10b70ffe9360cc9a152856f1f14ee308be7c338' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-24 10:46:21 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-24 10:46:21 [0.27ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-24 10:46:21 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b8e9d11547d8973dee13b115a8e8bd50ad872c85c10b70ffe9360cc9a152856f1f14ee308be7c338' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-24 10:46:21 [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:46:21 [1.02ms] */
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` = 'LI574' 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:46:21 [0.25ms] */
select * from `party` where `party`.`id` = 39526 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 10:46:21 [0.27ms] */
select * from `vehicle` where `id` = 50459 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:46:21 [0.31ms] */
select * from `party_vehicle` where `vehicle_id` = 50459 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:46:24 [1.39ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-24 10:46:24 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-24 10:46:24 [0.44ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-24 10:46:24 [21.26ms] */
update `userprofiles` set `login_count` = 6776, `last_login` = '2025-03-24 10:46:24', `userprofiles`.`updated_at` = '2025-03-24 10:46:24' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-24 10:46:24 [0.37ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-24 10:46:24 [0.74ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-24 10:46:24 [0.34ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-24 10:46:24 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-24 10:46:24 [0.18ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-24 10:46:24 [0.25ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-24 10:46:24 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-24 10:46:24 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-24 10:46:24 [3.36ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('6b241fa7499df13258756725ff4b7e4d554c5c9b2a995f047c1ecf3347962d44f9446ed2161dc51e', 149, 5, '[]', 0, '2025-03-24 10:46:24', '2025-03-24 10:46:24', '2026-03-24 10:46:24');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-24 10:46:24 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '6b241fa7499df13258756725ff4b7e4d554c5c9b2a995f047c1ecf3347962d44f9446ed2161dc51e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-24 10:46:24 [3.5ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '6b241fa7499df13258756725ff4b7e4d554c5c9b2a995f047c1ecf3347962d44f9446ed2161dc51e';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 1 - 2025-03-24 10:46:25 [1.63ms] */
select * from `oauth_access_tokens` where `id` = '6b241fa7499df13258756725ff4b7e4d554c5c9b2a995f047c1ecf3347962d44f9446ed2161dc51e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 2 - 2025-03-24 10:46:25 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '6b241fa7499df13258756725ff4b7e4d554c5c9b2a995f047c1ecf3347962d44f9446ed2161dc51e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 3 - 2025-03-24 10:46:25 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 4 - 2025-03-24 10:46:25 [0.19ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 5 - 2025-03-24 10:46:25 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '6b241fa7499df13258756725ff4b7e4d554c5c9b2a995f047c1ecf3347962d44f9446ed2161dc51e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 6 - 2025-03-24 10:46:25 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 7 - 2025-03-24 10:46:25 [112.7ms] */
select DISTINCT payment.id as payment_id, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `payment`.`payment_amount`, `external_payment_reference_no` as `payment_reference_number`, `payment`.`payment_date`, `payment_method`.`name` as `payment_method`, `payment`.`paid_by`, `payment`.`paid_by_mobile` from `payment` left join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` left join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` and `invoice`.`parent` = 'N' left join `transaction` on `transaction`.`invoice_id` = `invoice`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `payment_method` on `payment`.`payment_method_id` = `payment_method`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `service`.`name` = 'Tax' and `payment`.`id` = 89243 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 10:46:25 [1.87ms] */
select * from `oauth_access_tokens` where `id` = '6b241fa7499df13258756725ff4b7e4d554c5c9b2a995f047c1ecf3347962d44f9446ed2161dc51e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 10:46:25 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '6b241fa7499df13258756725ff4b7e4d554c5c9b2a995f047c1ecf3347962d44f9446ed2161dc51e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-24 10:46:25 [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:46:25 [0.33ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-24 10:46:25 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '6b241fa7499df13258756725ff4b7e4d554c5c9b2a995f047c1ecf3347962d44f9446ed2161dc51e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-24 10:46:25 [0.31ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 10:46:25 [0.32ms] */
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` = 'LI574' 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:46:25 [0.14ms] */
select * from `party` where `party`.`id` = 39526 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 10:46:25 [0.14ms] */
select * from `vehicle` where `id` = 50459 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:46:25 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 50459 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:51:55 [2.39ms] */
select * from `users` where `email` = 'kilweyare001@puntland.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:52:11 [1.41ms] */
select * from `users` where `email` = 'kilweyare001@puntland.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:53:01 [1.49ms] */
select * from `users` where `email` = 'kilweyare001@puntland.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:53:03 [2.02ms] */
select * from `users` where `email` = 'kilweyare001@puntland.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:53:16 [1.42ms] */
select * from `users` where `email` = 'kilweyare001@puntland.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:53:19 [1.35ms] */
select * from `users` where `email` = 'kilweyare001@puntland.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:53:20 [1.64ms] */
select * from `users` where `email` = 'kilweyare001@puntland.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:53:22 [1.73ms] */
select * from `users` where `email` = 'kilweyare001@puntland.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:53:29 [2.66ms] */
select * from `users` where `email` = 'kilweyare001@puntland.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 10:55:11 [2.33ms] */
select * from `users` where `email` = 'ahmeddaakir54@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-24 10:55:11 [0.23ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-24 10:55:11 [0.4ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 153 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-24 10:55:11 [5.99ms] */
update `userprofiles` set `last_ip` = '102.128.131.207', `login_count` = 34, `last_login` = '2025-03-24 10:55:11', `userprofiles`.`updated_at` = '2025-03-24 10:55:11' where `id` = 153;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-24 10:55:11 [0.29ms] */
select * from `users` where `email` = 'ahmeddaakir54@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-24 10:55:11 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-24 10:55:11 [0.32ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (153) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-24 10:55:11 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-24 10:55:11 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-24 10:55:11 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-24 10:55:11 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-24 10:55:11 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-24 10:55:11 [3.15ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('d06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718', 153, 5, '[]', 0, '2025-03-24 10:55:11', '2025-03-24 10:55:11', '2026-03-24 10:55:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-24 10:55:11 [0.34ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-24 10:55:11 [4.87ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 10:55:52 [1.65ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 10:55:52 [0.2ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-24 10:55:52 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-24 10:55:52 [0.2ms] */
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:55:52 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-24 10:55:52 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 10:55:52 [1.71ms] */
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` = 'II568' 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:55:52 [0.4ms] */
select * from `party` where `party`.`id` = 45256 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 10:55:52 [0.45ms] */
select * from `vehicle` where `id` = 71046 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:55:52 [0.39ms] */
select * from `party_vehicle` where `vehicle_id` = 71046 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:55:52 [1.99ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-24 10:55:52 [0.31ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-24 10:55:52 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-24 10:55:52 [0.34ms] */
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:55:52 [0.3ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-24 10:55:52 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 10:55:52 [0.31ms] */
select * from `vehicle` where `vehicle`.`id` = 71046 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 10:55:52 [0.28ms] */
select * from `vehicle` where `id` = 71046 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:55:52 [0.43ms] */
select * from `party_vehicle` where `vehicle_id` = 71046 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:55:52 [1.07ms] */
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` = 71046 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:55:53 [1.41ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-24 10:55:53 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-24 10:55:53 [0.17ms] */
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:55:53 [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:55:53 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-24 10:55:53 [0.17ms] */
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:55:53 [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:55:53 [1.38ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-24 10:55:53 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-24 10:55:53 [0.16ms] */
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:55:53 [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:55:53 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-24 10:55:53 [0.17ms] */
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:55:53 [0.64ms] */
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:56:22 [2.09ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-24 10:56:22 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-24 10:56:22 [0.25ms] */
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:56:22 [0.37ms] */
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:56:22 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-24 10:56:22 [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:56:22 [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:56:22 [0.26ms] */
select `transaction_id` from `vehicle_tax` where `id` in (159801, 159802, 401259) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-24 10:56:22 [0.23ms] */
select `parent_id` from `transaction` where `id` in (194690, 194691, 511081) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-24 10:56:22 [0.17ms] */
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:56:22 [0.18ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-03-24 10:56:22 [0.25ms] */
select * from `transaction` where `id` in (194690, 194691, 511081) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-24 10:56:22 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 181426 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:56:22 [10.99ms] */
update `invoice` set `updated_by` = 153, `invoice`.`updated_at` = '2025-03-24 10:56:22' where `id` = 181426;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-24 10:56:22 [0.46ms] */
select * from `invoice` where `id` = 181426 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-24 10:56:22 [3.69ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 153, 'App\Models\User', 181426, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-24 10:56:22 [0.27ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-03-24 10:56:22 [0.28ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-03-24 10:56:22 [3.17ms] */
update `transaction` set `updated_by` = 153, `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 194690;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-03-24 10:56:22 [0.35ms] */
select * from `invoice` where `invoice`.`id` = 181427 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-03-24 10:56:22 [3.02ms] */
update `invoice` set `updated_by` = 153, `invoice`.`updated_at` = '2025-03-24 10:56:22' where `id` = 181427;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-03-24 10:56:22 [0.32ms] */
select * from `invoice` where `id` = 181427 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-03-24 10:56:22 [3.76ms] */
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', 181427, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-03-24 10:56:22 [0.2ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-03-24 10:56:22 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-03-24 10:56:22 [3.16ms] */
update `transaction` set `updated_by` = 153, `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 194691;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-03-24 10:56:22 [0.55ms] */
select * from `invoice` where `invoice`.`id` = 486751 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-03-24 10:56:22 [3.04ms] */
update `invoice` set `updated_by` = 153, `invoice`.`updated_at` = '2025-03-24 10:56:22' where `id` = 486751;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-03-24 10:56:22 [0.34ms] */
select * from `invoice` where `id` = 486751 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-03-24 10:56:22 [3.01ms] */
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', 486751, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-03-24 10:56:22 [0.24ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-03-24 10:56:22 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-03-24 10:56:22 [3.33ms] */
update `transaction` set `updated_by` = 153, `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 511081;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-03-24 10:56:22 [2.98ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-03-24 10:56:22' where `id` in (159801, 159802, 401259) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-03-24 10:56:22 [0.39ms] */
select * from `vehicle` where `vehicle`.`id` = 71046 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-03-24 10:56:22 [0.22ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-03-24 10:56:22 [0.33ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 71046 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-03-24 10:56:22 [0.34ms] */
select * from `party_vehicle` where `vehicle_id` = 71046 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 39 - 2025-03-24 10:56:22 [0.4ms] */
select * from `party` where `party`.`id` = 45256 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 40 - 2025-03-24 10:56:22 [0.34ms] */
select * from `vehicle` where `vehicle`.`id` = 71046 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 41 - 2025-03-24 10:56:22 [0.21ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-03-24 10:56:22 [0.23ms] */
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 43 - 2025-03-24 10:56:22 [0.21ms] */
select * from `branches` where `branches`.`id` = 16 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-03-24 10:56:22 [0.86ms] */
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 (45256, 2, 71046, null, 2, 6, 16, 37, 37, 'OPEN', 26, null, 153, 153, '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-03-24 10:56:22 [0.43ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511206, 'INITIATED', '2025-03-24 10:56:22', 5, 153, 153, 153, '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-03-24 10:56:22 [0.28ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 17766, `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 511206;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-03-24 10:56:22 [0.42ms] */
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 (159801, 159802, 401259) 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 48 - 2025-03-24 10:56:22 [0.37ms] */
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 (159801, 159802, 401259) 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 49 - 2025-03-24 10:56:22 [0.4ms] */
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 (511206, 45256, '2025-03-24 10:56:22', '2025-03-24 10:56:22', 119.00, 0, 119.00, 119.00, 0, 'OPEN', 'N', 'Y', 153, 153, '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-03-24 10:56:22 [0.19ms] */
select * from `invoice` where `id` = 486874 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-03-24 10:56:22 [0.18ms] */
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":511206,"party_id":45256,"invoice_amount":"119.00","invoice_date":"2025-03-24 10:56:22","due_date":"2025-03-24 10:56:22","outstanding_balance":"119.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"119.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', 486874, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-03-24 10:56:22 [0.28ms] */
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 (159801, 159802, 401259) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-03-24 10:56:22 [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', 3, 24.00, 119, 486874, 153, 153, '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-03-24 10:56:22 [0.21ms] */
select * from `invoice_item` where `id` = 873101 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-03-24 10:56:22 [0.21ms] */
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":"24.00","quantity":3,"total_price":"119.00","invoice_id":486874}}', 153, 'App\Models\User', 873101, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-03-24 10:56:22 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-279-486874846', `invoice`.`updated_at` = '2025-03-24 10:56:22' where `id` = 486874;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-03-24 10:56:22 [0.18ms] */
select * from `invoice` where `id` = 486874 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-03-24 10:56:22 [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-279-486874846"},"old":{"invoice_number":null}}', 153, 'App\Models\User', 486874, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-03-24 10:56:22 [0.21ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 159801 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-03-24 10:56:22 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 153, `vehicle_tax`.`updated_at` = '2025-03-24 10:56:22' where `id` = 159801;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-03-24 10:56:22 [0.17ms] */
select * from `vehicle_tax` where `id` = 159801 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-03-24 10:56:22 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 153, 'App\Models\User', 159801, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-03-24 10:56:22 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 194690 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 64 - 2025-03-24 10:56:22 [0.39ms] */
update `transaction` set `tax_collection_point_id` = 26, `parent_id` = 511206, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 194690;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-03-24 10:56:22 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 181426 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:56:22 [0.16ms] */
update `invoice` set `parent_id` = 486874, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-24 10:56:22' where `id` = 181426;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-03-24 10:56:22 [0.18ms] */
select * from `invoice` where `id` = 181426 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-03-24 10:56:22 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486874,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 153, 'App\Models\User', 181426, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-03-24 10:56:22 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 194690 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-03-24 10:56:22 [0.19ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-03-24 10:56:22 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-03-24 10:56:22 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-03-24 10:56:22 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-03-24 10:56:22 [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 75 - 2025-03-24 10:56:22 [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 (194690, 'APPROVED', '2025-03-24 10:56:22', 5, 153, null, 153, 153, '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-03-24 10:56:22 [0.25ms] */
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:56:22 [0.22ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 194690;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-03-24 10:56:22 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-03-24 10:56:22 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 181426 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:56:22 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 159802 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-03-24 10:56:22 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 153, `vehicle_tax`.`updated_at` = '2025-03-24 10:56:22' where `id` = 159802;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-03-24 10:56:22 [0.17ms] */
select * from `vehicle_tax` where `id` = 159802 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-03-24 10:56:22 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 153, 'App\Models\User', 159802, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-03-24 10:56:22 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 194691 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 85 - 2025-03-24 10:56:22 [0.2ms] */
update `transaction` set `tax_collection_point_id` = 26, `parent_id` = 511206, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 194691;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-03-24 10:56:22 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 181427 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 87 - 2025-03-24 10:56:22 [0.16ms] */
update `invoice` set `parent_id` = 486874, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-24 10:56:22' where `id` = 181427;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-03-24 10:56:22 [0.19ms] */
select * from `invoice` where `id` = 181427 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-03-24 10:56:22 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486874,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 153, 'App\Models\User', 181427, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-03-24 10:56:22 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 194691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-03-24 10:56:22 [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 92 - 2025-03-24 10:56:22 [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 93 - 2025-03-24 10:56:22 [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 94 - 2025-03-24 10:56:22 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-03-24 10:56:22 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (194691, 'APPROVED', '2025-03-24 10:56:22', 5, 153, null, 153, 153, '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-03-24 10:56:22 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 97 - 2025-03-24 10:56:22 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 194691;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-03-24 10:56:22 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-03-24 10:56:22 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 181427 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2025-03-24 10:56:22 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 401259 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2025-03-24 10:56:22 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 153, `vehicle_tax`.`updated_at` = '2025-03-24 10:56:22' where `id` = 401259;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 102 - 2025-03-24 10:56:22 [0.17ms] */
select * from `vehicle_tax` where `id` = 401259 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-03-24 10:56:22 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 153, 'App\Models\User', 401259, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 104 - 2025-03-24 10:56:22 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 511081 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 105 - 2025-03-24 10:56:22 [0.68ms] */
update `transaction` set `tax_collection_point_id` = 26, `parent_id` = 511206, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 511081;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2025-03-24 10:56:22 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486751 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 107 - 2025-03-24 10:56:22 [1.04ms] */
update `invoice` set `parent_id` = 486874, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-24 10:56:22' where `id` = 486751;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 108 - 2025-03-24 10:56:22 [0.18ms] */
select * from `invoice` where `id` = 486751 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 109 - 2025-03-24 10:56:22 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486874,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 153, 'App\Models\User', 486751, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 110 - 2025-03-24 10:56:22 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 511081 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 111 - 2025-03-24 10:56:22 [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 112 - 2025-03-24 10:56:22 [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 113 - 2025-03-24 10:56:22 [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 114 - 2025-03-24 10:56:22 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 115 - 2025-03-24 10:56:22 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511081, 'APPROVED', '2025-03-24 10:56:22', 5, 153, null, 153, 153, '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 116 - 2025-03-24 10:56:22 [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 117 - 2025-03-24 10:56:22 [0.25ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 511081;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 118 - 2025-03-24 10:56:22 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 119 - 2025-03-24 10:56:22 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486751 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 120 - 2025-03-24 10:56:22 [0.17ms] */
update `transaction` set `invoice_id` = 486874, `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 511206;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 121 - 2025-03-24 10:56:22 [0.49ms] */
update `vehicle` set `updated_by` = 153, `vehicle`.`updated_at` = '2025-03-24 10:56:22' where `id` = 71046;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 122 - 2025-03-24 10:56:22 [0.18ms] */
select * from `vehicle` where `id` = 71046 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 123 - 2025-03-24 10:56:22 [0.26ms] */
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', 71046, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 124 - 2025-03-24 10:56:22 [1.35ms] */
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":5}', '{"updated_by":153}', 'updated', 71046, 'Modules\Vehicle\Entities\Vehicle', 153, 'App\Models\User', null, '102.128.131.207', 'Dart/3.4 (dart:io)', 'https://testtra.puntlandgov.org/api/make_payment', '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 125 - 2025-03-24 10:56:22 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 511206 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 126 - 2025-03-24 10:56:22 [0.22ms] */
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 127 - 2025-03-24 10:56:22 [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/make_payment
   Query 128 - 2025-03-24 10:56:22 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 129 - 2025-03-24 10:56:22 [0.22ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511206, 'APPROVED', '2025-03-24 10:56:22', 5, 153, null, 153, 153, '2025-03-24 10:56:22', '2025-03-24 10:56:22');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 130 - 2025-03-24 10:56:22 [0.28ms] */
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 131 - 2025-03-24 10:56:22 [0.3ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-24 10:56:22' where `id` = 511206;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 132 - 2025-03-24 10:56:22 [0.26ms] */
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 133 - 2025-03-24 10:56:22 [0.29ms] */
select * from `invoice` where `invoice`.`id` = 486874 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 134 - 2025-03-24 10:56:22 [0.43ms] */
select `transaction_id` from `vehicle_tax` where `id` in (159801, 159802, 401259) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 135 - 2025-03-24 10:56:22 [0.58ms] */
select * from `invoice` where `transaction_id` = 194690 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 136 - 2025-03-24 10:56:22 [0.42ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 181426 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 137 - 2025-03-24 10:56:22 [0.42ms] */
select * from `transaction` where `transaction`.`id` = 194690 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 138 - 2025-03-24 10:56:22 [0.44ms] */
select * from `invoice` where `transaction_id` = 194691 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 139 - 2025-03-24 10:56:22 [0.43ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 181427 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 140 - 2025-03-24 10:56:22 [0.46ms] */
select * from `transaction` where `transaction`.`id` = 194691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 141 - 2025-03-24 10:56:22 [0.46ms] */
select * from `invoice` where `transaction_id` = 511081 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 142 - 2025-03-24 10:56:22 [0.74ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486751 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 143 - 2025-03-24 10:56:22 [0.43ms] */
select * from `transaction` where `transaction`.`id` = 511081 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 144 - 2025-03-24 10:56:22 [0.2ms] */
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 145 - 2025-03-24 10:56:22 [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 146 - 2025-03-24 10:56:22 [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 147 - 2025-03-24 10:56:22 [0.15ms] */
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:56:22 [1.97ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-24 10:56:22 [0.29ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-24 10:56:22 [0.27ms] */
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:56:22 [0.31ms] */
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:56:22 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-24 10:56:22 [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:56:22 [0.18ms] */
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:56:38 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-24 10:56:38 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-24 10:56:38 [0.14ms] */
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:56:38 [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:56:38 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-24 10:56:38 [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:56:38 [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:56:38 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (159801, 159802, 401259) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-24 10:56:38 [0.31ms] */
select `parent_id` from `transaction` where `id` in (194690, 194691, 511081) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-24 10:56:38 [177.96ms] */
select `id` from `transaction` where `parent_id` in (511206) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-03-24 10:56:38 [0.38ms] */
select * from `transaction` where `id` in (511206) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-03-24 10:56:38 [0.12ms] */
select `transaction_id` from `vehicle_tax` where `id` in (159801, 159802, 401259) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-24 10:56:38 [0.15ms] */
select * from `invoice` where `transaction_id` = 194690 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-03-24 10:56:38 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 181426 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:56:38 [0.14ms] */
select * from `transaction` where `transaction`.`id` = 194690 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-24 10:56:38 [0.14ms] */
select * from `invoice` where `transaction_id` = 194691 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-24 10:56:38 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 181427 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 18 - 2025-03-24 10:56:38 [0.14ms] */
select * from `transaction` where `transaction`.`id` = 194691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-03-24 10:56:38 [0.14ms] */
select * from `invoice` where `transaction_id` = 511081 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-03-24 10:56:38 [0.12ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486751 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-03-24 10:56:38 [0.14ms] */
select * from `transaction` where `transaction`.`id` = 511081 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-03-24 10:56:38 [0.13ms] */
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 23 - 2025-03-24 10:56:38 [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 24 - 2025-03-24 10:56:38 [0.12ms] */
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 25 - 2025-03-24 10:56:38 [0.12ms] */
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:56:52 [2.15ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-24 10:56:52 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-24 10:56:52 [0.26ms] */
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:56:52 [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:56:52 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'd06ba049428b56cd526b566769ca01fbd423def9ac33852e851f66f75f94ad19ca46ea18b9c34718' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-24 10:56:52 [0.43ms] */
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:56:52 [5.41ms] */
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/login
   Query 1 - 2025-03-24 10:58:52 [2.28ms] */
select * from `users` where `email` = 'kilweyare001@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-24 10:58:52 [0.27ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-24 10:58:52 [0.4ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 151 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-24 10:58:52 [7.99ms] */
update `userprofiles` set `login_count` = 8, `last_login` = '2025-03-24 10:58:52', `userprofiles`.`updated_at` = '2025-03-24 10:58:52' where `id` = 151;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-24 10:58:52 [0.5ms] */
select * from `users` where `email` = 'kilweyare001@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-24 10:58:52 [0.68ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-24 10:58:52 [0.57ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (151) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-24 10:58:52 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-24 10:58:52 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-24 10:58:52 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-24 10:58:52 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-24 10:58:52 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-24 10:58:52 [3.82ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8', 151, 5, '[]', 0, '2025-03-24 10:58:52', '2025-03-24 10:58:52', '2026-03-24 10:58:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-24 10:58:52 [0.33ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-24 10:58:52 [3.38ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 11:00:06 [1.49ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-24 11:00:06 [0.29ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-24 11:00:06 [0.42ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-24 11:00:06 [14.43ms] */
update `userprofiles` set `login_count` = 1589, `last_login` = '2025-03-24 11:00:06', `userprofiles`.`updated_at` = '2025-03-24 11:00:06' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-24 11:00:06 [0.44ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-24 11:00:06 [0.6ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-24 11:00:06 [0.54ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-24 11:00:06 [0.22ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-24 11:00:06 [0.15ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-24 11:00:06 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-24 11:00:06 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-24 11:00:06 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-24 11:00:06 [3.89ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('6a7ffd1e86621989a7bac13f3aa34a525c691574792d917ed10f0d55fb9eeec9a5a74b4a1171bea9', 154, 5, '[]', 0, '2025-03-24 11:00:06', '2025-03-24 11:00:06', '2026-03-24 11:00:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-24 11:00:06 [0.42ms] */
select * from `oauth_access_tokens` where `id` = '6a7ffd1e86621989a7bac13f3aa34a525c691574792d917ed10f0d55fb9eeec9a5a74b4a1171bea9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-24 11:00:06 [4.5ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '6a7ffd1e86621989a7bac13f3aa34a525c691574792d917ed10f0d55fb9eeec9a5a74b4a1171bea9';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-03-24 11:00:06 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '6a7ffd1e86621989a7bac13f3aa34a525c691574792d917ed10f0d55fb9eeec9a5a74b4a1171bea9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-03-24 11:00:06 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '6a7ffd1e86621989a7bac13f3aa34a525c691574792d917ed10f0d55fb9eeec9a5a74b4a1171bea9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-03-24 11:00:06 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-03-24 11:00:06 [0.25ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-03-24 11:00:06 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '6a7ffd1e86621989a7bac13f3aa34a525c691574792d917ed10f0d55fb9eeec9a5a74b4a1171bea9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-03-24 11:00:06 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-03-24 11:00:06 [1.44ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 33125 and `license_plate` = 'BS724' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-24 11:00:06 [1.25ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-24 11:00:06 [0.28ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-24 11:00:06 [0.39ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-24 11:00:06 [6.27ms] */
update `userprofiles` set `login_count` = 1590, `userprofiles`.`updated_at` = '2025-03-24 11:00:06' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-24 11:00:06 [0.41ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-24 11:00:06 [0.62ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-24 11:00:06 [0.32ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-24 11:00:06 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-24 11:00:06 [0.17ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-24 11:00:06 [0.24ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-24 11:00:06 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-24 11:00:06 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-24 11:00:06 [2.98ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('0e26ddc8ff00ddde196366521cba5439934406f6eafe2d7040030ccd834d2f6176020804edb40975', 154, 5, '[]', 0, '2025-03-24 11:00:06', '2025-03-24 11:00:06', '2026-03-24 11:00:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-24 11:00:06 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '0e26ddc8ff00ddde196366521cba5439934406f6eafe2d7040030ccd834d2f6176020804edb40975' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-24 11:00:06 [2.6ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '0e26ddc8ff00ddde196366521cba5439934406f6eafe2d7040030ccd834d2f6176020804edb40975';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-03-24 11:00:06 [1.5ms] */
select * from `oauth_access_tokens` where `id` = '0e26ddc8ff00ddde196366521cba5439934406f6eafe2d7040030ccd834d2f6176020804edb40975' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-03-24 11:00:06 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '0e26ddc8ff00ddde196366521cba5439934406f6eafe2d7040030ccd834d2f6176020804edb40975' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-03-24 11:00:06 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-03-24 11:00:06 [0.17ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-03-24 11:00:06 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '0e26ddc8ff00ddde196366521cba5439934406f6eafe2d7040030ccd834d2f6176020804edb40975' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-03-24 11:00:06 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-03-24 11:00:06 [0.96ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 64940 and `license_plate` = '5656SXYVCYHC' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 11:00:32 [2.24ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 11:00:32 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-24 11:00:32 [1.64ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-24 11:00:32 [1.12ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-24 11:00:32 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-24 11:00:32 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 11:00:32 [3.89ms] */
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` = 'IE385' 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 11:00:32 [0.28ms] */
select * from `party` where `party`.`id` = 35905 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 11:00:32 [0.25ms] */
select * from `vehicle` where `id` = 1362 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 11:00:32 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 1362 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 11:00:32 [1.4ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-24 11:00:32 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-24 11:00:32 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-24 11:00:32 [0.2ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-24 11:00:32 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-24 11:00:32 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 11:00:33 [0.25ms] */
select * from `vehicle` where `vehicle`.`id` = 1362 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 11:00:33 [5.95ms] */
select * from `vehicle` where `id` = 1362 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 11:00:33 [0.35ms] */
select * from `party_vehicle` where `vehicle_id` = 1362 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 11:00:33 [2.9ms] */
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` = 1362 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 11:00:33 [1.29ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-24 11:00:33 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-24 11:00:33 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-24 11:00:33 [0.17ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-24 11:00:33 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-24 11:00:33 [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 11:00:33 [0.28ms] */
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 11:00:33 [1.26ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-24 11:00:33 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-24 11:00:33 [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 11:00:33 [0.17ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-24 11:00:33 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-24 11:00:33 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-24 11:00:33 [1.44ms] */
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/vehicle
   Query 1 - 2025-03-24 11:02:16 [1.3ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 11:02:16 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-24 11:02:16 [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 11:02:16 [0.17ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-24 11:02:16 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-24 11:02:16 [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 11:02:16 [1.06ms] */
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` = 'FF435' 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 11:02:16 [0.28ms] */
select * from `party` where `party`.`id` = 50629 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 11:02:16 [0.27ms] */
select * from `vehicle` where `id` = 78678 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 11:02:16 [0.25ms] */
select * from `party_vehicle` where `vehicle_id` = 78678 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 11:02:16 [2.08ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-24 11:02:16 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-24 11:02:16 [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 11:02:16 [0.35ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-24 11:02:16 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-24 11:02:16 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 11:02:16 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 78678 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 11:02:16 [0.59ms] */
select * from `vehicle` where `id` = 78678 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 11:02:16 [0.6ms] */
select * from `party_vehicle` where `vehicle_id` = 78678 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 11:02:16 [1.85ms] */
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` = 78678 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 11:02:17 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-24 11:02:17 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-24 11:02:17 [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 11:02:17 [0.16ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-24 11:02:17 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-24 11:02:17 [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 11:02:17 [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 11:02:17 [1.92ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-24 11:02:17 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-24 11:02:17 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-24 11:02:17 [0.32ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-24 11:02:17 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-24 11:02:17 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-24 11:02:17 [0.33ms] */
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 11:03:44 [2.36ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-24 11:03:44 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-24 11:03:44 [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 11:03:44 [0.17ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-24 11:03:44 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-24 11:03:44 [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 11:03:44 [0.44ms] */
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 11:03:44 [0.26ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401349) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-24 11:03:44 [0.28ms] */
select `parent_id` from `transaction` where `id` in (511190) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-24 11:03:44 [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 11:03:44 [0.21ms] */
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 11:03:44 [0.28ms] */
select * from `transaction` where `id` in (511190) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-24 11:03:44 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 486858 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 11:03:44 [12.78ms] */
update `invoice` set `updated_by` = 151, `invoice`.`updated_at` = '2025-03-24 11:03:44' where `id` = 486858;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-24 11:03:44 [0.63ms] */
select * from `invoice` where `id` = 486858 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-24 11:03:44 [5.14ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 151, 'App\Models\User', 486858, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-24 11:03:44 [0.59ms] */
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 11:03:44 [0.58ms] */
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 11:03:44 [5.11ms] */
update `transaction` set `updated_by` = 151, `transaction`.`updated_at` = '2025-03-24 11:03:44' where `id` = 511190;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-03-24 11:03:44 [3.33ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-03-24 11:03:44' where `id` in (401349) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-03-24 11:03:44 [0.63ms] */
select * from `vehicle` where `vehicle`.`id` = 78678 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-03-24 11:03:44 [0.34ms] */
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 11:03:44 [0.43ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 78678 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 11:03:44 [0.41ms] */
select * from `party_vehicle` where `vehicle_id` = 78678 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 11:03:44 [0.37ms] */
select * from `party` where `party`.`id` = 50629 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 11:03:44 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 78678 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 11:03:44 [0.37ms] */
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 11:03:44 [0.23ms] */
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 11:03:44 [0.25ms] */
select * from `branches` where `branches`.`id` = 17 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-03-24 11:03:44 [0.5ms] */
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 (50629, 2, 78678, null, 2, 6, 17, 37, 37, 'OPEN', 25, null, 151, 151, '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-03-24 11:03:44 [0.35ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (511207, 'INITIATED', '2025-03-24 11:03:44', 5, 151, 151, 151, '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-03-24 11:03:44 [0.19ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 66495, `transaction`.`updated_at` = '2025-03-24 11:03:44' where `id` = 511207;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-03-24 11:03:44 [0.25ms] */
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 (401349) 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 11:03:44 [0.2ms] */
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 (401349) 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 11:03:44 [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 (511207, 50629, '2025-03-24 11:03:44', '2025-03-24 11:03:44', 71.00, 0, 71.00, 71.00, 0, 'OPEN', 'N', 'Y', 151, 151, '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-03-24 11:03:44 [0.19ms] */
select * from `invoice` where `id` = 486875 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-03-24 11:03:44 [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":511207,"party_id":50629,"invoice_amount":"71.00","invoice_date":"2025-03-24 11:03:44","due_date":"2025-03-24 11:03:44","outstanding_balance":"71.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"71.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 151, 'App\Models\User', 486875, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-03-24 11:03:44 [9.77ms] */
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 (401349) 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 11:03:44 [1.81ms] */
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, 71.00, 71, 486875, 151, 151, '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-03-24 11:03:44 [0.34ms] */
select * from `invoice_item` where `id` = 873102 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-03-24 11:03:44 [0.4ms] */
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":"71.00","quantity":1,"total_price":"71.00","invoice_id":486875}}', 151, 'App\Models\User', 873102, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-03-24 11:03:44 [0.33ms] */
update `invoice` set `invoice_number` = 'INV-720-486875353', `invoice`.`updated_at` = '2025-03-24 11:03:44' where `id` = 486875;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-03-24 11:03:44 [0.36ms] */
select * from `invoice` where `id` = 486875 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-03-24 11:03:44 [0.32ms] */
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-720-486875353"},"old":{"invoice_number":null}}', 151, 'App\Models\User', 486875, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-03-24 11:03:44 [0.42ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 401349 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-03-24 11:03:44 [0.42ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 151, `vehicle_tax`.`updated_at` = '2025-03-24 11:03:44' where `id` = 401349;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-03-24 11:03:44 [0.34ms] */
select * from `vehicle_tax` where `id` = 401349 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-03-24 11:03:44 [0.38ms] */
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"}}', 151, 'App\Models\User', 401349, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-03-24 11:03:44 [0.43ms] */
select * from `transaction` where `transaction`.`id` = 511190 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 11:03:44 [0.44ms] */
update `transaction` set `tax_collection_point_id` = 25, `parent_id` = 511207, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-24 11:03:44' where `id` = 511190;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-03-24 11:03:44 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 486858 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 11:03:44 [0.16ms] */
update `invoice` set `parent_id` = 486875, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-24 11:03:44' where `id` = 486858;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-03-24 11:03:44 [0.18ms] */
select * from `invoice` where `id` = 486858 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-03-24 11:03:44 [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":486875,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 151, 'App\Models\User', 486858, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-03-24 11:03:44 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 511190 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-03-24 11:03:44 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-03-24 11:03:44 [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 11:03:44 [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 11:03:44 [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 11:03:44 [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 11:03:44 [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 (511190, 'APPROVED', '2025-03-24 11:03:44', 5, 151, null, 151, 151, '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-03-24 11:03:44 [0.22ms] */
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 11:03:44 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-24 11:03:44' where `id` = 511190;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-03-24 11:03:44 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-03-24 11:03:44 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486858 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 11:03:44 [0.17ms] */
update `transaction` set `invoice_id` = 486875, `transaction`.`updated_at` = '2025-03-24 11:03:44' where `id` = 511207;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-03-24 11:03:44 [0.26ms] */
update `vehicle` set `updated_by` = 151, `vehicle`.`updated_at` = '2025-03-24 11:03:44' where `id` = 78678;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-03-24 11:03:44 [0.18ms] */
select * from `vehicle` where `id` = 78678 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-03-24 11:03:44 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 151, 'App\Models\User', 78678, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-03-24 11:03:44 [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":5}', '{"updated_by":151}', 'updated', 78678, 'Modules\Vehicle\Entities\Vehicle', 151, 'App\Models\User', null, '41.223.109.56', 'Dart/3.4 (dart:io)', 'https://testtra.puntlandgov.org/api/make_payment', '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-03-24 11:03:44 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 511207 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-03-24 11:03:44 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-03-24 11:03:44 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-03-24 11:03:44 [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 11:03:44 [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 (511207, 'APPROVED', '2025-03-24 11:03:44', 5, 151, null, 151, 151, '2025-03-24 11:03:44', '2025-03-24 11:03:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-03-24 11:03:44 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-03-24 11:03:44 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-24 11:03:44' where `id` = 511207;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-03-24 11:03:44 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-03-24 11:03:44 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 486875 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 11:03:44 [0.48ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401349) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-03-24 11:03:44 [0.59ms] */
select * from `invoice` where `transaction_id` = 511190 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-03-24 11:03:44 [0.54ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486858 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 11:03:44 [0.58ms] */
select * from `transaction` where `transaction`.`id` = 511190 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-03-24 11:03:44 [0.5ms] */
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 11:03:44 [0.55ms] */
select * from `user_accounts` where `user_id` = 151 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 11:03:44 [0.44ms] */
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 11:03:44 [0.54ms] */
select * from `user_accounts` where `user_id` = 151 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 11:03:45 [2.32ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-24 11:03:45 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-24 11:03:45 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-24 11:03:45 [0.31ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-24 11:03:45 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-24 11:03:45 [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 11:03:45 [0.17ms] */
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 11:03:55 [1.52ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-24 11:03:55 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-24 11:03:55 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-24 11:03:55 [0.21ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-24 11:03:55 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-24 11:03:55 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-24 11:03:55 [0.21ms] */
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 11:03:55 [0.23ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401349) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-24 11:03:55 [0.25ms] */
select `parent_id` from `transaction` where `id` in (511190) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-24 11:03:56 [181.78ms] */
select `id` from `transaction` where `parent_id` in (511207) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-03-24 11:03:56 [0.45ms] */
select * from `transaction` where `id` in (511207) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-03-24 11:03:56 [0.2ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401349) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-24 11:03:56 [0.25ms] */
select * from `invoice` where `transaction_id` = 511190 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-03-24 11:03:56 [0.23ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486858 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 11:03:56 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 511190 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-24 11:03:56 [0.21ms] */
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 11:03:56 [0.22ms] */
select * from `user_accounts` where `user_id` = 151 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 11:03:56 [0.2ms] */
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 11:03:56 [0.19ms] */
select * from `user_accounts` where `user_id` = 151 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 11:07:32 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-24 11:07:32 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-24 11:07:32 [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 11:07:32 [0.17ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-24 11:07:32 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-24 11:07:32 [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 11:07:32 [1.67ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 151 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/get_receipt_number
   Query 1 - 2025-03-24 11:07:42 [2.02ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-24 11:07:42 [0.32ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-24 11:07:42 [0.25ms] */
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 11:07:42 [0.34ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-24 11:07:42 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-24 11:07:42 [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 11:07:42 [0.16ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 151 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/vehicle
   Query 1 - 2025-03-24 11:11:21 [1.47ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 11:11:21 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-24 11:11:21 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-24 11:11:21 [0.18ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-24 11:11:21 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-24 11:11:21 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 11:11:21 [1.66ms] */
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` = 'pq125' 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 11:11:21 [0.28ms] */
select * from `party` where `party`.`id` = 34207 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 11:11:21 [0.3ms] */
select * from `vehicle` where `id` = 75278 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 11:11:21 [0.31ms] */
select * from `party_vehicle` where `vehicle_id` = 75278 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 11:11:21 [1.49ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-24 11:11:21 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-24 11:11:21 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-24 11:11:21 [0.19ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-24 11:11:21 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-24 11:11:21 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 11:11:21 [0.38ms] */
select * from `vehicle` where `vehicle`.`id` = 75278 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 11:11:21 [0.28ms] */
select * from `vehicle` where `id` = 75278 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 11:11:21 [0.35ms] */
select * from `party_vehicle` where `vehicle_id` = 75278 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 11:11:21 [1.08ms] */
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` = 75278 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 11:11:22 [1.8ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-24 11:11:22 [4.86ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-24 11:11:22 [1.53ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-24 11:11:22 [6.47ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-24 11:11:22 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-24 11:11:22 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-24 11:11:22 [0.17ms] */
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 11:11:23 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-24 11:11:23 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-24 11:11:23 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-24 11:11:23 [0.3ms] */
select * from `users` where `id` = 151 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-24 11:11:23 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '654e18dbdcb6876b40037533df595275707bb2f8f396188a1badcfccd79b97c50d526c5d35fae0e8' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-24 11:11:23 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-24 11:11:23 [0.17ms] */
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/vehicle
   Query 1 - 2025-03-24 11:28:21 [2.74ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 11:28:21 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-24 11:28:21 [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 11:28:21 [0.55ms] */
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 11:28:21 [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 11:28:21 [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 11:28:21 [1.04ms] */
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` = 'VE444' 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 11:28:21 [0.24ms] */
select * from `party` where `party`.`id` = 53832 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 11:28:21 [0.22ms] */
select * from `vehicle` where `id` = 87428 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 11:28:21 [0.25ms] */
select * from `party_vehicle` where `vehicle_id` = 87428 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 11:28:22 [1.29ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-24 11:28:22 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-24 11:28:22 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-24 11:28:22 [0.18ms] */
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 11:28:22 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-24 11:28:22 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 11:28:22 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 87428 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 11:28:22 [0.26ms] */
select * from `vehicle` where `id` = 87428 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 11:28:22 [0.36ms] */
select * from `party_vehicle` where `vehicle_id` = 87428 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 11:28:22 [0.96ms] */
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` = 87428 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 11:28:22 [1.3ms] */
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 11:28:22 [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 11:28:22 [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 11:28:22 [0.17ms] */
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 11:28:22 [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 11:28:22 [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 11:28:22 [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 11:28:22 [1.26ms] */
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 11:28:22 [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 11:28:22 [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 11:28:22 [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 11:28:22 [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 11:28:22 [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 11:28:22 [0.23ms] */
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 11:28:38 [1.47ms] */
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 11:28:38 [0.16ms] */
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 11:28:38 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-24 11:28:38 [0.19ms] */
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 11:28:38 [0.17ms] */
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 11:28:38 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-24 11:28:46 [2.01ms] */
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 11:28:46 [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 11:28:46 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-24 11:28:46 [0.24ms] */
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 11:28:46 [0.21ms] */
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 11:28:46 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 11:28:55 [1.29ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 11:28:55 [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 11:28:55 [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 11:28:55 [0.17ms] */
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 11:28:55 [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 11:28:55 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-24 11:28:55 [0.33ms] */
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` = 'VE444' 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 11:28:55 [0.15ms] */
select * from `party` where `party`.`id` = 53832 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 11:28:55 [0.16ms] */
select * from `vehicle` where `id` = 87428 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 11:28:55 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 87428 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 11:28:57 [2.02ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-24 11:28:57 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-24 11:28:57 [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 11:28:57 [0.34ms] */
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 11:28:57 [0.36ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-24 11:28:57 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 11:28:57 [0.15ms] */
select * from `vehicle` where `vehicle`.`id` = 87428 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 11:28:57 [0.14ms] */
select * from `vehicle` where `id` = 87428 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 11:28:57 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 87428 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 11:28:57 [0.25ms] */
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` = 87428 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 11:28:58 [2ms] */
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 11:28:58 [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 11:28:58 [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 11:28:58 [0.31ms] */
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 11:28:58 [0.26ms] */
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 11:28:58 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-24 11:28:58 [0.28ms] */
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 11:28:59 [1.92ms] */
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 11:28:59 [0.26ms] */
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 11:28:59 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-24 11:28:59 [0.29ms] */
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 11:28:59 [0.26ms] */
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 11:28:59 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-24 11:28:59 [0.33ms] */
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 11:30:40 [2.4ms] */
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 11:30:40 [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
   Query 3 - 2025-03-24 11:30:40 [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 11:30:40 [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
   Query 5 - 2025-03-24 11:30:40 [12.73ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-03-24 11:30:40 [23.11ms] */
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 11:30:40 [22.76ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-03-24 11:30:40 [29.39ms] */
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 11:30:40 [49.33ms] */
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 11:30:40 [43.35ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 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 11:30:41 [265.02ms] */
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 1 - 2025-03-24 11:30:41 [1.37ms] */
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 11:30:41 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-03-24 11:30:41 [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
   Query 4 - 2025-03-24 11:30:41 [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 11:30:41 [0.16ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-03-24 11:30:41 [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 11:30:41 [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 11:30:41 [0.15ms] */
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 11:30:41 [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 11:30:41 [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 11:30:41 [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 11:30:42 [960.03ms] */
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 12 - 2025-03-24 11:30:42 [942.67ms] */
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): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-24 11:30:43 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-24 11:30:43 [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 11:30:43 [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 11:30:43 [0.16ms] */
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 11:30:43 [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 11:30:43 [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 11:30:43 [3.79ms] */
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` = 'OF215' 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 11:30:43 [0.26ms] */
select * from `party` where `party`.`id` = 39466 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-24 11:30:43 [0.24ms] */
select * from `vehicle` where `id` = 57875 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 11:30:43 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 57875 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 11:30:45 [2.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-24 11:30:45 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-24 11:30:45 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-24 11:30:45 [0.31ms] */
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 11:30:45 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dae9dac4d1e77bf180f0fa581d23d67d742d7fb43e8759c86553730c2e9ba18c65029655d5b8250a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-24 11:30:45 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-24 11:30:45 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 57875 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-24 11:30:45 [0.25ms] */
select * from `vehicle` where `id` = 57875 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 11:30:45 [0.33ms] */
select * from `party_vehicle` where `vehicle_id` = 57875 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 11:30:45 [3.9ms] */
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` = 57875 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 11:30:46 [1.64ms] */
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 11:30:46 [0.24ms] */
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 11:30:46 [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 11:30:46 [0.17ms] */
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 11:30:46 [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 11:30:46 [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 11:30:46 [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 11:30:46 [1.89ms] */
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 11:30:46 [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 11:30:46 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-24 11:30:46 [0.28ms] */
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 11:30:46 [0.29ms] */
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 11:30:46 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-24 11:30:46 [0.32ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 1 - 2025-03-24 11:30:50 [2.06ms] */
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 11:30:50 [0.71ms] */
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 11:30:50 [0.54ms] */
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 11:30:50 [0.54ms] */
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 11:30:50 [0.45ms] */
select count(*) as aggregate from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 6 - 2025-03-24 11:30:50 [0.18ms] */
select * from `roles` limit 15 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles
   Query 7 - 2025-03-24 11:30:50 [1.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 (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/2/edit
   Query 1 - 2025-03-24 11:30:53 [1.43ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/2/edit
   Query 2 - 2025-03-24 11:30:53 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/2/edit
   Query 3 - 2025-03-24 11:30:53 [0.34ms] */
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/2/edit
   Query 4 - 2025-03-24 11:30:53 [0.41ms] */
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/2/edit
   Query 5 - 2025-03-24 11:30:53 [0.29ms] */
select `name`, `id` from `permissions`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/2/edit
   Query 6 - 2025-03-24 11:30:53 [0.21ms] */
select * from `roles` where `roles`.`id` = 2 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/roles/2/edit
   Query 7 - 2025-03-24 11:30:53 [0.91ms] */
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` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 1 - 2025-03-24 11:31:09 [1.45ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 2 - 2025-03-24 11:31:09 [0.45ms] */
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/2
   Query 3 - 2025-03-24 11:31:09 [0.32ms] */
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/2
   Query 4 - 2025-03-24 11:31:09 [0.39ms] */
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/2
   Query 5 - 2025-03-24 11:31:09 [0.15ms] */
select * from `roles` where `roles`.`id` = 2 limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 6 - 2025-03-24 11:31:09 [0.33ms] */
select count(*) as aggregate from `roles` where `name` = 'administrator' and `id` <> 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 7 - 2025-03-24 11:31:09 [0.3ms] */
select * from `permissions`;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 8 - 2025-03-24 11:31:09 [4.81ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (1);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 9 - 2025-03-24 11:31:09 [0.52ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 10 - 2025-03-24 11:31:09 [3.01ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 11 - 2025-03-24 11:31:09 [0.62ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 12 - 2025-03-24 11:31:09 [3.3ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (3);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 13 - 2025-03-24 11:31:09 [0.39ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 14 - 2025-03-24 11:31:09 [2.75ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (4);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 15 - 2025-03-24 11:31:09 [0.39ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 16 - 2025-03-24 11:31:09 [3.05ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (5);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 17 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 18 - 2025-03-24 11:31:09 [2.93ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (6);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 19 - 2025-03-24 11:31:09 [0.6ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 20 - 2025-03-24 11:31:09 [3.12ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (7);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 21 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 22 - 2025-03-24 11:31:09 [3ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (8);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 23 - 2025-03-24 11:31:09 [0.58ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 24 - 2025-03-24 11:31:09 [4.63ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (9);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 25 - 2025-03-24 11:31:09 [0.58ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 26 - 2025-03-24 11:31:09 [3.06ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (10);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 27 - 2025-03-24 11:31:09 [0.58ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 28 - 2025-03-24 11:31:09 [3.01ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (11);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 29 - 2025-03-24 11:31:09 [0.58ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 30 - 2025-03-24 11:31:09 [3.12ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (12);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 31 - 2025-03-24 11:31:09 [0.6ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 32 - 2025-03-24 11:31:09 [2.97ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (13);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 33 - 2025-03-24 11:31:09 [0.57ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 34 - 2025-03-24 11:31:09 [3.04ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (14);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 35 - 2025-03-24 11:31:09 [0.57ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 36 - 2025-03-24 11:31:09 [2.97ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (15);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 37 - 2025-03-24 11:31:09 [0.6ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 38 - 2025-03-24 11:31:09 [3.25ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (16);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 39 - 2025-03-24 11:31:09 [0.57ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 40 - 2025-03-24 11:31:09 [2.98ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (17);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 41 - 2025-03-24 11:31:09 [0.58ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 42 - 2025-03-24 11:31:09 [3.08ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (18);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 43 - 2025-03-24 11:31:09 [0.37ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 44 - 2025-03-24 11:31:09 [2.68ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (19);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 45 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 46 - 2025-03-24 11:31:09 [3.04ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (20);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 47 - 2025-03-24 11:31:09 [0.56ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 48 - 2025-03-24 11:31:09 [2.94ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (21);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 49 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 50 - 2025-03-24 11:31:09 [3.28ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (22);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 51 - 2025-03-24 11:31:09 [0.55ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 52 - 2025-03-24 11:31:09 [6.67ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (23);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 53 - 2025-03-24 11:31:09 [2.62ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 54 - 2025-03-24 11:31:09 [3.03ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (24);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 55 - 2025-03-24 11:31:09 [1.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 56 - 2025-03-24 11:31:09 [3.02ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (25);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 57 - 2025-03-24 11:31:09 [0.86ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 58 - 2025-03-24 11:31:09 [3.08ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (26);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 59 - 2025-03-24 11:31:09 [0.51ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 60 - 2025-03-24 11:31:09 [4.07ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (27);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 61 - 2025-03-24 11:31:09 [0.51ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 62 - 2025-03-24 11:31:09 [3.25ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (28);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 63 - 2025-03-24 11:31:09 [0.63ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 64 - 2025-03-24 11:31:09 [2.98ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (29);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 65 - 2025-03-24 11:31:09 [0.61ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 66 - 2025-03-24 11:31:09 [3.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (30);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 67 - 2025-03-24 11:31:09 [0.58ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 68 - 2025-03-24 11:31:09 [3.09ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (31);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 69 - 2025-03-24 11:31:09 [0.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` in (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 70 - 2025-03-24 11:31:09 [3.25ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (32);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 71 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 72 - 2025-03-24 11:31:09 [3.02ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (33);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 73 - 2025-03-24 11:31:09 [0.61ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 74 - 2025-03-24 11:31:09 [3.3ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (34);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 75 - 2025-03-24 11:31:09 [0.55ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 76 - 2025-03-24 11:31:09 [3.06ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (35);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 77 - 2025-03-24 11:31:09 [0.56ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 78 - 2025-03-24 11:31:09 [3.25ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (36);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 79 - 2025-03-24 11:31:09 [0.56ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 80 - 2025-03-24 11:31:09 [3.05ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (37);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 81 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 82 - 2025-03-24 11:31:09 [3.01ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (38);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 83 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 84 - 2025-03-24 11:31:09 [3.2ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (39);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 85 - 2025-03-24 11:31:09 [0.55ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 86 - 2025-03-24 11:31:09 [3.2ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (40);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 87 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 88 - 2025-03-24 11:31:09 [3.24ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (41);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 89 - 2025-03-24 11:31:09 [0.51ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 90 - 2025-03-24 11:31:09 [2.98ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (42);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 91 - 2025-03-24 11:31:09 [0.6ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 92 - 2025-03-24 11:31:09 [3.52ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (43);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 93 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 94 - 2025-03-24 11:31:09 [3.26ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (44);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 95 - 2025-03-24 11:31:09 [0.62ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 96 - 2025-03-24 11:31:09 [3.47ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (45);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 97 - 2025-03-24 11:31:09 [0.91ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 98 - 2025-03-24 11:31:09 [4ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (46);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 99 - 2025-03-24 11:31:09 [0.58ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 100 - 2025-03-24 11:31:09 [3.46ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (47);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 101 - 2025-03-24 11:31:09 [0.6ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 102 - 2025-03-24 11:31:09 [3.17ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (48);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 103 - 2025-03-24 11:31:09 [0.67ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 104 - 2025-03-24 11:31:09 [3.65ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (49);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 105 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 106 - 2025-03-24 11:31:09 [2.94ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (50);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 107 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 108 - 2025-03-24 11:31:09 [2.83ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (51);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 109 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 110 - 2025-03-24 11:31:09 [2.73ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (52);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 111 - 2025-03-24 11:31:09 [0.45ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 112 - 2025-03-24 11:31:09 [3ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (53);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 113 - 2025-03-24 11:31:09 [0.45ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 114 - 2025-03-24 11:31:09 [2.98ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (54);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 115 - 2025-03-24 11:31:09 [0.45ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 116 - 2025-03-24 11:31:09 [2.85ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (55);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 117 - 2025-03-24 11:31:09 [0.45ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 118 - 2025-03-24 11:31:09 [3.13ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (56);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 119 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 120 - 2025-03-24 11:31:09 [2.73ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (57);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 121 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 122 - 2025-03-24 11:31:09 [2.95ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (58);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 123 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 124 - 2025-03-24 11:31:09 [0.24ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (59);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 125 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 126 - 2025-03-24 11:31:09 [0.24ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (60);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 127 - 2025-03-24 11:31:09 [0.28ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 128 - 2025-03-24 11:31:09 [0.24ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (61);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 129 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 130 - 2025-03-24 11:31:09 [2.82ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (62);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 131 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 132 - 2025-03-24 11:31:09 [3.05ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (63);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 133 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 134 - 2025-03-24 11:31:09 [6.33ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (64);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 135 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 136 - 2025-03-24 11:31:09 [2.96ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (65);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 137 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 138 - 2025-03-24 11:31:09 [2.81ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (66);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 139 - 2025-03-24 11:31:09 [0.67ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 140 - 2025-03-24 11:31:09 [3.32ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (67);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 141 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 142 - 2025-03-24 11:31:09 [4.2ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (68);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 143 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 144 - 2025-03-24 11:31:09 [2.91ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (69);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 145 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 146 - 2025-03-24 11:31:09 [3.22ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (70);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 147 - 2025-03-24 11:31:09 [0.45ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 148 - 2025-03-24 11:31:09 [2.84ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (71);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 149 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 150 - 2025-03-24 11:31:09 [3.07ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (72);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 151 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 152 - 2025-03-24 11:31:09 [2.96ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (73);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 153 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 154 - 2025-03-24 11:31:09 [3.16ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (74);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 155 - 2025-03-24 11:31:09 [0.62ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 156 - 2025-03-24 11:31:09 [2.88ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (75);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 157 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 158 - 2025-03-24 11:31:09 [3.14ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (76);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 159 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 160 - 2025-03-24 11:31:09 [2.82ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (77);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 161 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 162 - 2025-03-24 11:31:09 [3.15ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (78);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 163 - 2025-03-24 11:31:09 [0.37ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 164 - 2025-03-24 11:31:09 [3.1ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (79);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 165 - 2025-03-24 11:31:09 [0.77ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 166 - 2025-03-24 11:31:09 [2.98ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (80);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 167 - 2025-03-24 11:31:09 [0.76ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 168 - 2025-03-24 11:31:09 [2.99ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (81);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 169 - 2025-03-24 11:31:09 [0.57ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 170 - 2025-03-24 11:31:09 [2.96ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (82);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 171 - 2025-03-24 11:31:09 [0.5ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 172 - 2025-03-24 11:31:09 [3.14ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (83);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 173 - 2025-03-24 11:31:09 [0.5ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 174 - 2025-03-24 11:31:09 [2.83ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (84);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 175 - 2025-03-24 11:31:09 [0.88ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 176 - 2025-03-24 11:31:09 [2.86ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (85);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 177 - 2025-03-24 11:31:09 [0.4ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 178 - 2025-03-24 11:31:09 [3.22ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (86);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 179 - 2025-03-24 11:31:09 [0.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` in (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 180 - 2025-03-24 11:31:09 [2.94ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (87);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 181 - 2025-03-24 11:31:09 [0.52ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 182 - 2025-03-24 11:31:09 [2.99ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (88);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 183 - 2025-03-24 11:31:09 [0.5ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 184 - 2025-03-24 11:31:09 [3.04ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (89);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 185 - 2025-03-24 11:31:09 [0.51ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 186 - 2025-03-24 11:31:09 [0.36ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (90);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 187 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 188 - 2025-03-24 11:31:09 [0.19ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (91);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 189 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 190 - 2025-03-24 11:31:09 [2.86ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (92);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 191 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 192 - 2025-03-24 11:31:09 [2.9ms] */
delete from `role_has_permissions` where `role_has_permissions`.`role_id` = 2 and `role_has_permissions`.`permission_id` in (93);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 193 - 2025-03-24 11:31:09 [0.28ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 194 - 2025-03-24 11:31:09 [0.22ms] */
select * from `permissions` where `name` = 'title_reprint_workflow' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 195 - 2025-03-24 11:31:09 [0.21ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 196 - 2025-03-24 11:31:09 [2.78ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (1, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 197 - 2025-03-24 11:31:09 [0.33ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 198 - 2025-03-24 11:31:09 [0.27ms] */
select * from `permissions` where `name` = 'view_backend' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 199 - 2025-03-24 11:31:09 [0.25ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 200 - 2025-03-24 11:31:09 [2.97ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (2, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 201 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 202 - 2025-03-24 11:31:09 [0.24ms] */
select * from `permissions` where `name` = 'edit_settings' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 203 - 2025-03-24 11:31:09 [0.24ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 204 - 2025-03-24 11:31:09 [2.78ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (3, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 205 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 206 - 2025-03-24 11:31:09 [0.25ms] */
select * from `permissions` where `name` = 'view_logs' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 207 - 2025-03-24 11:31:09 [0.39ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 208 - 2025-03-24 11:31:09 [2.83ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (4, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 209 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 210 - 2025-03-24 11:31:09 [0.45ms] */
select * from `permissions` where `name` = 'impersonate' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 211 - 2025-03-24 11:31:09 [0.31ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 212 - 2025-03-24 11:31:09 [2.92ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (5, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 213 - 2025-03-24 11:31:09 [0.58ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 214 - 2025-03-24 11:31:09 [0.34ms] */
select * from `permissions` where `name` = 'non_transactional' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 215 - 2025-03-24 11:31:09 [0.31ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 216 - 2025-03-24 11:31:09 [2.99ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (6, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 217 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 218 - 2025-03-24 11:31:09 [0.29ms] */
select * from `permissions` where `name` = 'view_dashboard' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 219 - 2025-03-24 11:31:09 [0.24ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 220 - 2025-03-24 11:31:09 [2.71ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (7, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 221 - 2025-03-24 11:31:09 [0.31ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 222 - 2025-03-24 11:31:09 [0.23ms] */
select * from `permissions` where `name` = 'list_transactions' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 223 - 2025-03-24 11:31:09 [0.24ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 224 - 2025-03-24 11:31:09 [5.92ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (8, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 225 - 2025-03-24 11:31:09 [0.57ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 226 - 2025-03-24 11:31:09 [0.3ms] */
select * from `permissions` where `name` = 'list_invoice' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 227 - 2025-03-24 11:31:09 [0.3ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 228 - 2025-03-24 11:31:09 [3.01ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (9, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 229 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 230 - 2025-03-24 11:31:09 [0.31ms] */
select * from `permissions` where `name` = 'view_invoice' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 231 - 2025-03-24 11:31:09 [0.32ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 232 - 2025-03-24 11:31:09 [3.28ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (10, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 233 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 234 - 2025-03-24 11:31:09 [0.32ms] */
select * from `permissions` where `name` = 'collect_payment' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 235 - 2025-03-24 11:31:09 [0.32ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 236 - 2025-03-24 11:31:09 [2.9ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (11, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 237 - 2025-03-24 11:31:09 [0.58ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 238 - 2025-03-24 11:31:09 [0.34ms] */
select * from `permissions` where `name` = 'print_document' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 239 - 2025-03-24 11:31:09 [0.35ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 240 - 2025-03-24 11:31:09 [2.95ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (12, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 241 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 242 - 2025-03-24 11:31:09 [0.34ms] */
select * from `permissions` where `name` = 'create_tax_workflow' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 243 - 2025-03-24 11:31:09 [0.49ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 244 - 2025-03-24 11:31:09 [2.77ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (13, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 245 - 2025-03-24 11:31:09 [0.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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 246 - 2025-03-24 11:31:09 [0.49ms] */
select * from `permissions` where `name` = 'register_title_workflow' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 247 - 2025-03-24 11:31:09 [0.35ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 248 - 2025-03-24 11:31:09 [2.84ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (14, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 249 - 2025-03-24 11:31:09 [0.61ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 250 - 2025-03-24 11:31:09 [0.34ms] */
select * from `permissions` where `name` = 'assign_smarttag_workflow' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 251 - 2025-03-24 11:31:09 [0.36ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 252 - 2025-03-24 11:31:09 [2.89ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (15, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 253 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 254 - 2025-03-24 11:31:09 [0.38ms] */
select * from `permissions` where `name` = 'transfer_vehicle_workflow' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 255 - 2025-03-24 11:31:09 [0.5ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 256 - 2025-03-24 11:31:09 [2.76ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (16, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 257 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 258 - 2025-03-24 11:31:09 [0.49ms] */
select * from `permissions` where `name` = 'ban_workflow' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 259 - 2025-03-24 11:31:09 [0.34ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 260 - 2025-03-24 11:31:09 [2.76ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (17, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 261 - 2025-03-24 11:31:09 [0.63ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 262 - 2025-03-24 11:31:09 [0.36ms] */
select * from `permissions` where `name` = 'unban_workflow' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 263 - 2025-03-24 11:31:09 [0.36ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 264 - 2025-03-24 11:31:09 [2.88ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (18, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 265 - 2025-03-24 11:31:09 [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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 266 - 2025-03-24 11:31:09 [0.34ms] */
select * from `permissions` where `name` = 'assign_sticker' limit 1;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 267 - 2025-03-24 11:31:09 [0.36ms] */
select * from `role_has_permissions` where `role_has_permissions`.`role_id` = 2;
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 268 - 2025-03-24 11:31:09 [2.89ms] */
insert into `role_has_permissions` (`permission_id`, `role_id`) values (19, 2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 269 - 2025-03-24 11:31:09 [0.45ms] */
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 (2);
/*==================================================*/
/* Origin (request): PATCH https://testtra.puntlandgov.org/roles/2
   Query 270 - 2025-03-24 11:31:09 [0.37ms] */
